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

Side by Side Diff: build/common.gypi

Issue 12730006: Android: rename android_build_type gyp variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'enable_viewport%': '<(enable_viewport)', 95 'enable_viewport%': '<(enable_viewport)',
96 'enable_hidpi%': '<(enable_hidpi)', 96 'enable_hidpi%': '<(enable_hidpi)',
97 'enable_touch_ui%': '<(enable_touch_ui)', 97 'enable_touch_ui%': '<(enable_touch_ui)',
98 'buildtype%': '<(buildtype)', 98 'buildtype%': '<(buildtype)',
99 'host_arch%': '<(host_arch)', 99 'host_arch%': '<(host_arch)',
100 100
101 # Default architecture we're building for is the architecture we're 101 # Default architecture we're building for is the architecture we're
102 # building on. 102 # building on.
103 'target_arch%': '<(host_arch)', 103 'target_arch%': '<(host_arch)',
104 104
105 # Sets whether we're building with the Android SDK/NDK (and hence with 105 # Set when building the Android WebView inside the Android build system.
106 # Ant, value 0), or as part of the Android system (and hence with the 106 'android_webview_build%': 0,
107 # Android build system, value 1).
108 'android_build_type%': 0,
109 107
110 # Sets whether chrome is built for google tv device. 108 # Sets whether chrome is built for google tv device.
111 'google_tv%': 0, 109 'google_tv%': 0,
112 110
113 'conditions': [ 111 'conditions': [
114 # Set default value of toolkit_views based on OS. 112 # Set default value of toolkit_views based on OS.
115 ['OS=="win" or chromeos==1 or use_aura==1', { 113 ['OS=="win" or chromeos==1 or use_aura==1', {
116 'toolkit_views%': 1, 114 'toolkit_views%': 1,
117 }, { 115 }, {
118 'toolkit_views%': 0, 116 'toolkit_views%': 0,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 'host_arch%': '<(host_arch)', 160 'host_arch%': '<(host_arch)',
163 'target_arch%': '<(target_arch)', 161 'target_arch%': '<(target_arch)',
164 'toolkit_views%': '<(toolkit_views)', 162 'toolkit_views%': '<(toolkit_views)',
165 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 163 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
166 'use_aura%': '<(use_aura)', 164 'use_aura%': '<(use_aura)',
167 'use_ash%': '<(use_ash)', 165 'use_ash%': '<(use_ash)',
168 'use_openssl%': '<(use_openssl)', 166 'use_openssl%': '<(use_openssl)',
169 'enable_viewport%': '<(enable_viewport)', 167 'enable_viewport%': '<(enable_viewport)',
170 'enable_hidpi%': '<(enable_hidpi)', 168 'enable_hidpi%': '<(enable_hidpi)',
171 'enable_touch_ui%': '<(enable_touch_ui)', 169 'enable_touch_ui%': '<(enable_touch_ui)',
172 'android_build_type%': '<(android_build_type)', 170 'android_webview_build%': '<(android_webview_build)',
173 'google_tv%': '<(google_tv)', 171 'google_tv%': '<(google_tv)',
174 'enable_app_list%': '<(enable_app_list)', 172 'enable_app_list%': '<(enable_app_list)',
175 'enable_message_center%': '<(enable_message_center)', 173 'enable_message_center%': '<(enable_message_center)',
176 'use_default_render_theme%': '<(use_default_render_theme)', 174 'use_default_render_theme%': '<(use_default_render_theme)',
177 'buildtype%': '<(buildtype)', 175 'buildtype%': '<(buildtype)',
178 176
179 # Override branding to select the desired branding flavor. 177 # Override branding to select the desired branding flavor.
180 'branding%': 'Chromium', 178 'branding%': 'Chromium',
181 179
182 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are 180 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 'enable_extensions%': 0, 479 'enable_extensions%': 0,
482 'enable_google_now%': 0, 480 'enable_google_now%': 0,
483 'enable_language_detection%': 1, 481 'enable_language_detection%': 1,
484 'enable_printing%': 0, 482 'enable_printing%': 0,
485 'enable_themes%': 0, 483 'enable_themes%': 0,
486 'proprietary_codecs%': 1, 484 'proprietary_codecs%': 1,
487 'remoting%': 0, 485 'remoting%': 0,
488 }], 486 }],
489 487
490 # Enable autofill dialog for Android and Views-enabled platforms for now . 488 # Enable autofill dialog for Android and Views-enabled platforms for now .
491 ['toolkit_views==1 or (OS=="android" and android_build_type==0)', { 489 ['toolkit_views==1 or (OS=="android" and android_webview_build==0)', {
492 'enable_autofill_dialog%': 1 490 'enable_autofill_dialog%': 1
493 }], 491 }],
494 492
495 ['OS=="android" and android_build_type==0', { 493 ['OS=="android" and android_webview_build==0', {
496 'enable_webrtc%': 1, 494 'enable_webrtc%': 1,
497 }], 495 }],
498 496
499 # Disable WebRTC for building WebView as part of Android system. 497 # Disable WebRTC for building WebView as part of Android system.
500 # TODO(boliu): Decide if we want WebRTC, and if so, also merge 498 # TODO(boliu): Decide if we want WebRTC, and if so, also merge
501 # the necessary third_party repositories. 499 # the necessary third_party repositories.
502 ['OS=="android" and android_build_type==1', { 500 ['OS=="android" and android_webview_build==1', {
503 'enable_webrtc%': 0, 501 'enable_webrtc%': 0,
504 }], 502 }],
505 503
506 ['OS=="ios"', { 504 ['OS=="ios"', {
507 'configuration_policy%': 0, 505 'configuration_policy%': 0,
508 'disable_ftp_support%': 1, 506 'disable_ftp_support%': 1,
509 'enable_automation%': 0, 507 'enable_automation%': 0,
510 'enable_extensions%': 0, 508 'enable_extensions%': 0,
511 'enable_google_now%': 0, 509 'enable_google_now%': 0,
512 'enable_language_detection%': 0, 510 'enable_language_detection%': 0,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 }], 584 }],
587 585
588 ['chromeos==1', { 586 ['chromeos==1', {
589 # When building for ChromeOS we dont want Chromium to use libjpeg_turb o. 587 # When building for ChromeOS we dont want Chromium to use libjpeg_turb o.
590 'use_libjpeg_turbo%': 0, 588 'use_libjpeg_turbo%': 0,
591 }], 589 }],
592 590
593 ['OS=="android"', { 591 ['OS=="android"', {
594 # When building as part of the Android system, use system libraries 592 # When building as part of the Android system, use system libraries
595 # where possible to reduce ROM size. 593 # where possible to reduce ROM size.
596 'use_system_libjpeg%': '<(android_build_type)', 594 'use_system_libjpeg%': '<(android_webview_build)',
597 }], 595 }],
598 596
599 # Enable Settings App only on Windows. 597 # Enable Settings App only on Windows.
600 ['enable_app_list==1 and OS=="win"', { 598 ['enable_app_list==1 and OS=="win"', {
601 'enable_settings_app%': 1, 599 'enable_settings_app%': 1,
602 }, { 600 }, {
603 'enable_settings_app%': 0, 601 'enable_settings_app%': 0,
604 }], 602 }],
605 603
606 ['OS=="linux" and target_arch=="arm" and chromeos==0', { 604 ['OS=="linux" and target_arch=="arm" and chromeos==0', {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 'enable_printing%': '<(enable_printing)', 724 'enable_printing%': '<(enable_printing)',
727 'enable_google_now%': '<(enable_google_now)', 725 'enable_google_now%': '<(enable_google_now)',
728 'enable_language_detection%': '<(enable_language_detection)', 726 'enable_language_detection%': '<(enable_language_detection)',
729 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 727 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
730 'disable_ftp_support%': '<(disable_ftp_support)', 728 'disable_ftp_support%': '<(disable_ftp_support)',
731 'enable_task_manager%': '<(enable_task_manager)', 729 'enable_task_manager%': '<(enable_task_manager)',
732 'sas_dll_path%': '<(sas_dll_path)', 730 'sas_dll_path%': '<(sas_dll_path)',
733 'wix_path%': '<(wix_path)', 731 'wix_path%': '<(wix_path)',
734 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)', 732 'use_libjpeg_turbo%': '<(use_libjpeg_turbo)',
735 'use_system_libjpeg%': '<(use_system_libjpeg)', 733 'use_system_libjpeg%': '<(use_system_libjpeg)',
736 'android_build_type%': '<(android_build_type)', 734 'android_webview_build%': '<(android_webview_build)',
737 'google_tv%': '<(google_tv)', 735 'google_tv%': '<(google_tv)',
738 'enable_app_list%': '<(enable_app_list)', 736 'enable_app_list%': '<(enable_app_list)',
739 'enable_message_center%': '<(enable_message_center)', 737 'enable_message_center%': '<(enable_message_center)',
740 'use_default_render_theme%': '<(use_default_render_theme)', 738 'use_default_render_theme%': '<(use_default_render_theme)',
741 'enable_settings_app%': '<(enable_settings_app)', 739 'enable_settings_app%': '<(enable_settings_app)',
742 'use_official_google_api_keys%': '<(use_official_google_api_keys)', 740 'use_official_google_api_keys%': '<(use_official_google_api_keys)',
743 'google_api_key%': '<(google_api_key)', 741 'google_api_key%': '<(google_api_key)',
744 'google_default_client_id%': '<(google_default_client_id)', 742 'google_default_client_id%': '<(google_default_client_id)',
745 'google_default_client_secret%': '<(google_default_client_secret)', 743 'google_default_client_secret%': '<(google_default_client_secret)',
746 'enable_managed_users%': '<(enable_managed_users)', 744 'enable_managed_users%': '<(enable_managed_users)',
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 # Compared to full debug version, the default Debug configuration on Android 987 # Compared to full debug version, the default Debug configuration on Android
990 # has no full v8 debug, has size optimization and linker gc section, so that 988 # has no full v8 debug, has size optimization and linker gc section, so that
991 # we can build a debug version with acceptable size and performance. 989 # we can build a debug version with acceptable size and performance.
992 'android_full_debug%': 0, 990 'android_full_debug%': 0,
993 991
994 # Sets the default version name and code for Android app, by default we 992 # Sets the default version name and code for Android app, by default we
995 # do a developer build. 993 # do a developer build.
996 'android_app_version_name%': 'Developer Build', 994 'android_app_version_name%': 'Developer Build',
997 'android_app_version_code%': 0, 995 'android_app_version_code%': 0,
998 996
997 # Temporarily set android_build_type until all uses of it have been renamed.
998 '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.
999
999 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))', 1000 'sas_dll_exists': '<!(python <(DEPTH)/build/dir_exists.py <(sas_dll_path))',
1000 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 1001 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
1001 1002
1002 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', 1003 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
1003 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', 1004 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
1004 1005
1005 # Whether we are using the rlz library or not. Platforms like Android send 1006 # Whether we are using the rlz library or not. Platforms like Android send
1006 # rlz codes for searches but do not use the library. 1007 # rlz codes for searches but do not use the library.
1007 'enable_rlz%': 0, 1008 'enable_rlz%': 0,
1008 1009
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 1205
1205 # Uses system APIs for decoding audio and video. 1206 # Uses system APIs for decoding audio and video.
1206 'use_libffmpeg%': '0', 1207 'use_libffmpeg%': '0',
1207 1208
1208 # Always use the chromium skia. 1209 # Always use the chromium skia.
1209 'use_system_skia%': '0', 1210 'use_system_skia%': '0',
1210 1211
1211 # When building as part of the Android system, use system libraries 1212 # When building as part of the Android system, use system libraries
1212 # where possible to reduce ROM size. 1213 # where possible to reduce ROM size.
1213 # TODO(steveblock): Investigate using the system version of sqlite. 1214 # TODO(steveblock): Investigate using the system version of sqlite.
1214 'use_system_sqlite%': 0, # '<(android_build_type)', 1215 'use_system_sqlite%': 0, # '<(android_webview_build)',
1215 'use_system_expat%': '<(android_build_type)', 1216 'use_system_expat%': '<(android_webview_build)',
1216 'use_system_icu%': '<(android_build_type)', 1217 'use_system_icu%': '<(android_webview_build)',
1217 'use_system_stlport%': '<(android_build_type)', 1218 'use_system_stlport%': '<(android_webview_build)',
1218 1219
1219 'enable_managed_users%': 0, 1220 'enable_managed_users%': 0,
1220 1221
1221 # Copy it out one scope. 1222 # Copy it out one scope.
1222 'android_build_type%': '<(android_build_type)', 1223 'android_webview_build%': '<(android_webview_build)',
1223 }], # OS=="android" 1224 }], # OS=="android"
1224 ['OS=="mac"', { 1225 ['OS=="mac"', {
1225 'variables': { 1226 'variables': {
1226 # Mac OS X SDK and deployment target support. The SDK identifies 1227 # Mac OS X SDK and deployment target support. The SDK identifies
1227 # the version of the system headers that will be used, and 1228 # the version of the system headers that will be used, and
1228 # corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time 1229 # corresponds to the MAC_OS_X_VERSION_MAX_ALLOWED compile-time
1229 # macro. "Maximum allowed" refers to the operating system version 1230 # macro. "Maximum allowed" refers to the operating system version
1230 # whose APIs are available in the headers. The deployment target 1231 # whose APIs are available in the headers. The deployment target
1231 # identifies the minimum system version that the built products are 1232 # identifies the minimum system version that the built products are
1232 # expected to function on. It corresponds to the 1233 # expected to function on. It corresponds to the
(...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
3201 }], 3202 }],
3202 ['asan==1', { 3203 ['asan==1', {
3203 'cflags': [ 3204 'cflags': [
3204 # Android build relies on -Wl,--gc-sections removing 3205 # Android build relies on -Wl,--gc-sections removing
3205 # unreachable code. ASan instrumentation for globals inhibits 3206 # unreachable code. ASan instrumentation for globals inhibits
3206 # this and results in a library with unresolvable relocations. 3207 # this and results in a library with unresolvable relocations.
3207 # TODO(eugenis): find a way to reenable this. 3208 # TODO(eugenis): find a way to reenable this.
3208 '-mllvm -asan-globals=0', 3209 '-mllvm -asan-globals=0',
3209 ], 3210 ],
3210 }], 3211 }],
3211 ['android_build_type==0', { 3212 ['android_webview_build==0', {
3212 'defines': [ 3213 'defines': [
3213 # The NDK has these things, but doesn't define the constants 3214 # The NDK has these things, but doesn't define the constants
3214 # to say that it does. Define them here instead. 3215 # to say that it does. Define them here instead.
3215 'HAVE_SYS_UIO_H', 3216 'HAVE_SYS_UIO_H',
3216 ], 3217 ],
3217 'cflags': [ 3218 'cflags': [
3218 '--sysroot=<(android_ndk_sysroot)', 3219 '--sysroot=<(android_ndk_sysroot)',
3219 ], 3220 ],
3220 'ldflags': [ 3221 'ldflags': [
3221 '--sysroot=<(android_ndk_sysroot)', 3222 '--sysroot=<(android_ndk_sysroot)',
3222 ], 3223 ],
3223 }], 3224 }],
3224 ['android_build_type==1', { 3225 ['android_webview_build==1', {
3225 'include_dirs': [ 3226 'include_dirs': [
3226 # OpenAL headers from the Android tree. 3227 # OpenAL headers from the Android tree.
3227 '<(android_src)/frameworks/wilhelm/include', 3228 '<(android_src)/frameworks/wilhelm/include',
3228 ], 3229 ],
3229 'cflags': [ 3230 'cflags': [
3230 # Android predefines this as 1; undefine it here so Chromium 3231 # Android predefines this as 1; undefine it here so Chromium
3231 # can redefine it later to be 2 for chromium code and unset 3232 # can redefine it later to be 2 for chromium code and unset
3232 # for third party code. This works because cflags are added 3233 # for third party code. This works because cflags are added
3233 # before defines. 3234 # before defines.
3234 '-U_FORTIFY_SOURCE', 3235 '-U_FORTIFY_SOURCE',
3235 # Disable any additional warnings enabled by the Android build system but which 3236 # Disable any additional warnings enabled by the Android build system but which
3236 # chromium does not build cleanly with (when treating warning as errors). 3237 # chromium does not build cleanly with (when treating warning as errors).
3237 # Things that are part of -Wextra: 3238 # Things that are part of -Wextra:
3238 '-Wno-extra', # Enabled by -Wextra, but no specific flag 3239 '-Wno-extra', # Enabled by -Wextra, but no specific flag
3239 '-Wno-ignored-qualifiers', 3240 '-Wno-ignored-qualifiers',
3240 '-Wno-type-limits', 3241 '-Wno-type-limits',
3241 ], 3242 ],
3242 'cflags_cc': [ 3243 'cflags_cc': [
3243 # Disabling c++0x-compat should be handled in WebKit, but 3244 # Disabling c++0x-compat should be handled in WebKit, but
3244 # this currently doesn't work because gcc_version is not set 3245 # this currently doesn't work because gcc_version is not set
3245 # correctly when building with the Android build system. 3246 # correctly when building with the Android build system.
3246 # TODO(torne): Fix this in WebKit. 3247 # TODO(torne): Fix this in WebKit.
3247 '-Wno-error=c++0x-compat', 3248 '-Wno-error=c++0x-compat',
3248 # Other things unrelated to -Wextra: 3249 # Other things unrelated to -Wextra:
3249 '-Wno-non-virtual-dtor', 3250 '-Wno-non-virtual-dtor',
3250 '-Wno-sign-promo', 3251 '-Wno-sign-promo',
3251 ], 3252 ],
3252 }], 3253 }],
3253 ['android_build_type==1 and chromium_code==0', { 3254 ['android_webview_build==1 and chromium_code==0', {
3254 'cflags': [ 3255 'cflags': [
3255 # There is a class of warning which: 3256 # There is a class of warning which:
3256 # 1) Android always enables and also treats as errors 3257 # 1) Android always enables and also treats as errors
3257 # 2) Chromium ignores in third party code 3258 # 2) Chromium ignores in third party code
3258 # So we re-enable those warnings when building Android. 3259 # So we re-enable those warnings when building Android.
3259 '-Wno-address', 3260 '-Wno-address',
3260 '-Wno-format-security', 3261 '-Wno-format-security',
3261 '-Wno-return-type', 3262 '-Wno-return-type',
3262 '-Wno-sequence-point', 3263 '-Wno-sequence-point',
3263 ], 3264 ],
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
4145 # settings in target dicts. SYMROOT is a special case, because many other 4146 # settings in target dicts. SYMROOT is a special case, because many other
4146 # Xcode variables depend on it, including variables such as 4147 # Xcode variables depend on it, including variables such as
4147 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4148 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4148 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4149 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4149 # files to appear (when present) in the UI as actual files and not red 4150 # files to appear (when present) in the UI as actual files and not red
4150 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4151 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4151 # and therefore SYMROOT, needs to be set at the project level. 4152 # and therefore SYMROOT, needs to be set at the project level.
4152 'SYMROOT': '<(DEPTH)/xcodebuild', 4153 'SYMROOT': '<(DEPTH)/xcodebuild',
4153 }, 4154 },
4154 } 4155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698