Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: docs/ios/build_instructions.md

Issue 2804633002: [ios] Fix build instruction and scripts. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/build/tools/setup-gn.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Checking out and building Chromium for iOS 1 # Checking out and building Chromium for iOS
2 2
3 There are instructions for other platforms linked from the 3 There are instructions for other platforms linked from the
4 [get the code](../get_the_code.md) page. 4 [get the code](../get_the_code.md) page.
5 5
6 ## Instructions for Google Employees 6 ## Instructions for Google Employees
7 7
8 Are you a Google employee? See 8 Are you a Google employee? See
9 [go/building-chrome](https://goto.google.com/building-chrome) instead. 9 [go/building-chrome](https://goto.google.com/building-chrome) instead.
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 build to talk to some Google services, but this is not necessary for most 76 build to talk to some Google services, but this is not necessary for most
77 development and testing purposes. 77 development and testing purposes.
78 78
79 ## Setting up the build 79 ## Setting up the build
80 80
81 Since the iOS build is a bit more complicated than a desktop build, we provide 81 Since the iOS build is a bit more complicated than a desktop build, we provide
82 `ios/build/tools/setup-gn.py`, which will create four appropriately configured 82 `ios/build/tools/setup-gn.py`, which will create four appropriately configured
83 build directories under `out` for Release and Debug device and simulator 83 build directories under `out` for Release and Debug device and simulator
84 builds, and generates an appropriate Xcode workspace as well. 84 builds, and generates an appropriate Xcode workspace as well.
85 85
86 This script is run automatically by fetch (as part of `gclient runhooks`).
lpromero 2017/04/05 13:07:56 When is it run then?
sdefresne 2017/04/05 14:28:20 It needs to be run manually as detailed in the par
87
88 You can customize the build by editing the file `$HOME/.setup-gn` (create it if 86 You can customize the build by editing the file `$HOME/.setup-gn` (create it if
89 it does not exist). Look at `src/ios/build/tools/setup-gn.config` for 87 it does not exist). Look at `src/ios/build/tools/setup-gn.config` for
90 available configuration options. 88 available configuration options.
91 89
92 From this point, you can either build from Xcode or from the command line using 90 From this point, you can either build from Xcode or from the command line using
93 `ninja`. `setup-gn.py` creates sub-directories named 91 `ninja`. `setup-gn.py` creates sub-directories named
94 `out/${configuration}-${platform}`, so for a `Debug` build for simulator use: 92 `out/${configuration}-${platform}`, so for a `Debug` build for simulator use:
95 93
96 ```shell 94 ```shell
97 $ ninja -C out/Debug-iphonesimulator gn_all 95 $ ninja -C out/Debug-iphonesimulator gn_all
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 304
307 ```shell 305 ```shell
308 $ xcodebuild -license 306 $ xcodebuild -license
309 ``` 307 ```
310 308
311 Only accepting for all users of the machine requires root: 309 Only accepting for all users of the machine requires root:
312 310
313 ```shell 311 ```shell
314 $ sudo xcodebuild -license 312 $ sudo xcodebuild -license
315 ``` 313 ```
OLDNEW
« no previous file with comments | « no previous file | ios/build/tools/setup-gn.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698