Chromium Code Reviews| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 891 'target_arch': 'x86', | 898 'target_arch': 'x86', |
| 892 'android_app_abi%': 'x86', | 899 'android_app_abi%': 'x86', |
| 893 }], | 900 }], |
| 894 ['target_arch=="arm" and armv7==0', { | 901 ['target_arch=="arm" and armv7==0', { |
| 895 'android_app_abi%': 'armeabi', | 902 'android_app_abi%': 'armeabi', |
| 896 }], | 903 }], |
| 897 ['target_arch=="arm" and armv7==1', { | 904 ['target_arch=="arm" and armv7==1', { |
| 898 'android_app_abi%': 'armeabi-v7a', | 905 'android_app_abi%': 'armeabi-v7a', |
| 899 }], | 906 }], |
| 900 ], | 907 ], |
| 901 | |
| 902 # Sets whether we're building with the Android SDK/NDK (and hence | |
| 903 # with Ant, value 0), or as part of the Android system (and hence | |
| 904 # with the Android build system, value 1). | |
| 905 'android_build_type%': 0, | |
| 906 }, | 908 }, |
| 907 'android_ndk_root%': '<(android_ndk_root)', | 909 'android_ndk_root%': '<(android_ndk_root)', |
| 908 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-< (target_arch)', | 910 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch- <(target_arch)', |
| 909 'android_build_type%': '<(android_build_type)', | 911 'android_build_type%': '<(android_build_type)', |
|
Steve Block
2012/07/24 09:51:54
You can get rid of this
Yaron
2012/07/24 15:18:26
Done.
| |
| 910 'android_app_abi%': '<(android_app_abi)', | 912 'android_app_abi%': '<(android_app_abi)', |
| 911 }, | 913 }, |
| 912 'android_ndk_root%': '<(android_ndk_root)', | 914 'android_ndk_root%': '<(android_ndk_root)', |
| 913 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 915 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
| 914 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 916 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
| 915 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 917 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
| 916 'android_app_abi%': '<(android_app_abi)', | 918 'android_app_abi%': '<(android_app_abi)', |
| 917 | 919 |
| 918 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used | 920 # Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used |
| 919 # to specify the output directory for Ant in the Android build. | 921 # to specify the output directory for Ant in the Android build. |
| (...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3312 # settings in target dicts. SYMROOT is a special case, because many other | 3314 # settings in target dicts. SYMROOT is a special case, because many other |
| 3313 # Xcode variables depend on it, including variables such as | 3315 # Xcode variables depend on it, including variables such as |
| 3314 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3316 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3315 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3317 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3316 # files to appear (when present) in the UI as actual files and not red | 3318 # files to appear (when present) in the UI as actual files and not red |
| 3317 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3319 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3318 # and therefore SYMROOT, needs to be set at the project level. | 3320 # and therefore SYMROOT, needs to be set at the project level. |
| 3319 'SYMROOT': '<(DEPTH)/xcodebuild', | 3321 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3320 }, | 3322 }, |
| 3321 } | 3323 } |
| OLD | NEW |