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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 480 |
481 # Whether to back up data before sync. | 481 # Whether to back up data before sync. |
482 'enable_pre_sync_backup%': 0, | 482 'enable_pre_sync_backup%': 0, |
483 | 483 |
484 # Enable Chrome browser extensions | 484 # Enable Chrome browser extensions |
485 'enable_extensions%': 1, | 485 'enable_extensions%': 1, |
486 | 486 |
487 # Enable Google Now. | 487 # Enable Google Now. |
488 'enable_google_now%': 1, | 488 'enable_google_now%': 1, |
489 | 489 |
490 # Enable printing support and UI. This variable is used to configure | 490 # Enable basic printing support and UI. |
491 # which parts of printing will be built. 0 disables printing completely, | 491 'enable_basic_printing%': 1, |
492 # 1 enables it fully, and 2 enables only the codepath to generate a | 492 |
493 # Metafile (e.g. usually a PDF or EMF) and disables print preview, cloud | 493 # Enable printing with print preview. It does not imply |
494 # print, UI, etc. | 494 # enable_basic_printing. It's possible to build Chrome with preview only. |
495 'enable_printing%': 1, | 495 'enable_print_preview%': 1, |
496 | 496 |
497 # Set the version of CLD. | 497 # Set the version of CLD. |
498 # 0: Don't specify the version. This option is for the Finch testing. | 498 # 0: Don't specify the version. This option is for the Finch testing. |
499 # 1: Use only CLD1. | 499 # 1: Use only CLD1. |
500 # 2: Use only CLD2. | 500 # 2: Use only CLD2. |
501 'cld_version%': 2, | 501 'cld_version%': 2, |
502 | 502 |
503 # For CLD2, the size of the tables that should be included in the build | 503 # For CLD2, the size of the tables that should be included in the build |
504 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data | 504 # Only evaluated if cld_version == 2 or if building the CLD2 dynamic data |
505 # tool explicitly. | 505 # tool explicitly. |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 'enable_extensions%': 0, | 763 'enable_extensions%': 0, |
764 'enable_google_now%': 0, | 764 'enable_google_now%': 0, |
765 'cld_version%': 1, | 765 'cld_version%': 1, |
766 'enable_spellcheck%': 0, | 766 'enable_spellcheck%': 0, |
767 'enable_themes%': 0, | 767 'enable_themes%': 0, |
768 'remoting%': 0, | 768 'remoting%': 0, |
769 'arm_neon%': 0, | 769 'arm_neon%': 0, |
770 'arm_neon_optional%': 1, | 770 'arm_neon_optional%': 1, |
771 'native_discardable_memory%': 1, | 771 'native_discardable_memory%': 1, |
772 'native_memory_pressure_signals%': 1, | 772 'native_memory_pressure_signals%': 1, |
773 'enable_printing%': 2, | 773 'enable_basic_printing%': 1, |
| 774 'enable_print_preview%': 0, |
774 'enable_task_manager%':0, | 775 'enable_task_manager%':0, |
775 'video_hole%': 1, | 776 'video_hole%': 1, |
776 }], | 777 }], |
777 | 778 |
778 # Android OS includes support for proprietary codecs regardless of | 779 # Android OS includes support for proprietary codecs regardless of |
779 # building Chromium or Google Chrome. We also ship Google Chrome and | 780 # building Chromium or Google Chrome. We also ship Google Chrome and |
780 # Chromecast with proprietary codecs. | 781 # Chromecast with proprietary codecs. |
781 ['OS=="android" or branding=="Chrome" or chromecast==1', { | 782 ['OS=="android" or branding=="Chrome" or chromecast==1', { |
782 'proprietary_codecs%': 1, | 783 'proprietary_codecs%': 1, |
783 }, { | 784 }, { |
(...skipping 18 matching lines...) Expand all Loading... |
802 | 803 |
803 ['OS=="android"', { | 804 ['OS=="android"', { |
804 'enable_webrtc%': 1, | 805 'enable_webrtc%': 1, |
805 }], | 806 }], |
806 | 807 |
807 ['OS=="ios"', { | 808 ['OS=="ios"', { |
808 'disable_ftp_support%': 1, | 809 'disable_ftp_support%': 1, |
809 'enable_extensions%': 0, | 810 'enable_extensions%': 0, |
810 'enable_google_now%': 0, | 811 'enable_google_now%': 0, |
811 'cld_version%': 1, | 812 'cld_version%': 1, |
812 'enable_printing%': 0, | 813 'enable_basic_printing%': 0, |
| 814 'enable_print_preview%': 0, |
813 'enable_session_service%': 0, | 815 'enable_session_service%': 0, |
814 'enable_themes%': 0, | 816 'enable_themes%': 0, |
815 'enable_webrtc%': 0, | 817 'enable_webrtc%': 0, |
816 'notifications%': 0, | 818 'notifications%': 0, |
817 'remoting%': 0, | 819 'remoting%': 0, |
818 'safe_browsing%': 0, | 820 'safe_browsing%': 0, |
819 'enable_managed_users%': 0, | 821 'enable_managed_users%': 0, |
820 'enable_task_manager%': 0, | 822 'enable_task_manager%': 0, |
821 'use_system_libcxx%': 1, | 823 'use_system_libcxx%': 1, |
822 'support_pre_M6_history_database%': 0, | 824 'support_pre_M6_history_database%': 0, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 # Enable Skia UI text drawing incrementally on different platforms. | 900 # Enable Skia UI text drawing incrementally on different platforms. |
899 # http://crbug.com/105550 | 901 # http://crbug.com/105550 |
900 # | 902 # |
901 # On Aura, this allows per-tile painting to be used in the browser | 903 # On Aura, this allows per-tile painting to be used in the browser |
902 # compositor. | 904 # compositor. |
903 ['OS!="android"', { | 905 ['OS!="android"', { |
904 'use_canvas_skia%': 1, | 906 'use_canvas_skia%': 1, |
905 }], | 907 }], |
906 | 908 |
907 ['chromeos==1', { | 909 ['chromeos==1', { |
| 910 'enable_basic_printing%': 0, |
| 911 'enable_print_preview%': 1, |
908 # When building for ChromeOS we dont want Chromium to use libjpeg_turb
o. | 912 # When building for ChromeOS we dont want Chromium to use libjpeg_turb
o. |
909 'use_libjpeg_turbo%': 0, | 913 'use_libjpeg_turbo%': 0, |
910 }], | 914 }], |
911 | 915 |
912 # Do not enable the Settings App on ChromeOS. | 916 # Do not enable the Settings App on ChromeOS. |
913 ['enable_app_list==1 and chromeos==0', { | 917 ['enable_app_list==1 and chromeos==0', { |
914 'enable_settings_app%': 1, | 918 'enable_settings_app%': 1, |
915 }, { | 919 }, { |
916 'enable_settings_app%': 0, | 920 'enable_settings_app%': 0, |
917 }], | 921 }], |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 # TODO(dpranke): http://crbug.com/266155 . | 976 # TODO(dpranke): http://crbug.com/266155 . |
973 ['OS=="android"', { | 977 ['OS=="android"', { |
974 'v8_optimized_debug%': 1, | 978 'v8_optimized_debug%': 1, |
975 }, { | 979 }, { |
976 'v8_optimized_debug%': 2, | 980 'v8_optimized_debug%': 2, |
977 }], | 981 }], |
978 | 982 |
979 # Disable various features by default on embedded. | 983 # Disable various features by default on embedded. |
980 ['embedded==1', { | 984 ['embedded==1', { |
981 'remoting%': 0, | 985 'remoting%': 0, |
982 'enable_printing%': 0, | 986 'enable_basic_printing%': 0, |
| 987 'enable_print_preview%': 0, |
983 }], | 988 }], |
984 | 989 |
985 # By default, use ICU data file (icudtl.dat) on all platforms | 990 # By default, use ICU data file (icudtl.dat) on all platforms |
986 # except when building Android WebView or Chromecast. | 991 # except when building Android WebView or Chromecast. |
987 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). | 992 # TODO(jshin): Handle 'use_system_icu' on Linux (Chromium). |
988 # Set the data reduction proxy origin for Android Webview. | 993 # Set the data reduction proxy origin for Android Webview. |
989 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch
romecast==0', { | 994 ['android_webview_build==0 and android_webview_telemetry_build==0 and ch
romecast==0', { |
990 'icu_use_data_file_flag%' : 1, | 995 'icu_use_data_file_flag%' : 1, |
991 }, { | 996 }, { |
992 'icu_use_data_file_flag%' : 0, | 997 'icu_use_data_file_flag%' : 0, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', | 1173 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', |
1169 'enable_background%': '<(enable_background)', | 1174 'enable_background%': '<(enable_background)', |
1170 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', | 1175 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', |
1171 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', | 1176 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', |
1172 'linux_use_gold_flags%': '<(linux_use_gold_flags)', | 1177 'linux_use_gold_flags%': '<(linux_use_gold_flags)', |
1173 'linux_use_debug_fission%': '<(linux_use_debug_fission)', | 1178 'linux_use_debug_fission%': '<(linux_use_debug_fission)', |
1174 'use_canvas_skia%': '<(use_canvas_skia)', | 1179 'use_canvas_skia%': '<(use_canvas_skia)', |
1175 'test_isolation_mode%': '<(test_isolation_mode)', | 1180 'test_isolation_mode%': '<(test_isolation_mode)', |
1176 'test_isolation_outdir%': '<(test_isolation_outdir)', | 1181 'test_isolation_outdir%': '<(test_isolation_outdir)', |
1177 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', | 1182 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', |
1178 'enable_printing%': '<(enable_printing)', | 1183 'enable_basic_printing%': '<(enable_basic_printing)', |
| 1184 'enable_print_preview%': '<(enable_print_preview)', |
1179 'enable_spellcheck%': '<(enable_spellcheck)', | 1185 'enable_spellcheck%': '<(enable_spellcheck)', |
1180 'enable_google_now%': '<(enable_google_now)', | 1186 'enable_google_now%': '<(enable_google_now)', |
1181 'cld_version%': '<(cld_version)', | 1187 'cld_version%': '<(cld_version)', |
1182 'cld2_table_size%': '<(cld2_table_size)', | 1188 'cld2_table_size%': '<(cld2_table_size)', |
1183 'cld2_data_source%': '<(cld2_data_source)', | 1189 'cld2_data_source%': '<(cld2_data_source)', |
1184 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 1190 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
1185 'disable_file_support%': '<(disable_file_support)', | 1191 'disable_file_support%': '<(disable_file_support)', |
1186 'disable_ftp_support%': '<(disable_ftp_support)', | 1192 'disable_ftp_support%': '<(disable_ftp_support)', |
1187 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', | 1193 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', |
1188 'enable_task_manager%': '<(enable_task_manager)', | 1194 'enable_task_manager%': '<(enable_task_manager)', |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 'clang_xcode%': 1, | 2095 'clang_xcode%': 1, |
2090 }], | 2096 }], |
2091 ], | 2097 ], |
2092 }], | 2098 }], |
2093 ['enable_extensions==1', { | 2099 ['enable_extensions==1', { |
2094 'grit_defines': ['-D', 'enable_extensions'], | 2100 'grit_defines': ['-D', 'enable_extensions'], |
2095 }], | 2101 }], |
2096 ['enable_plugins!=0', { | 2102 ['enable_plugins!=0', { |
2097 'grit_defines': ['-D', 'enable_plugins'], | 2103 'grit_defines': ['-D', 'enable_plugins'], |
2098 }], | 2104 }], |
2099 ['enable_printing!=0', { | 2105 ['enable_basic_printing==1 or enable_print_preview==1', { |
2100 'grit_defines': ['-D', 'enable_printing'], | 2106 'grit_defines': ['-D', 'enable_printing'], |
2101 }], | 2107 }], |
2102 ['enable_printing==1', { | 2108 ['enable_print_preview==1', { |
2103 'grit_defines': ['-D', 'enable_full_printing'], | 2109 'grit_defines': ['-D', 'enable_print_preview'], |
2104 }], | 2110 }], |
2105 ['enable_themes==1', { | 2111 ['enable_themes==1', { |
2106 'grit_defines': ['-D', 'enable_themes'], | 2112 'grit_defines': ['-D', 'enable_themes'], |
2107 }], | 2113 }], |
2108 ['enable_app_list==1', { | 2114 ['enable_app_list==1', { |
2109 'grit_defines': ['-D', 'enable_app_list'], | 2115 'grit_defines': ['-D', 'enable_app_list'], |
2110 }], | 2116 }], |
2111 ['enable_settings_app==1', { | 2117 ['enable_settings_app==1', { |
2112 'grit_defines': ['-D', 'enable_settings_app'], | 2118 'grit_defines': ['-D', 'enable_settings_app'], |
2113 }], | 2119 }], |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 # Do not disable seccomp_bpf anywhere without talking to | 2347 # Do not disable seccomp_bpf anywhere without talking to |
2342 # security@chromium.org! | 2348 # security@chromium.org! |
2343 ['((OS=="linux" or OS=="android") and ' | 2349 ['((OS=="linux" or OS=="android") and ' |
2344 '(target_arch=="ia32" or target_arch=="x64" or ' | 2350 '(target_arch=="ia32" or target_arch=="x64" or ' |
2345 'target_arch=="arm" or target_arch=="mipsel" or ' | 2351 'target_arch=="arm" or target_arch=="mipsel" or ' |
2346 'target_arch=="arm64"))', { | 2352 'target_arch=="arm64"))', { |
2347 'use_seccomp_bpf%': 1, | 2353 'use_seccomp_bpf%': 1, |
2348 }, { | 2354 }, { |
2349 'use_seccomp_bpf%': 0, | 2355 'use_seccomp_bpf%': 0, |
2350 }], | 2356 }], |
| 2357 |
2351 # Set component build with LTO until all tests pass. | 2358 # Set component build with LTO until all tests pass. |
2352 # This also reduces link time. | 2359 # This also reduces link time. |
2353 ['use_lto==1', { | 2360 ['use_lto==1', { |
2354 'component%': "shared_library", | 2361 'component%': "shared_library", |
2355 }], | 2362 }], |
2356 ], | 2363 ], |
2357 | 2364 |
2358 # older history files use fts2 instead of fts3 | 2365 # older history files use fts2 instead of fts3 |
2359 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', | 2366 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', |
2360 | 2367 |
(...skipping 18 matching lines...) Expand all Loading... |
2379 '<(PRODUCT_DIR)/default_apps/gmail.crx', | 2386 '<(PRODUCT_DIR)/default_apps/gmail.crx', |
2380 '<(PRODUCT_DIR)/default_apps/search.crx', | 2387 '<(PRODUCT_DIR)/default_apps/search.crx', |
2381 '<(PRODUCT_DIR)/default_apps/youtube.crx', | 2388 '<(PRODUCT_DIR)/default_apps/youtube.crx', |
2382 '<(PRODUCT_DIR)/default_apps/drive.crx', | 2389 '<(PRODUCT_DIR)/default_apps/drive.crx', |
2383 '<(PRODUCT_DIR)/default_apps/docs.crx', | 2390 '<(PRODUCT_DIR)/default_apps/docs.crx', |
2384 ], | 2391 ], |
2385 | 2392 |
2386 # Whether to allow building of the GPU-related isolates. | 2393 # Whether to allow building of the GPU-related isolates. |
2387 'archive_gpu_tests%': 0, | 2394 'archive_gpu_tests%': 0, |
2388 | 2395 |
2389 # Whether to allow building of chromoting related isolates. | 2396 # Whether to allow building of chromoting related isolates. |
2390 'archive_chromoting_tests%': 0, | 2397 'archive_chromoting_tests%': 0, |
2391 }, | 2398 }, |
2392 'target_defaults': { | 2399 'target_defaults': { |
2393 'variables': { | 2400 'variables': { |
2394 # The condition that operates on chromium_code is in a target_conditions | 2401 # The condition that operates on chromium_code is in a target_conditions |
2395 # section, and will not have access to the default fallback value of | 2402 # section, and will not have access to the default fallback value of |
2396 # chromium_code at the top of this file, or to the chromium_code | 2403 # chromium_code at the top of this file, or to the chromium_code |
2397 # variable placed at the root variables scope of .gyp files, because | 2404 # variable placed at the root variables scope of .gyp files, because |
2398 # those variables are not set at target scope. As a workaround, | 2405 # those variables are not set at target scope. As a workaround, |
2399 # if chromium_code is not set at target scope, define it in target scope | 2406 # if chromium_code is not set at target scope, define it in target scope |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2916 'defines': ['ENABLE_GOOGLE_NOW=1'], | 2923 'defines': ['ENABLE_GOOGLE_NOW=1'], |
2917 }], | 2924 }], |
2918 ['cld_version!=0', { | 2925 ['cld_version!=0', { |
2919 'defines': ['CLD_VERSION=<(cld_version)'], | 2926 'defines': ['CLD_VERSION=<(cld_version)'], |
2920 }], | 2927 }], |
2921 ['cld_version==2', { | 2928 ['cld_version==2', { |
2922 # This is used to populate the "CLD Data Source" field in: | 2929 # This is used to populate the "CLD Data Source" field in: |
2923 # chrome://translate-internals | 2930 # chrome://translate-internals |
2924 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'], | 2931 'defines': ['CLD2_DATA_SOURCE=<(cld2_data_source)'], |
2925 }], | 2932 }], |
2926 ['enable_printing==1', { | 2933 ['enable_basic_printing==1 or enable_print_preview==1', { |
2927 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], | 2934 # Convenience define for ENABLE_BASIC_PRINTING || ENABLE_PRINT_PREVIEW. |
| 2935 'defines': ['ENABLE_PRINTING=1'], |
2928 }], | 2936 }], |
2929 ['enable_printing==2', { | 2937 ['enable_basic_printing==1', { |
2930 'defines': ['ENABLE_PRINTING=1'], | 2938 # Enable basic printing support and UI. |
| 2939 'defines': ['ENABLE_BASIC_PRINTING=1'], |
| 2940 }], |
| 2941 ['enable_print_preview==1', { |
| 2942 # Enable printing with print preview. |
| 2943 # Can be defined without ENABLE_BASIC_PRINTING. |
| 2944 'defines': ['ENABLE_PRINT_PREVIEW=1'], |
2931 }], | 2945 }], |
2932 ['enable_spellcheck==1', { | 2946 ['enable_spellcheck==1', { |
2933 'defines': ['ENABLE_SPELLCHECK=1'], | 2947 'defines': ['ENABLE_SPELLCHECK=1'], |
2934 }], | 2948 }], |
2935 ['enable_captive_portal_detection==1', { | 2949 ['enable_captive_portal_detection==1', { |
2936 'defines': ['ENABLE_CAPTIVE_PORTAL_DETECTION=1'], | 2950 'defines': ['ENABLE_CAPTIVE_PORTAL_DETECTION=1'], |
2937 }], | 2951 }], |
2938 ['enable_app_list==1', { | 2952 ['enable_app_list==1', { |
2939 'defines': ['ENABLE_APP_LIST=1'], | 2953 'defines': ['ENABLE_APP_LIST=1'], |
2940 }], | 2954 }], |
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4634 # to say that it does. Define them here instead. | 4648 # to say that it does. Define them here instead. |
4635 'HAVE_SYS_UIO_H', | 4649 'HAVE_SYS_UIO_H', |
4636 ], | 4650 ], |
4637 'cflags': [ | 4651 'cflags': [ |
4638 '--sysroot=<(android_ndk_sysroot)', | 4652 '--sysroot=<(android_ndk_sysroot)', |
4639 ], | 4653 ], |
4640 'ldflags': [ | 4654 'ldflags': [ |
4641 '--sysroot=<(android_ndk_sysroot)', | 4655 '--sysroot=<(android_ndk_sysroot)', |
4642 '-nostdlib', | 4656 '-nostdlib', |
4643 ], | 4657 ], |
| 4658 'variables': { |
| 4659 'conditions': [ |
| 4660 ['target_arch=="arm" and arm_thumb==1', { |
| 4661 'thumb_option%': '-mthumb', |
| 4662 }, { |
| 4663 'thumb_option%': '', |
| 4664 }], |
| 4665 ], |
| 4666 }, |
4644 'libraries': [ | 4667 'libraries': [ |
4645 '-l<(android_stlport_library)', | 4668 '-l<(android_stlport_library)', |
4646 # Manually link the libgcc.a that the cross compiler uses. | 4669 # Manually link the libgcc.a that the cross compiler uses. |
4647 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', | 4670 '<!(<(android_toolchain)/*-gcc <(thumb_option) -print-libgcc-f
ile-name)', |
4648 '-lc', | 4671 '-lc', |
4649 '-ldl', | 4672 '-ldl', |
4650 '-lm', | 4673 '-lm', |
4651 ], | 4674 ], |
4652 }], | 4675 }], |
4653 ['android_webview_build==1', { | 4676 ['android_webview_build==1', { |
4654 'cflags': [ | 4677 'cflags': [ |
4655 # Android predefines this as 1; undefine it here so Chromium | 4678 # Android predefines this as 1; undefine it here so Chromium |
4656 # can redefine it later to be 2 for chromium code and unset | 4679 # can redefine it later to be 2 for chromium code and unset |
4657 # for third party code. This works because cflags are added | 4680 # for third party code. This works because cflags are added |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4702 # NOTE: The stlport header include paths below are specified in | 4725 # NOTE: The stlport header include paths below are specified in |
4703 # cflags rather than include_dirs because they need to come | 4726 # cflags rather than include_dirs because they need to come |
4704 # after include_dirs. Think of them like system headers, but | 4727 # after include_dirs. Think of them like system headers, but |
4705 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 | 4728 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
4706 # toolchain (circa Gingerbread) will exhibit strange errors. | 4729 # toolchain (circa Gingerbread) will exhibit strange errors. |
4707 # The include ordering here is important; change with caution. | 4730 # The include ordering here is important; change with caution. |
4708 ['android_webview_build==0', { | 4731 ['android_webview_build==0', { |
4709 'cflags': [ | 4732 'cflags': [ |
4710 '-isystem<(android_stlport_include)', | 4733 '-isystem<(android_stlport_include)', |
4711 ], | 4734 ], |
4712 'ldflags': [ | 4735 'conditions': [ |
4713 '-L<(android_stlport_libs_dir)', | 4736 ['target_arch=="arm" and arm_thumb==1', { |
| 4737 'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ] |
| 4738 }, { |
| 4739 'ldflags': [ '-L<(android_stlport_libs_dir)' ] |
| 4740 }], |
4714 ], | 4741 ], |
4715 }, { # else: android_webview_build!=0 | 4742 }, { # else: android_webview_build!=0 |
4716 'aosp_build_settings': { | 4743 'aosp_build_settings': { |
4717 # Specify that we want to statically link stlport from the | 4744 # Specify that we want to statically link stlport from the |
4718 # NDK. This will provide all the include and library paths | 4745 # NDK. This will provide all the include and library paths |
4719 # automatically at build time, and link the right library. | 4746 # automatically at build time, and link the right library. |
4720 'LOCAL_NDK_STL_VARIANT': 'stlport_static', | 4747 'LOCAL_NDK_STL_VARIANT': 'stlport_static', |
4721 }, | 4748 }, |
4722 }], | 4749 }], |
4723 ['target_arch=="ia32"', { | 4750 ['target_arch=="ia32"', { |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5144 }], # mac_real_dsym | 5171 }], # mac_real_dsym |
5145 ], # target_conditions | 5172 ], # target_conditions |
5146 }], # (_type=="executable" or _type=="shared_library" or | 5173 }], # (_type=="executable" or _type=="shared_library" or |
5147 # _type=="loadable_module") and mac_strip!=0 | 5174 # _type=="loadable_module") and mac_strip!=0 |
5148 ], # target_conditions | 5175 ], # target_conditions |
5149 }, # target_defaults | 5176 }, # target_defaults |
5150 }], # OS=="mac" | 5177 }], # OS=="mac" |
5151 ['OS=="ios"', { | 5178 ['OS=="ios"', { |
5152 'target_defaults': { | 5179 'target_defaults': { |
5153 'xcode_settings' : { | 5180 'xcode_settings' : { |
5154 # TODO(stuartmorgan): switch to c++0x (see TODOs in the clang | 5181 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11', |
5155 # section above). | |
5156 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++0x', | |
5157 | 5182 |
5158 'conditions': [ | 5183 'conditions': [ |
5159 # Older Xcodes do not support -Wno-deprecated-register, so pass an | 5184 # Older Xcodes do not support -Wno-deprecated-register, so pass an |
5160 # additional flag to suppress the "unknown compiler option" error. | 5185 # additional flag to suppress the "unknown compiler option" error. |
5161 # Restrict this flag to builds that are either compiling with Xcode | 5186 # Restrict this flag to builds that are either compiling with Xcode |
5162 # or compiling with Xcode's Clang. This will allow Ninja builds to | 5187 # or compiling with Xcode's Clang. This will allow Ninja builds to |
5163 # continue failing on unknown compiler options. | 5188 # continue failing on unknown compiler options. |
5164 # TODO(rohitrao): This flag is temporary and should be removed as | 5189 # TODO(rohitrao): This flag is temporary and should be removed as |
5165 # soon as the iOS bots are updated to use Xcode 5.1. | 5190 # soon as the iOS bots are updated to use Xcode 5.1. |
5166 ['clang_xcode==1', { | 5191 ['clang_xcode==1', { |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5712 'target_conditions': [ | 5737 'target_conditions': [ |
5713 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ]}], | 5738 ['_toolset=="host"', { 'cflags!': [ '-Wno-unused-local-typedefs' ]}], |
5714 ], | 5739 ], |
5715 }, | 5740 }, |
5716 }], | 5741 }], |
5717 # In the android webview build, force host targets to be compiled with clang | 5742 # In the android webview build, force host targets to be compiled with clang |
5718 # as the hermetic host gcc is very old on some platforms. This is already | 5743 # as the hermetic host gcc is very old on some platforms. This is already |
5719 # the default on the current development version of AOSP but we force it | 5744 # the default on the current development version of AOSP but we force it |
5720 # here in case we need to compile against an older release version. We also | 5745 # here in case we need to compile against an older release version. We also |
5721 # explicitly set it to false for target binaries to avoid causing problems | 5746 # explicitly set it to false for target binaries to avoid causing problems |
5722 # for the work to enable clang by default in AOSP. | 5747 # for the work to enable clang by default in AOSP. We also force the use of |
| 5748 # libstdc++ on host as peculiarities of the android gyp backend mean that |
| 5749 # using libc++ doesn't work, and Chromium doesn't yet require a more modern |
| 5750 # C++ library. |
5723 ['android_webview_build==1', { | 5751 ['android_webview_build==1', { |
5724 'target_defaults': { | 5752 'target_defaults': { |
5725 'target_conditions': [ | 5753 'target_conditions': [ |
5726 ['_toolset=="host"', { | 5754 ['_toolset=="host"', { |
5727 'aosp_build_settings': { | 5755 'aosp_build_settings': { |
5728 'LOCAL_CLANG': 'true', | 5756 'LOCAL_CLANG': 'true', |
| 5757 'LOCAL_CXX_STL': 'libstdc++', |
5729 }, | 5758 }, |
5730 }, { # else: _toolset != "host" | 5759 }, { # else: _toolset != "host" |
5731 'aosp_build_settings': { | 5760 'aosp_build_settings': { |
5732 'LOCAL_CLANG': 'false', | 5761 'LOCAL_CLANG': 'false', |
5733 }, | 5762 }, |
5734 }], | 5763 }], |
5735 ], | 5764 ], |
5736 }, | 5765 }, |
5737 }], | 5766 }], |
5738 # We need a special case to handle the android webview build on mac because | 5767 # We need a special case to handle the android webview build on mac because |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5890 # settings in target dicts. SYMROOT is a special case, because many other | 5919 # settings in target dicts. SYMROOT is a special case, because many other |
5891 # Xcode variables depend on it, including variables such as | 5920 # Xcode variables depend on it, including variables such as |
5892 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5893 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5922 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5894 # files to appear (when present) in the UI as actual files and not red | 5923 # files to appear (when present) in the UI as actual files and not red |
5895 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5924 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5896 # and therefore SYMROOT, needs to be set at the project level. | 5925 # and therefore SYMROOT, needs to be set at the project level. |
5897 'SYMROOT': '<(DEPTH)/xcodebuild', | 5926 'SYMROOT': '<(DEPTH)/xcodebuild', |
5898 }, | 5927 }, |
5899 } | 5928 } |
OLD | NEW |