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