OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is the set of recommended gyp variable settings for Chrome for Android de velopment. | 5 # This is the set of recommended gyp variable settings for Chrome for Android de velopment. |
6 # | 6 # |
7 # These can be used by copying them into ~/.gyp/include.gypi or $CHROME_SRC/chro me/supplement.gypi | 7 # These can be used by copying this file to $CHROME_SRC/chrome/supplement.gypi. |
Yaron
2013/04/19 22:44:27
Why encourage people to use chrome/supplement.gypi
cjhopman
2013/04/19 22:51:19
chrome/supplement.gypi is ignored in .gitignore sp
| |
8 # Even better, use the below in chrome/supplement.gypi: | 8 # |
9 # Even better, create chrome/supplement.gypi containing the following: | |
9 # { | 10 # { |
10 # 'includes': [ '../build/android/developer_recommended_flags.gypi' ] | 11 # 'includes': [ '../build/android/developer_recommended_flags.gypi' ] |
11 # } | 12 # } |
12 # and you'll get new settings automatically. | 13 # and you'll get new settings automatically. |
14 # When using this method, you can override individual settings by setting them u nconditionally (with | |
15 # no %) in chrome/supplement.gypi. | |
16 # I.e. to disable optimize_jni_generation but use everything else: | |
17 # { | |
18 # 'variables': { | |
19 # 'optimize_jni_generation': 0, | |
20 # }, | |
21 # 'includes': [ '../build/android/developer_recommended_flags.gypi' ] | |
22 # } | |
13 | 23 |
14 { | 24 { |
15 'variables': { | 25 'variables': { |
16 # When set to 1, only write jni generated files if they've changed. This can prevent unnecessary | 26 # When set to 1, only write jni generated files if they've changed. This can prevent unnecessary |
17 # compiling/linking of native libraries when editing java files. | 27 # compiling/linking of native libraries when editing java files. |
18 'optimize_jni_generation': 1, | 28 'optimize_jni_generation%': 1, |
19 | 29 |
20 # Set component to 'shared_library' to enable the component build. This buil ds native code as | 30 # Set component to 'shared_library' to enable the component build. This buil ds native code as |
21 # many small shared libraries instead of one monolithic library. This slight ly reduces the time | 31 # many small shared libraries instead of one monolithic library. This slight ly reduces the time |
22 # required for incremental builds. | 32 # required for incremental builds. |
23 'component': 'shared_library', | 33 'component%': 'shared_library', |
24 | 34 |
25 # When gyp_managed_install is set to 1, building an APK will install that AP K on the connected | 35 # When gyp_managed_install is set to 1, building an APK will install that AP K on the connected |
26 # device(/emulator). To install on multiple devices (or onto a new device), build the APK once | 36 # device(/emulator). To install on multiple devices (or onto a new device), build the APK once |
27 # with each device attached. This greatly reduces the time required for incr emental builds. | 37 # with each device attached. This greatly reduces the time required for incr emental builds. |
28 # | 38 # |
29 # This comes with some caveats: | 39 # This comes with some caveats: |
30 # Only works with a single device connected. | 40 # Only works with a single device connected. |
31 # Some actions are always run (i.e. ninja will never say "no work to do"). | 41 # Some actions are always run (i.e. ninja will never say "no work to do"). |
32 # Native libraries are not packaged in the APK (you can not manually insta ll the APK) | 42 # Native libraries are not packaged in the APK (you can not manually insta ll the APK) |
33 'gyp_managed_install': 1, | 43 'gyp_managed_install%': 1, |
34 | 44 |
35 # Set clang to 1 to use the clang compiler. Clang has much (much, much) bett er warning/error | 45 # Set clang to 1 to use the clang compiler. Clang has much (much, much) bett er warning/error |
36 # messages than gcc. | 46 # messages than gcc. |
37 # TODO(cjhopman): Enable this when http://crbug.com/156420 is addressed. Unt il then, users can | 47 # TODO(cjhopman): Enable this when http://crbug.com/156420 is addressed. Unt il then, users can |
38 # set clang to 1, but Android stack traces will sometimes be incomplete. | 48 # set clang to 1, but Android stack traces will sometimes be incomplete. |
39 #'clang': 1, | 49 #'clang%': 1, |
50 | |
51 # Set fastbuild to 1 to build with less debugging information. This can grea tly decrease linking | |
52 # time. The downside is that stack traces will be missing useful information (like line | |
53 # numbers). | |
54 #'fastbuild%': 1, | |
40 }, | 55 }, |
41 } | 56 } |
OLD | NEW |