OSDN Git Service

BuildSystem:
[handbrake-jp/handbrake-jp-git.git] / doc / texi / building / chapter.via.xcode.texi
1 @anchor{xcode}
2 @chapter Building via Xcode
3
4 @c %**-------------------------------------------------------------------------
5 @anchor{xcode.checkout}
6 @section Checkout Sources
7 @include building/method.checkout.texi
8
9 @c %**-------------------------------------------------------------------------
10 @anchor{xcode.build}
11 @section Build
12 In Xcode perform the following steps to build the default configuration:
13
14 @itemize
15 @item open @file{macosx/HandBrake.xcodeproj}
16 @item select active configuration @b{standard}
17 @item select active target @b{HandBrake}
18 @item click @b{Build} or @b{Build and Go}
19 @end itemize
20
21 The first time it builds will take a bit of time. You may use the Build Results window to watch it progress. A large partof the build is invoking the external build system which poduces quite a lot of log output. Much of that output are warnings and errors that are part of the normal build process for 3rd-party contributed modules so in general you need not do anything. However, if Xcode itself reports the build failed, then you must take corrective action.
22
23 Unfortunately, due to limitations of Xcode we do not have hooks in place to offer finer-grained control over per-module make actions for the (external) build system. Thus, you will have to use @b{terminal} to accomplish those tasks. Just @command{cd} into the build directory which is associated with your active configuration and perform any necessary @command{make} commands. @b{Be careful not to issue commands from the terminal simultaneously with Xcode tasks} as that will confuse both Xcode and make and likely corrupt your build directory.
24
25 When you click @b{clean} in Xcode it will not perform an external build clean. Basically @b{HandBrakeCLI} and @b{HandBrake.app} are the only products which have full Xcode iterative development flexibility.
26
27 Each configuration uses a different @file{build} directory. This makes it possible to build each configuration and switch between them without losing their respective build state. The description of each configuration and the name convention for build directories are as follows:
28
29 @table @samp
30 @item standard
31 This configuration will build to the host native architecture. Build directory is @file{build.standard} .
32 The standard variant produces optimized code without debug information.
33
34 @item debug
35 This configuration will build to the host native architecture. Build directory is @file{build.standard} .
36 The debug variant produces unoptimized code with debug information.
37
38 @item standard.i386
39 This configuration is used to build for the i386 architecture. Build directory is @file{build.standard.i386} .
40
41 @item standard.x86_64
42 This configuration is used to build for the x86_64 architecture. Build directory is @file{build.standard.x86_64} .
43
44 @item standard.ppc
45 This configuration is used to build for the ppc architecture. Build directory is @file{build.standard.ppc} .
46
47 @item standard.ppc64
48 This configuration is used to build for the ppc64 architecture. Build directory is @file{build.standard.ppc64} .
49 @end table