OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 'use_aura%': '<(use_aura)', | 63 'use_aura%': '<(use_aura)', |
64 'use_ash%': '<(use_ash)', | 64 'use_ash%': '<(use_ash)', |
65 'use_openssl%': '<(use_openssl)', | 65 'use_openssl%': '<(use_openssl)', |
66 'use_ibus%': '<(use_ibus)', | 66 'use_ibus%': '<(use_ibus)', |
67 'enable_viewport%': '<(enable_viewport)', | 67 'enable_viewport%': '<(enable_viewport)', |
68 'enable_hidpi%': '<(enable_hidpi)', | 68 'enable_hidpi%': '<(enable_hidpi)', |
69 'enable_touch_ui%': '<(enable_touch_ui)', | 69 'enable_touch_ui%': '<(enable_touch_ui)', |
70 'android_upstream_bringup%': '<(android_upstream_bringup)', | 70 'android_upstream_bringup%': '<(android_upstream_bringup)', |
71 'buildtype%': '<(buildtype)', | 71 'buildtype%': '<(buildtype)', |
72 | 72 |
| 73 # Sets whether we're building with the Android SDK/NDK (and hence with |
| 74 # Ant, value 0), or as part of the Android system (and hence with the |
| 75 # Android build system, value 1). |
| 76 'android_build_type%': 0, |
| 77 |
73 # Compute the architecture that we're building on. | 78 # Compute the architecture that we're building on. |
74 'conditions': [ | 79 'conditions': [ |
75 ['OS=="win" or OS=="mac" or OS=="ios"', { | 80 ['OS=="win" or OS=="mac" or OS=="ios"', { |
76 'host_arch%': 'ia32', | 81 'host_arch%': 'ia32', |
77 }, { | 82 }, { |
78 # This handles the Unix platforms for which there is some support. | 83 # This handles the Unix platforms for which there is some support. |
79 # Anything else gets passed through, which probably won't work very | 84 # Anything else gets passed through, which probably won't work very |
80 # well; such hosts should pass an explicit target_arch to gyp. | 85 # well; such hosts should pass an explicit target_arch to gyp. |
81 'host_arch%': | 86 'host_arch%': |
82 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', | 87 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a
rm.*/arm/;s/i86pc/ia32/")', |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 'host_arch%': '<(host_arch)', | 128 'host_arch%': '<(host_arch)', |
124 'toolkit_views%': '<(toolkit_views)', | 129 'toolkit_views%': '<(toolkit_views)', |
125 'use_aura%': '<(use_aura)', | 130 'use_aura%': '<(use_aura)', |
126 'use_ash%': '<(use_ash)', | 131 'use_ash%': '<(use_ash)', |
127 'use_openssl%': '<(use_openssl)', | 132 'use_openssl%': '<(use_openssl)', |
128 'use_ibus%': '<(use_ibus)', | 133 'use_ibus%': '<(use_ibus)', |
129 'enable_viewport%': '<(enable_viewport)', | 134 'enable_viewport%': '<(enable_viewport)', |
130 'enable_hidpi%': '<(enable_hidpi)', | 135 'enable_hidpi%': '<(enable_hidpi)', |
131 'enable_touch_ui%': '<(enable_touch_ui)', | 136 'enable_touch_ui%': '<(enable_touch_ui)', |
132 'android_upstream_bringup%': '<(android_upstream_bringup)', | 137 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 138 'android_build_type%': '<(android_build_type)', |
133 | 139 |
134 # We used to provide a variable for changing how libraries were built. | 140 # We used to provide a variable for changing how libraries were built. |
135 # This variable remains until we can clean up all the users. | 141 # This variable remains until we can clean up all the users. |
136 # This needs to be one nested variables dict in so that dependent | 142 # This needs to be one nested variables dict in so that dependent |
137 # gyp files can make use of it in their outer variables. (Yikes!) | 143 # gyp files can make use of it in their outer variables. (Yikes!) |
138 # http://code.google.com/p/chromium/issues/detail?id=83308 | 144 # http://code.google.com/p/chromium/issues/detail?id=83308 |
139 'library%': 'static_library', | 145 'library%': 'static_library', |
140 | 146 |
141 # Override branding to select the desired branding flavor. | 147 # Override branding to select the desired branding flavor. |
142 'branding%': 'Chromium', | 148 'branding%': 'Chromium', |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 'test_isolation_outdir%': '<(test_isolation_outdir)', | 598 'test_isolation_outdir%': '<(test_isolation_outdir)', |
593 'enable_automation%': '<(enable_automation)', | 599 'enable_automation%': '<(enable_automation)', |
594 'enable_printing%': '<(enable_printing)', | 600 'enable_printing%': '<(enable_printing)', |
595 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 601 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
596 'force_rlz_use_chrome_net%': '<(force_rlz_use_chrome_net)', | 602 'force_rlz_use_chrome_net%': '<(force_rlz_use_chrome_net)', |
597 'enable_task_manager%': '<(enable_task_manager)', | 603 'enable_task_manager%': '<(enable_task_manager)', |
598 'sas_dll_path%': '<(sas_dll_path)', | 604 'sas_dll_path%': '<(sas_dll_path)', |
599 'wix_path%': '<(wix_path)', | 605 'wix_path%': '<(wix_path)', |
600 'android_upstream_bringup%': '<(android_upstream_bringup)', | 606 'android_upstream_bringup%': '<(android_upstream_bringup)', |
601 'use_system_libjpeg%': '<(use_system_libjpeg)', | 607 'use_system_libjpeg%': '<(use_system_libjpeg)', |
| 608 'android_build_type%': '<(android_build_type)', |
602 | 609 |
603 # Use system yasm instead of bundled one. | 610 # Use system yasm instead of bundled one. |
604 'use_system_yasm%': 0, | 611 'use_system_yasm%': 0, |
605 | 612 |
606 # Default to enabled PIE; this is important for ASLR but we may need to be | 613 # Default to enabled PIE; this is important for ASLR but we may need to be |
607 # able to turn it off for various reasons. | 614 # able to turn it off for various reasons. |
608 'linux_disable_pie%': 0, | 615 'linux_disable_pie%': 0, |
609 | 616 |
610 # The release channel that this build targets. This is used to restrict | 617 # The release channel that this build targets. This is used to restrict |
611 # channel-specific build options, like which installer packages to create. | 618 # channel-specific build options, like which installer packages to create. |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 'target_arch': 'x86', | 906 'target_arch': 'x86', |
900 'android_app_abi%': 'x86', | 907 'android_app_abi%': 'x86', |
901 }], | 908 }], |
902 ['target_arch=="arm" and armv7==0', { | 909 ['target_arch=="arm" and armv7==0', { |
903 'android_app_abi%': 'armeabi', | 910 'android_app_abi%': 'armeabi', |
904 }], | 911 }], |
905 ['target_arch=="arm" and armv7==1', { | 912 ['target_arch=="arm" and armv7==1', { |
906 'android_app_abi%': 'armeabi-v7a', | 913 'android_app_abi%': 'armeabi-v7a', |
907 }], | 914 }], |
908 ], | 915 ], |
909 | |
910 # Sets whether we're building with the Android SDK/NDK (and hence | |
911 # with Ant, value 0), or as part of the Android system (and hence | |
912 # with the Android build system, value 1). | |
913 'android_build_type%': 0, | |
914 }, | 916 }, |
915 'android_ndk_root%': '<(android_ndk_root)', | 917 'android_ndk_root%': '<(android_ndk_root)', |
916 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-
<(target_arch)', | 918 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-
<(target_arch)', |
917 'android_build_type%': '<(android_build_type)', | |
918 'android_app_abi%': '<(android_app_abi)', | 919 'android_app_abi%': '<(android_app_abi)', |
919 }, | 920 }, |
920 'android_ndk_root%': '<(android_ndk_root)', | 921 'android_ndk_root%': '<(android_ndk_root)', |
921 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 922 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
922 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 923 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
923 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 924 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
924 'android_app_abi%': '<(android_app_abi)', | 925 'android_app_abi%': '<(android_app_abi)', |
925 | 926 |
926 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used | 927 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used |
927 # to specify the output directory for Ant in the Android build. | 928 # to specify the output directory for Ant in the Android build. |
(...skipping 2402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3330 # settings in target dicts. SYMROOT is a special case, because many other | 3331 # settings in target dicts. SYMROOT is a special case, because many other |
3331 # Xcode variables depend on it, including variables such as | 3332 # Xcode variables depend on it, including variables such as |
3332 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3333 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3333 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3334 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3334 # files to appear (when present) in the UI as actual files and not red | 3335 # files to appear (when present) in the UI as actual files and not red |
3335 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3336 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3336 # and therefore SYMROOT, needs to be set at the project level. | 3337 # and therefore SYMROOT, needs to be set at the project level. |
3337 'SYMROOT': '<(DEPTH)/xcodebuild', | 3338 'SYMROOT': '<(DEPTH)/xcodebuild', |
3338 }, | 3339 }, |
3339 } | 3340 } |
OLD | NEW |