Chromium Code Reviews| Index: build/common.gypi |
| diff --git a/build/common.gypi b/build/common.gypi |
| index c861e63bf78376390a2d36958a49a8bcb2c99de1..54e237e2b072b0ca8af6ab0dab77d0a2b8a7bc2d 100644 |
| --- a/build/common.gypi |
| +++ b/build/common.gypi |
| @@ -102,10 +102,8 @@ |
| # building on. |
| 'target_arch%': '<(host_arch)', |
| - # Sets whether we're building with the Android SDK/NDK (and hence with |
| - # Ant, value 0), or as part of the Android system (and hence with the |
| - # Android build system, value 1). |
| - 'android_build_type%': 0, |
| + # Set when building the Android WebView inside the Android build system. |
| + 'android_webview_build%': 0, |
| # Sets whether chrome is built for google tv device. |
| 'google_tv%': 0, |
| @@ -169,7 +167,7 @@ |
| 'enable_viewport%': '<(enable_viewport)', |
| 'enable_hidpi%': '<(enable_hidpi)', |
| 'enable_touch_ui%': '<(enable_touch_ui)', |
| - 'android_build_type%': '<(android_build_type)', |
| + 'android_webview_build%': '<(android_webview_build)', |
| 'google_tv%': '<(google_tv)', |
| 'enable_app_list%': '<(enable_app_list)', |
| 'enable_message_center%': '<(enable_message_center)', |
| @@ -488,18 +486,18 @@ |
| }], |
| # Enable autofill dialog for Android and Views-enabled platforms for now. |
| - ['toolkit_views==1 or (OS=="android" and android_build_type==0)', { |
| + ['toolkit_views==1 or (OS=="android" and android_webview_build==0)', { |
| 'enable_autofill_dialog%': 1 |
| }], |
| - ['OS=="android" and android_build_type==0', { |
| + ['OS=="android" and android_webview_build==0', { |
| 'enable_webrtc%': 1, |
| }], |
| # Disable WebRTC for building WebView as part of Android system. |
| # TODO(boliu): Decide if we want WebRTC, and if so, also merge |
| # the necessary third_party repositories. |
| - ['OS=="android" and android_build_type==1', { |
| + ['OS=="android" and android_webview_build==1', { |
| 'enable_webrtc%': 0, |
| }], |
| @@ -593,7 +591,7 @@ |
| ['OS=="android"', { |
| # When building as part of the Android system, use system libraries |
| # where possible to reduce ROM size. |
| - 'use_system_libjpeg%': '<(android_build_type)', |
| + 'use_system_libjpeg%': '<(android_webview_build)', |
| }], |
| # Enable Settings App only on Windows. |
| @@ -733,7 +731,7 @@ |
| 'wix_path%': '<(wix_path)', |
| 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', |
| 'use_system_libjpeg%': '<(use_system_libjpeg)', |
| - 'android_build_type%': '<(android_build_type)', |
| + 'android_webview_build%': '<(android_webview_build)', |
| 'google_tv%': '<(google_tv)', |
| 'enable_app_list%': '<(enable_app_list)', |
| 'enable_message_center%': '<(enable_message_center)', |
| @@ -996,6 +994,9 @@ |
| 'android_app_version_name%': 'Developer Build', |
| 'android_app_version_code%': 0, |
| + # Temporarily set android_build_type until all uses of it have been renamed. |
| + 'android_build_type%': 0 |
|
benm (inactive)
2013/03/11 17:23:29
should we set it to android_webview_build ?
Torne
2013/03/11 17:31:11
Done.
|
| + |
| 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', |
| 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', |
| @@ -1211,15 +1212,15 @@ |
| # When building as part of the Android system, use system libraries |
| # where possible to reduce ROM size. |
| # TODO(steveblock): Investigate using the system version of sqlite. |
| - 'use_system_sqlite%': 0, # '<(android_build_type)', |
| - 'use_system_expat%': '<(android_build_type)', |
| - 'use_system_icu%': '<(android_build_type)', |
| - 'use_system_stlport%': '<(android_build_type)', |
| + 'use_system_sqlite%': 0, # '<(android_webview_build)', |
| + 'use_system_expat%': '<(android_webview_build)', |
| + 'use_system_icu%': '<(android_webview_build)', |
| + 'use_system_stlport%': '<(android_webview_build)', |
| 'enable_managed_users%': 0, |
| # Copy it out one scope. |
| - 'android_build_type%': '<(android_build_type)', |
| + 'android_webview_build%': '<(android_webview_build)', |
| }], # OS=="android" |
| ['OS=="mac"', { |
| 'variables': { |
| @@ -3208,7 +3209,7 @@ |
| '-mllvm -asan-globals=0', |
| ], |
| }], |
| - ['android_build_type==0', { |
| + ['android_webview_build==0', { |
| 'defines': [ |
| # The NDK has these things, but doesn't define the constants |
| # to say that it does. Define them here instead. |
| @@ -3221,7 +3222,7 @@ |
| '--sysroot=<(android_ndk_sysroot)', |
| ], |
| }], |
| - ['android_build_type==1', { |
| + ['android_webview_build==1', { |
| 'include_dirs': [ |
| # OpenAL headers from the Android tree. |
| '<(android_src)/frameworks/wilhelm/include', |
| @@ -3250,7 +3251,7 @@ |
| '-Wno-sign-promo', |
| ], |
| }], |
| - ['android_build_type==1 and chromium_code==0', { |
| + ['android_webview_build==1 and chromium_code==0', { |
| 'cflags': [ |
| # There is a class of warning which: |
| # 1) Android always enables and also treats as errors |