| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 # TODO(asvitkine): Enable this on all platforms and delete this flag. | 577 # TODO(asvitkine): Enable this on all platforms and delete this flag. |
| 578 # http://crbug.com/105550 | 578 # http://crbug.com/105550 |
| 579 'use_canvas_skia%': 0, | 579 'use_canvas_skia%': 0, |
| 580 | 580 |
| 581 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work | 581 # Set to "tsan", "memcheck", or "drmemory" to configure the build to work |
| 582 # with one of those tools. | 582 # with one of those tools. |
| 583 'build_for_tool%': '', | 583 'build_for_tool%': '', |
| 584 | 584 |
| 585 # If no directory is specified then a temporary directory will be used. | 585 # If no directory is specified then a temporary directory will be used. |
| 586 'test_isolation_outdir%': '', | 586 'test_isolation_outdir%': '', |
| 587 # True if isolate should fail if the isolate files refer to files |
| 588 # that are missing. |
| 589 'test_isolation_fail_on_missing': 1, |
| 587 | 590 |
| 588 'wix_path%': '<(DEPTH)/third_party/wix', | 591 'wix_path%': '<(DEPTH)/third_party/wix', |
| 589 | 592 |
| 590 # Supervised users are enabled by default. | 593 # Supervised users are enabled by default. |
| 591 'enable_supervised_users%': 1, | 594 'enable_supervised_users%': 1, |
| 592 | 595 |
| 593 # Platform natively supports discardable memory. | 596 # Platform natively supports discardable memory. |
| 594 'native_discardable_memory%': 0, | 597 'native_discardable_memory%': 0, |
| 595 | 598 |
| 596 # Platform sends memory pressure signals natively. | 599 # Platform sends memory pressure signals natively. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 620 # Variables to control Link-Time Optimizations (LTO). | 623 # Variables to control Link-Time Optimizations (LTO). |
| 621 # Note: the variables must *not* be enabled at the same time. | 624 # Note: the variables must *not* be enabled at the same time. |
| 622 # In this case LTO would 'merge' the optimization flags | 625 # In this case LTO would 'merge' the optimization flags |
| 623 # at link-time which would lead to all code be optimized with -O2. | 626 # at link-time which would lead to all code be optimized with -O2. |
| 624 # Enable LTO on the code compiled with -Os. | 627 # Enable LTO on the code compiled with -Os. |
| 625 # See crbug.com/407544 | 628 # See crbug.com/407544 |
| 626 'use_lto%': 0, | 629 'use_lto%': 0, |
| 627 # Enable LTO on code compiled with -O2. | 630 # Enable LTO on code compiled with -O2. |
| 628 'use_lto_o2%': 0, | 631 'use_lto_o2%': 0, |
| 629 | 632 |
| 630 # Allowed level of identical code folding in the gold linker. | |
| 631 'gold_icf_level%': 'safe', | |
| 632 | |
| 633 # Libxkbcommon usage. | 633 # Libxkbcommon usage. |
| 634 'use_xkbcommon%': 0, | 634 'use_xkbcommon%': 0, |
| 635 | 635 |
| 636 'conditions': [ | 636 'conditions': [ |
| 637 # A flag for POSIX platforms | 637 # A flag for POSIX platforms |
| 638 ['OS=="win"', { | 638 ['OS=="win"', { |
| 639 'os_posix%': 0, | 639 'os_posix%': 0, |
| 640 }, { | 640 }, { |
| 641 'os_posix%': 1, | 641 'os_posix%': 1, |
| 642 }], | 642 }], |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 'enable_autofill_dialog%': '<(enable_autofill_dialog)', | 1150 'enable_autofill_dialog%': '<(enable_autofill_dialog)', |
| 1151 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', | 1151 'enable_prod_wallet_service%': '<(enable_prod_wallet_service)', |
| 1152 'enable_background%': '<(enable_background)', | 1152 'enable_background%': '<(enable_background)', |
| 1153 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', | 1153 'linux_use_bundled_gold%': '<(linux_use_bundled_gold)', |
| 1154 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', | 1154 'linux_use_bundled_binutils%': '<(linux_use_bundled_binutils)', |
| 1155 'linux_use_gold_flags%': '<(linux_use_gold_flags)', | 1155 'linux_use_gold_flags%': '<(linux_use_gold_flags)', |
| 1156 'linux_use_debug_fission%': '<(linux_use_debug_fission)', | 1156 'linux_use_debug_fission%': '<(linux_use_debug_fission)', |
| 1157 'use_canvas_skia%': '<(use_canvas_skia)', | 1157 'use_canvas_skia%': '<(use_canvas_skia)', |
| 1158 'test_isolation_mode%': '<(test_isolation_mode)', | 1158 'test_isolation_mode%': '<(test_isolation_mode)', |
| 1159 'test_isolation_outdir%': '<(test_isolation_outdir)', | 1159 'test_isolation_outdir%': '<(test_isolation_outdir)', |
| 1160 'test_isolation_fail_on_missing': '<(test_isolation_fail_on_missing)', |
| 1160 'enable_basic_printing%': '<(enable_basic_printing)', | 1161 'enable_basic_printing%': '<(enable_basic_printing)', |
| 1161 'enable_print_preview%': '<(enable_print_preview)', | 1162 'enable_print_preview%': '<(enable_print_preview)', |
| 1162 'enable_spellcheck%': '<(enable_spellcheck)', | 1163 'enable_spellcheck%': '<(enable_spellcheck)', |
| 1163 'enable_google_now%': '<(enable_google_now)', | 1164 'enable_google_now%': '<(enable_google_now)', |
| 1164 'cld_version%': '<(cld_version)', | 1165 'cld_version%': '<(cld_version)', |
| 1165 'cld2_table_size%': '<(cld2_table_size)', | 1166 'cld2_table_size%': '<(cld2_table_size)', |
| 1166 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 1167 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
| 1167 'disable_file_support%': '<(disable_file_support)', | 1168 'disable_file_support%': '<(disable_file_support)', |
| 1168 'disable_ftp_support%': '<(disable_ftp_support)', | 1169 'disable_ftp_support%': '<(disable_ftp_support)', |
| 1169 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', | 1170 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1191 'enable_mdns%' : '<(enable_mdns)', | 1192 'enable_mdns%' : '<(enable_mdns)', |
| 1192 'enable_service_discovery%' : '<(enable_service_discovery)', | 1193 'enable_service_discovery%' : '<(enable_service_discovery)', |
| 1193 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', | 1194 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', |
| 1194 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', | 1195 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension)
', |
| 1195 'v8_optimized_debug%': '<(v8_optimized_debug)', | 1196 'v8_optimized_debug%': '<(v8_optimized_debug)', |
| 1196 'proprietary_codecs%': '<(proprietary_codecs)', | 1197 'proprietary_codecs%': '<(proprietary_codecs)', |
| 1197 'use_goma%': '<(use_goma)', | 1198 'use_goma%': '<(use_goma)', |
| 1198 'gomadir%': '<(gomadir)', | 1199 'gomadir%': '<(gomadir)', |
| 1199 'use_lto%': '<(use_lto)', | 1200 'use_lto%': '<(use_lto)', |
| 1200 'use_lto_o2%': '<(use_lto_o2)', | 1201 'use_lto_o2%': '<(use_lto_o2)', |
| 1201 'gold_icf_level%': '<(gold_icf_level)', | |
| 1202 'video_hole%': '<(video_hole)', | 1202 'video_hole%': '<(video_hole)', |
| 1203 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)', | 1203 'support_pre_M6_history_database%': '<(support_pre_M6_history_database)', |
| 1204 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', | 1204 'v8_use_external_startup_data%': '<(v8_use_external_startup_data)', |
| 1205 | 1205 |
| 1206 # Use system protobuf instead of bundled one. | 1206 # Use system protobuf instead of bundled one. |
| 1207 'use_system_protobuf%': 0, | 1207 'use_system_protobuf%': 0, |
| 1208 | 1208 |
| 1209 # Use system yasm instead of bundled one. | 1209 # Use system yasm instead of bundled one. |
| 1210 'use_system_yasm%': 0, | 1210 'use_system_yasm%': 0, |
| 1211 | 1211 |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1795 | 1795 |
| 1796 # Uses system APIs for decoding audio and video. | 1796 # Uses system APIs for decoding audio and video. |
| 1797 'use_libffmpeg%': '0', | 1797 'use_libffmpeg%': '0', |
| 1798 | 1798 |
| 1799 # TODO(torne): Remove this unsupported option once all the places that | 1799 # TODO(torne): Remove this unsupported option once all the places that |
| 1800 # test it have been updated. | 1800 # test it have been updated. |
| 1801 'use_system_stlport%': 0, | 1801 'use_system_stlport%': 0, |
| 1802 | 1802 |
| 1803 # Copy it out one scope. | 1803 # Copy it out one scope. |
| 1804 'android_webview_build%': '<(android_webview_build)', | 1804 'android_webview_build%': '<(android_webview_build)', |
| 1805 |
| 1806 # Default android linker script for shared library exports. |
| 1807 'android_linker_script%': '<(SHARED_INTERMEDIATE_DIR)/android_exports.ls
t', |
| 1805 }], # OS=="android" | 1808 }], # OS=="android" |
| 1806 ['embedded==1', { | 1809 ['embedded==1', { |
| 1807 'use_system_fontconfig%': 0, | 1810 'use_system_fontconfig%': 0, |
| 1808 }, { | 1811 }, { |
| 1809 'use_system_fontconfig%': 1, | 1812 'use_system_fontconfig%': 1, |
| 1810 }], | 1813 }], |
| 1811 ['chromecast==1', { | 1814 ['chromecast==1', { |
| 1812 'enable_mpeg2ts_stream_parser%': 1, | 1815 'enable_mpeg2ts_stream_parser%': 1, |
| 1813 'ffmpeg_branding%': 'ChromeOS', | 1816 'ffmpeg_branding%': 'ChromeOS', |
| 1814 'ozone_platform_ozonex%': 1, | 1817 'ozone_platform_ozonex%': 1, |
| 1815 'use_playready%': 0, | 1818 'use_playready%': 0, |
| 1816 'conditions': [ | 1819 'conditions': [ |
| 1817 ['target_arch=="arm"', { | 1820 ['target_arch=="arm"', { |
| 1818 'arm_arch%': '', | 1821 'arm_arch%': '', |
| 1819 'arm_tune%': 'cortex-a9', | 1822 'arm_tune%': 'cortex-a9', |
| 1820 'arm_thumb%': 1, | 1823 'arm_thumb%': 1, |
| 1821 'video_hole%': 1, | 1824 'video_hole%': 1, |
| 1822 }], | 1825 }], |
| 1823 ], | 1826 ], |
| 1824 }], | 1827 }], |
| 1825 ['android_webview_build==1', { | 1828 ['android_webview_build==1', { |
| 1826 # When building the WebView in the Android tree, jarjar will remap all | 1829 # When building the WebView in the Android tree, jarjar will remap all |
| 1827 # the class names, so the JNI generator needs to know this. | 1830 # the class names, so the JNI generator needs to know this. |
| 1828 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt'
, | 1831 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt'
, |
| 1829 }], | 1832 }], |
| 1830 ['OS=="linux" and target_arch!="mipsel"', { | 1833 ['OS=="linux" and target_arch!="mipsel"', { |
| 1834 # TODO(thakis): This is here to measure perf for a while. |
| 1831 'clang%': 1, | 1835 'clang%': 1, |
| 1832 }], # OS=="mac" | 1836 }], # OS=="mac" |
| 1833 ['OS=="mac"', { | 1837 ['OS=="mac"', { |
| 1834 'conditions': [ | 1838 'conditions': [ |
| 1835 # All Chrome builds have breakpad symbols, but only process the | 1839 # All Chrome builds have breakpad symbols, but only process the |
| 1836 # symbols from official builds. | 1840 # symbols from official builds. |
| 1837 ['(branding=="Chrome" and buildtype=="Official")', { | 1841 ['(branding=="Chrome" and buildtype=="Official")', { |
| 1838 'mac_strip_release%': 1, | 1842 'mac_strip_release%': 1, |
| 1839 }], | 1843 }], |
| 1840 ], | 1844 ], |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], | 2137 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message("
whitelisted_resource_{numeric_id}")) {numeric_id}'], |
| 2134 }], | 2138 }], |
| 2135 ['enable_mdns==1 or OS=="mac"', { | 2139 ['enable_mdns==1 or OS=="mac"', { |
| 2136 'grit_defines': ['-D', 'enable_service_discovery'], | 2140 'grit_defines': ['-D', 'enable_service_discovery'], |
| 2137 'enable_service_discovery%': 1 | 2141 'enable_service_discovery%': 1 |
| 2138 }], | 2142 }], |
| 2139 ['clang_use_chrome_plugins==1 and OS!="win"', { | 2143 ['clang_use_chrome_plugins==1 and OS!="win"', { |
| 2140 'clang_chrome_plugins_flags': [ | 2144 'clang_chrome_plugins_flags': [ |
| 2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 2145 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
| 2142 ], | 2146 ], |
| 2147 'conditions': [ |
| 2148 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag |
| 2149 # on all platforms is currently underway. |
| 2150 ['OS=="android" or OS=="linux" or OS=="mac" or OS=="ios"', { |
| 2151 'clang_chrome_plugins_flags': [ |
| 2152 '-Xclang', |
| 2153 '-plugin-arg-find-bad-constructs', |
| 2154 '-Xclang', |
| 2155 'strict-virtual-specifiers', |
| 2156 ], |
| 2157 }], |
| 2158 ], |
| 2143 }], | 2159 }], |
| 2144 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2160 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
| 2145 'clang%': 1, | 2161 'clang%': 1, |
| 2146 'use_allocator%': 'none', | 2162 'use_allocator%': 'none', |
| 2147 'use_sanitizer_options%': 1, | 2163 'use_sanitizer_options%': 1, |
| 2148 # Disable ICF in the linker to avoid debug info loss. | |
| 2149 'gold_icf_level%': 'none', | |
| 2150 }], | 2164 }], |
| 2151 ['asan==1 and OS=="linux" and chromeos==0', { | 2165 ['asan==1 and OS=="linux" and chromeos==0', { |
| 2152 'use_custom_libcxx%': 1, | 2166 'use_custom_libcxx%': 1, |
| 2153 }], | 2167 }], |
| 2154 ['ubsan==1', { | 2168 ['ubsan==1', { |
| 2155 'clang%': 1, | 2169 'clang%': 1, |
| 2156 }], | 2170 }], |
| 2157 ['ubsan_vptr==1', { | 2171 ['ubsan_vptr==1', { |
| 2158 'clang%': 1, | 2172 'clang%': 1, |
| 2159 }], | 2173 }], |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2454 # pnacl uses the clang compiler so we need to suppress all the | 2468 # pnacl uses the clang compiler so we need to suppress all the |
| 2455 # same warnings as we do for clang. | 2469 # same warnings as we do for clang. |
| 2456 # TODO(sbc): Remove these if/when they are removed from the clang | 2470 # TODO(sbc): Remove these if/when they are removed from the clang |
| 2457 # build. | 2471 # build. |
| 2458 '-Wno-unused-function', | 2472 '-Wno-unused-function', |
| 2459 '-Wno-char-subscripts', | 2473 '-Wno-char-subscripts', |
| 2460 '-Wno-c++11-extensions', | 2474 '-Wno-c++11-extensions', |
| 2461 '-Wno-unnamed-type-template-args', | 2475 '-Wno-unnamed-type-template-args', |
| 2462 ], | 2476 ], |
| 2463 | 2477 |
| 2464 # By default, Android targets have their exported JNI symbols stripped, | |
| 2465 # so we test the manual JNI registration code paths that are required | |
| 2466 # when using the crazy linker. To allow use of native JNI exports (lazily | |
| 2467 # resolved by the JVM), targets can enable this variable, which will stop | |
| 2468 # the stripping from happening. Only targets which do not need to be | |
| 2469 # compatible with the crazy linker are permitted to set this. | |
| 2470 'use_native_jni_exports%': 0, | |
| 2471 | |
| 2472 'conditions': [ | 2478 'conditions': [ |
| 2473 ['OS=="win" and component=="shared_library"', { | 2479 ['OS=="win" and component=="shared_library"', { |
| 2474 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx | 2480 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx |
| 2475 'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL) | 2481 'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL) |
| 2476 'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL) | 2482 'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL) |
| 2477 }, { | 2483 }, { |
| 2478 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx | 2484 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx |
| 2479 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) | 2485 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) |
| 2480 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) | 2486 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) |
| 2481 }], | 2487 }], |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3504 }, | 3510 }, |
| 3505 }], | 3511 }], |
| 3506 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 | 3512 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 |
| 3507 ['os_posix==1 and disable_fatal_linker_warnings==0 and use_evdev_gestures==0
and (chromeos==0 or target_arch!="arm")', { | 3513 ['os_posix==1 and disable_fatal_linker_warnings==0 and use_evdev_gestures==0
and (chromeos==0 or target_arch!="arm")', { |
| 3508 'target_defaults': { | 3514 'target_defaults': { |
| 3509 'ldflags': [ | 3515 'ldflags': [ |
| 3510 '-Wl,--fatal-warnings', | 3516 '-Wl,--fatal-warnings', |
| 3511 ], | 3517 ], |
| 3512 }, | 3518 }, |
| 3513 }], | 3519 }], |
| 3514 # -Wl,-z,-defs doesn't work with the sanitiziers, http://crbug.com/452065 | 3520 # TODO(thakis): Enable this everywhere. http://crbug.com/371125 |
| 3515 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubs
an==0 and ubsan_vptr==0', { | 3521 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubs
an==0 and ubsan_vptr==0', { |
| 3516 'target_defaults': { | 3522 'target_defaults': { |
| 3517 'ldflags': [ | 3523 'ldflags': [ |
| 3518 '-Wl,-z,defs', | 3524 '-Wl,-z,defs', |
| 3519 ], | 3525 ], |
| 3520 }, | 3526 }, |
| 3521 }], | 3527 }], |
| 3522 ['os_posix==1 and chromeos==0', { | 3528 ['os_posix==1 and chromeos==0', { |
| 3523 # Chrome OS enables -fstack-protector-strong via its build wrapper, | 3529 # Chrome OS enables -fstack-protector-strong via its build wrapper, |
| 3524 # and we want to avoid overriding this, so stack-protector is only | 3530 # and we want to avoid overriding this, so stack-protector is only |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4401 # '-Wl,--threads', | 4407 # '-Wl,--threads', |
| 4402 # '-Wl,--thread-count=4', | 4408 # '-Wl,--thread-count=4', |
| 4403 ], | 4409 ], |
| 4404 }], | 4410 }], |
| 4405 ], | 4411 ], |
| 4406 'conditions': [ | 4412 'conditions': [ |
| 4407 ['release_valgrind_build==0 and order_profiling==0', { | 4413 ['release_valgrind_build==0 and order_profiling==0', { |
| 4408 'target_conditions': [ | 4414 'target_conditions': [ |
| 4409 ['_toolset=="target"', { | 4415 ['_toolset=="target"', { |
| 4410 'ldflags': [ | 4416 'ldflags': [ |
| 4411 '-Wl,--icf=<(gold_icf_level)', | 4417 '-Wl,--icf=safe', |
| 4412 ], | 4418 ], |
| 4413 }], | 4419 }], |
| 4414 ], | 4420 ], |
| 4415 }], | 4421 }], |
| 4416 ], | 4422 ], |
| 4417 }], | 4423 }], |
| 4418 ['linux_use_bundled_binutils==1', { | 4424 ['linux_use_bundled_binutils==1', { |
| 4419 'cflags': [ | 4425 'cflags': [ |
| 4420 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', | 4426 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', |
| 4421 ], | 4427 ], |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4581 '_STLP_USE_PTR_SPECIALIZATIONS=1', | 4587 '_STLP_USE_PTR_SPECIALIZATIONS=1', |
| 4582 'CHROME_BUILD_ID="<(chrome_build_id)"', | 4588 'CHROME_BUILD_ID="<(chrome_build_id)"', |
| 4583 ], | 4589 ], |
| 4584 'ldflags!': [ | 4590 'ldflags!': [ |
| 4585 '-pthread', # Not supported by Android toolchain. | 4591 '-pthread', # Not supported by Android toolchain. |
| 4586 ], | 4592 ], |
| 4587 'ldflags': [ | 4593 'ldflags': [ |
| 4588 '-Wl,--no-undefined', | 4594 '-Wl,--no-undefined', |
| 4589 ], | 4595 ], |
| 4590 'conditions': [ | 4596 'conditions': [ |
| 4591 ['component=="static_library" and android_webview_build==0', { | 4597 ['component=="static_library"', { |
| 4592 'target_conditions': [ | 4598 'ldflags': [ |
| 4593 ['use_native_jni_exports==0', { | 4599 '-Wl,--exclude-libs=ALL', |
| 4594 # Use a linker version script to strip JNI exports from | |
| 4595 # binaries which have not specifically asked to use them. | |
| 4596 'ldflags': [ | |
| 4597 '-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/build/andr
oid/android_no_jni_exports.lst', | |
| 4598 ], | |
| 4599 }], | |
| 4600 ], | 4600 ], |
| 4601 }], | 4601 }], |
| 4602 ['clang==1', { | 4602 ['clang==1', { |
| 4603 'cflags': [ | 4603 'cflags': [ |
| 4604 # Work around incompatibilities between bionic and clang | 4604 # Work around incompatibilities between bionic and clang |
| 4605 # headers. | 4605 # headers. |
| 4606 '-D__compiler_offsetof=__builtin_offsetof', | 4606 '-D__compiler_offsetof=__builtin_offsetof', |
| 4607 '-Dnan=__builtin_nan', | 4607 '-Dnan=__builtin_nan', |
| 4608 ], | 4608 ], |
| 4609 'conditions': [ | 4609 'conditions': [ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4649 # The NDK has these things, but doesn't define the constants | 4649 # The NDK has these things, but doesn't define the constants |
| 4650 # to say that it does. Define them here instead. | 4650 # to say that it does. Define them here instead. |
| 4651 'HAVE_SYS_UIO_H', | 4651 'HAVE_SYS_UIO_H', |
| 4652 ], | 4652 ], |
| 4653 'cflags': [ | 4653 'cflags': [ |
| 4654 '--sysroot=<(android_ndk_sysroot)', | 4654 '--sysroot=<(android_ndk_sysroot)', |
| 4655 ], | 4655 ], |
| 4656 'ldflags': [ | 4656 'ldflags': [ |
| 4657 '--sysroot=<(android_ndk_sysroot)', | 4657 '--sysroot=<(android_ndk_sysroot)', |
| 4658 '-nostdlib', | 4658 '-nostdlib', |
| 4659 # Don't allow visible symbols from libgcc or stlport to be | |
| 4660 # re-exported. | |
| 4661 '-Wl,--exclude-libs=libgcc.a', | |
| 4662 '-Wl,--exclude-libs=libstlport_static.a', | |
| 4663 # Don't allow visible symbols from libraries that contain | |
| 4664 # assembly code with symbols that aren't hidden properly. | |
| 4665 # http://crbug.com/448386 | |
| 4666 '-Wl,--exclude-libs=libcommon_audio.a', | |
| 4667 '-Wl,--exclude-libs=libcommon_audio_neon.a', | |
| 4668 '-Wl,--exclude-libs=libcommon_audio_sse2.a', | |
| 4669 '-Wl,--exclude-libs=libiSACFix.a', | |
| 4670 '-Wl,--exclude-libs=libisac_neon.a', | |
| 4671 '-Wl,--exclude-libs=libopus.a', | |
| 4672 '-Wl,--exclude-libs=libvpx.a', | |
| 4673 ], | 4659 ], |
| 4674 'libraries': [ | 4660 'libraries': [ |
| 4675 '-l<(android_stlport_library)', | 4661 '-l<(android_stlport_library)', |
| 4676 # Manually link the libgcc.a that the cross compiler uses. | 4662 # Manually link the libgcc.a that the cross compiler uses. |
| 4677 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', | 4663 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', |
| 4678 '-lc', | 4664 '-lc', |
| 4679 '-ldl', | 4665 '-ldl', |
| 4680 '-lm', | 4666 '-lm', |
| 4681 ], | 4667 ], |
| 4682 }], | 4668 }], |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4719 ], | 4705 ], |
| 4720 'cflags_cc': [ | 4706 'cflags_cc': [ |
| 4721 '-Wno-non-virtual-dtor', | 4707 '-Wno-non-virtual-dtor', |
| 4722 ], | 4708 ], |
| 4723 }], | 4709 }], |
| 4724 ], | 4710 ], |
| 4725 }], | 4711 }], |
| 4726 ['target_arch == "arm" and order_profiling==0', { | 4712 ['target_arch == "arm" and order_profiling==0', { |
| 4727 'ldflags': [ | 4713 'ldflags': [ |
| 4728 # Enable identical code folding to reduce size. | 4714 # Enable identical code folding to reduce size. |
| 4729 '-Wl,--icf=<(gold_icf_level)', | 4715 '-Wl,--icf=safe', |
| 4730 ], | 4716 ], |
| 4731 }], | 4717 }], |
| 4732 # NOTE: The stlport header include paths below are specified in | 4718 # NOTE: The stlport header include paths below are specified in |
| 4733 # cflags rather than include_dirs because they need to come | 4719 # cflags rather than include_dirs because they need to come |
| 4734 # after include_dirs. Think of them like system headers, but | 4720 # after include_dirs. Think of them like system headers, but |
| 4735 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 | 4721 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
| 4736 # toolchain (circa Gingerbread) will exhibit strange errors. | 4722 # toolchain (circa Gingerbread) will exhibit strange errors. |
| 4737 # The include ordering here is important; change with caution. | 4723 # The include ordering here is important; change with caution. |
| 4738 ['android_webview_build==0', { | 4724 ['android_webview_build==0', { |
| 4739 'cflags': [ | 4725 'cflags': [ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4779 # crtbegin_dynamic.o should be the last item in ldflags. | 4765 # crtbegin_dynamic.o should be the last item in ldflags. |
| 4780 '<(android_ndk_lib)/crtbegin_dynamic.o', | 4766 '<(android_ndk_lib)/crtbegin_dynamic.o', |
| 4781 ], | 4767 ], |
| 4782 'libraries': [ | 4768 'libraries': [ |
| 4783 # crtend_android.o needs to be the last item in libraries. | 4769 # crtend_android.o needs to be the last item in libraries. |
| 4784 # Do not add any libraries after this! | 4770 # Do not add any libraries after this! |
| 4785 '<(android_ndk_lib)/crtend_android.o', | 4771 '<(android_ndk_lib)/crtend_android.o', |
| 4786 ], | 4772 ], |
| 4787 }], | 4773 }], |
| 4788 ['_type=="shared_library" or _type=="loadable_module"', { | 4774 ['_type=="shared_library" or _type=="loadable_module"', { |
| 4775 'ldflags!': [ |
| 4776 '-Wl,--exclude-libs=ALL', |
| 4777 ], |
| 4789 'ldflags': [ | 4778 'ldflags': [ |
| 4790 '-Wl,-shared,-Bsymbolic', | 4779 '-Wl,-shared,-Bsymbolic', |
| 4791 ], | 4780 ], |
| 4792 'conditions': [ | 4781 'conditions': [ |
| 4793 ['android_webview_build==0', { | 4782 ['android_webview_build==0', { |
| 4794 'ldflags': [ | 4783 'ldflags': [ |
| 4795 # crtbegin_so.o should be the last item in ldflags. | 4784 # crtbegin_so.o should be the last item in ldflags. |
| 4796 '<(android_ndk_lib)/crtbegin_so.o', | 4785 '<(android_ndk_lib)/crtbegin_so.o', |
| 4797 ], | 4786 ], |
| 4798 'libraries': [ | 4787 'libraries': [ |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5919 # settings in target dicts. SYMROOT is a special case, because many other | 5908 # settings in target dicts. SYMROOT is a special case, because many other |
| 5920 # Xcode variables depend on it, including variables such as | 5909 # Xcode variables depend on it, including variables such as |
| 5921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5910 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5922 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5911 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5923 # files to appear (when present) in the UI as actual files and not red | 5912 # files to appear (when present) in the UI as actual files and not red |
| 5924 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5913 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5925 # and therefore SYMROOT, needs to be set at the project level. | 5914 # and therefore SYMROOT, needs to be set at the project level. |
| 5926 'SYMROOT': '<(DEPTH)/xcodebuild', | 5915 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5927 }, | 5916 }, |
| 5928 } | 5917 } |
| OLD | NEW |