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

Side by Side Diff: build/common.gypi

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 10 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
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.py ('k') | build/compiled_action.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
590 587
591 'wix_path%': '<(DEPTH)/third_party/wix', 588 'wix_path%': '<(DEPTH)/third_party/wix',
592 589
593 # Supervised users are enabled by default. 590 # Supervised users are enabled by default.
594 'enable_supervised_users%': 1, 591 'enable_supervised_users%': 1,
595 592
596 # Platform natively supports discardable memory. 593 # Platform natively supports discardable memory.
597 'native_discardable_memory%': 0, 594 'native_discardable_memory%': 0,
598 595
599 # Platform sends memory pressure signals natively. 596 # Platform sends memory pressure signals natively.
(...skipping 23 matching lines...) Expand all
623 # Variables to control Link-Time Optimizations (LTO). 620 # Variables to control Link-Time Optimizations (LTO).
624 # Note: the variables must *not* be enabled at the same time. 621 # Note: the variables must *not* be enabled at the same time.
625 # In this case LTO would 'merge' the optimization flags 622 # In this case LTO would 'merge' the optimization flags
626 # at link-time which would lead to all code be optimized with -O2. 623 # at link-time which would lead to all code be optimized with -O2.
627 # Enable LTO on the code compiled with -Os. 624 # Enable LTO on the code compiled with -Os.
628 # See crbug.com/407544 625 # See crbug.com/407544
629 'use_lto%': 0, 626 'use_lto%': 0,
630 # Enable LTO on code compiled with -O2. 627 # Enable LTO on code compiled with -O2.
631 'use_lto_o2%': 0, 628 'use_lto_o2%': 0,
632 629
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
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)',
1161 'enable_basic_printing%': '<(enable_basic_printing)', 1160 'enable_basic_printing%': '<(enable_basic_printing)',
1162 'enable_print_preview%': '<(enable_print_preview)', 1161 'enable_print_preview%': '<(enable_print_preview)',
1163 'enable_spellcheck%': '<(enable_spellcheck)', 1162 'enable_spellcheck%': '<(enable_spellcheck)',
1164 'enable_google_now%': '<(enable_google_now)', 1163 'enable_google_now%': '<(enable_google_now)',
1165 'cld_version%': '<(cld_version)', 1164 'cld_version%': '<(cld_version)',
1166 'cld2_table_size%': '<(cld2_table_size)', 1165 'cld2_table_size%': '<(cld2_table_size)',
1167 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', 1166 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)',
1168 'disable_file_support%': '<(disable_file_support)', 1167 'disable_file_support%': '<(disable_file_support)',
1169 'disable_ftp_support%': '<(disable_ftp_support)', 1168 'disable_ftp_support%': '<(disable_ftp_support)',
1170 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)', 1169 'use_icu_alternatives_on_android%': '<(use_icu_alternatives_on_android)',
(...skipping 21 matching lines...) Expand all
1192 'enable_mdns%' : '<(enable_mdns)', 1191 'enable_mdns%' : '<(enable_mdns)',
1193 'enable_service_discovery%' : '<(enable_service_discovery)', 1192 'enable_service_discovery%' : '<(enable_service_discovery)',
1194 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)', 1193 'enable_wifi_bootstrapping%': '<(enable_wifi_bootstrapping)',
1195 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ', 1194 'enable_hangout_services_extension%' : '<(enable_hangout_services_extension) ',
1196 'v8_optimized_debug%': '<(v8_optimized_debug)', 1195 'v8_optimized_debug%': '<(v8_optimized_debug)',
1197 'proprietary_codecs%': '<(proprietary_codecs)', 1196 'proprietary_codecs%': '<(proprietary_codecs)',
1198 'use_goma%': '<(use_goma)', 1197 'use_goma%': '<(use_goma)',
1199 'gomadir%': '<(gomadir)', 1198 'gomadir%': '<(gomadir)',
1200 'use_lto%': '<(use_lto)', 1199 'use_lto%': '<(use_lto)',
1201 'use_lto_o2%': '<(use_lto_o2)', 1200 '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
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',
1808 }], # OS=="android" 1805 }], # OS=="android"
1809 ['embedded==1', { 1806 ['embedded==1', {
1810 'use_system_fontconfig%': 0, 1807 'use_system_fontconfig%': 0,
1811 }, { 1808 }, {
1812 'use_system_fontconfig%': 1, 1809 'use_system_fontconfig%': 1,
1813 }], 1810 }],
1814 ['chromecast==1', { 1811 ['chromecast==1', {
1815 'enable_mpeg2ts_stream_parser%': 1, 1812 'enable_mpeg2ts_stream_parser%': 1,
1816 'ffmpeg_branding%': 'ChromeOS', 1813 'ffmpeg_branding%': 'ChromeOS',
1817 'ozone_platform_ozonex%': 1, 1814 'ozone_platform_ozonex%': 1,
1818 'use_playready%': 0, 1815 'use_playready%': 0,
1819 'conditions': [ 1816 'conditions': [
1820 ['target_arch=="arm"', { 1817 ['target_arch=="arm"', {
1821 'arm_arch%': '', 1818 'arm_arch%': '',
1822 'arm_tune%': 'cortex-a9', 1819 'arm_tune%': 'cortex-a9',
1823 'arm_thumb%': 1, 1820 'arm_thumb%': 1,
1824 'video_hole%': 1, 1821 'video_hole%': 1,
1825 }], 1822 }],
1826 ], 1823 ],
1827 }], 1824 }],
1828 ['android_webview_build==1', { 1825 ['android_webview_build==1', {
1829 # When building the WebView in the Android tree, jarjar will remap all 1826 # When building the WebView in the Android tree, jarjar will remap all
1830 # the class names, so the JNI generator needs to know this. 1827 # the class names, so the JNI generator needs to know this.
1831 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' , 1828 'jni_generator_jarjar_file': '../android_webview/build/jarjar-rules.txt' ,
1832 }], 1829 }],
1833 ['OS=="linux" and target_arch!="mipsel"', { 1830 ['OS=="linux" and target_arch!="mipsel"', {
1834 # TODO(thakis): This is here to measure perf for a while.
1835 'clang%': 1, 1831 'clang%': 1,
1836 }], # OS=="mac" 1832 }], # OS=="mac"
1837 ['OS=="mac"', { 1833 ['OS=="mac"', {
1838 'conditions': [ 1834 'conditions': [
1839 # All Chrome builds have breakpad symbols, but only process the 1835 # All Chrome builds have breakpad symbols, but only process the
1840 # symbols from official builds. 1836 # symbols from official builds.
1841 ['(branding=="Chrome" and buildtype=="Official")', { 1837 ['(branding=="Chrome" and buildtype=="Official")', {
1842 'mac_strip_release%': 1, 1838 'mac_strip_release%': 1,
1843 }], 1839 }],
1844 ], 1840 ],
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'], 2133 'grit_rc_header_format': ['-h', '#define {textual_id} __pragma(message(" whitelisted_resource_{numeric_id}")) {numeric_id}'],
2138 }], 2134 }],
2139 ['enable_mdns==1 or OS=="mac"', { 2135 ['enable_mdns==1 or OS=="mac"', {
2140 'grit_defines': ['-D', 'enable_service_discovery'], 2136 'grit_defines': ['-D', 'enable_service_discovery'],
2141 'enable_service_discovery%': 1 2137 'enable_service_discovery%': 1
2142 }], 2138 }],
2143 ['clang_use_chrome_plugins==1 and OS!="win"', { 2139 ['clang_use_chrome_plugins==1 and OS!="win"', {
2144 'clang_chrome_plugins_flags': [ 2140 'clang_chrome_plugins_flags': [
2145 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' 2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
2146 ], 2142 ],
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 ],
2159 }], 2143 }],
2160 ['asan==1 or msan==1 or lsan==1 or tsan==1', { 2144 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2161 'clang%': 1, 2145 'clang%': 1,
2162 'use_allocator%': 'none', 2146 'use_allocator%': 'none',
2163 'use_sanitizer_options%': 1, 2147 'use_sanitizer_options%': 1,
2148 # Disable ICF in the linker to avoid debug info loss.
2149 'gold_icf_level%': 'none',
2164 }], 2150 }],
2165 ['asan==1 and OS=="linux" and chromeos==0', { 2151 ['asan==1 and OS=="linux" and chromeos==0', {
2166 'use_custom_libcxx%': 1, 2152 'use_custom_libcxx%': 1,
2167 }], 2153 }],
2168 ['ubsan==1', { 2154 ['ubsan==1', {
2169 'clang%': 1, 2155 'clang%': 1,
2170 }], 2156 }],
2171 ['ubsan_vptr==1', { 2157 ['ubsan_vptr==1', {
2172 'clang%': 1, 2158 'clang%': 1,
2173 }], 2159 }],
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2468 # pnacl uses the clang compiler so we need to suppress all the 2454 # pnacl uses the clang compiler so we need to suppress all the
2469 # same warnings as we do for clang. 2455 # same warnings as we do for clang.
2470 # TODO(sbc): Remove these if/when they are removed from the clang 2456 # TODO(sbc): Remove these if/when they are removed from the clang
2471 # build. 2457 # build.
2472 '-Wno-unused-function', 2458 '-Wno-unused-function',
2473 '-Wno-char-subscripts', 2459 '-Wno-char-subscripts',
2474 '-Wno-c++11-extensions', 2460 '-Wno-c++11-extensions',
2475 '-Wno-unnamed-type-template-args', 2461 '-Wno-unnamed-type-template-args',
2476 ], 2462 ],
2477 2463
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
2478 'conditions': [ 2472 'conditions': [
2479 ['OS=="win" and component=="shared_library"', { 2473 ['OS=="win" and component=="shared_library"', {
2480 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx 2474 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
2481 'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL) 2475 'win_release_RuntimeLibrary%': '2', # 2 = /MD (nondebug DLL)
2482 'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL) 2476 'win_debug_RuntimeLibrary%': '3', # 3 = /MDd (debug DLL)
2483 }, { 2477 }, {
2484 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx 2478 # See http://msdn.microsoft.com/en-us/library/aa652367.aspx
2485 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static) 2479 'win_release_RuntimeLibrary%': '0', # 0 = /MT (nondebug static)
2486 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static) 2480 'win_debug_RuntimeLibrary%': '1', # 1 = /MTd (debug static)
2487 }], 2481 }],
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
3510 }, 3504 },
3511 }], 3505 }],
3512 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 3506 # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
3513 ['os_posix==1 and disable_fatal_linker_warnings==0 and use_evdev_gestures==0 and (chromeos==0 or target_arch!="arm")', { 3507 ['os_posix==1 and disable_fatal_linker_warnings==0 and use_evdev_gestures==0 and (chromeos==0 or target_arch!="arm")', {
3514 'target_defaults': { 3508 'target_defaults': {
3515 'ldflags': [ 3509 'ldflags': [
3516 '-Wl,--fatal-warnings', 3510 '-Wl,--fatal-warnings',
3517 ], 3511 ],
3518 }, 3512 },
3519 }], 3513 }],
3520 # TODO(thakis): Enable this everywhere. http://crbug.com/371125 3514 # -Wl,-z,-defs doesn't work with the sanitiziers, http://crbug.com/452065
3521 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubs an==0 and ubsan_vptr==0', { 3515 ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubs an==0 and ubsan_vptr==0', {
3522 'target_defaults': { 3516 'target_defaults': {
3523 'ldflags': [ 3517 'ldflags': [
3524 '-Wl,-z,defs', 3518 '-Wl,-z,defs',
3525 ], 3519 ],
3526 }, 3520 },
3527 }], 3521 }],
3528 ['os_posix==1 and chromeos==0', { 3522 ['os_posix==1 and chromeos==0', {
3529 # Chrome OS enables -fstack-protector-strong via its build wrapper, 3523 # Chrome OS enables -fstack-protector-strong via its build wrapper,
3530 # and we want to avoid overriding this, so stack-protector is only 3524 # and we want to avoid overriding this, so stack-protector is only
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
4407 # '-Wl,--threads', 4401 # '-Wl,--threads',
4408 # '-Wl,--thread-count=4', 4402 # '-Wl,--thread-count=4',
4409 ], 4403 ],
4410 }], 4404 }],
4411 ], 4405 ],
4412 'conditions': [ 4406 'conditions': [
4413 ['release_valgrind_build==0 and order_profiling==0', { 4407 ['release_valgrind_build==0 and order_profiling==0', {
4414 'target_conditions': [ 4408 'target_conditions': [
4415 ['_toolset=="target"', { 4409 ['_toolset=="target"', {
4416 'ldflags': [ 4410 'ldflags': [
4417 '-Wl,--icf=safe', 4411 '-Wl,--icf=<(gold_icf_level)',
4418 ], 4412 ],
4419 }], 4413 }],
4420 ], 4414 ],
4421 }], 4415 }],
4422 ], 4416 ],
4423 }], 4417 }],
4424 ['linux_use_bundled_binutils==1', { 4418 ['linux_use_bundled_binutils==1', {
4425 'cflags': [ 4419 'cflags': [
4426 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', 4420 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
4427 ], 4421 ],
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
4587 '_STLP_USE_PTR_SPECIALIZATIONS=1', 4581 '_STLP_USE_PTR_SPECIALIZATIONS=1',
4588 'CHROME_BUILD_ID="<(chrome_build_id)"', 4582 'CHROME_BUILD_ID="<(chrome_build_id)"',
4589 ], 4583 ],
4590 'ldflags!': [ 4584 'ldflags!': [
4591 '-pthread', # Not supported by Android toolchain. 4585 '-pthread', # Not supported by Android toolchain.
4592 ], 4586 ],
4593 'ldflags': [ 4587 'ldflags': [
4594 '-Wl,--no-undefined', 4588 '-Wl,--no-undefined',
4595 ], 4589 ],
4596 'conditions': [ 4590 'conditions': [
4597 ['component=="static_library"', { 4591 ['component=="static_library" and android_webview_build==0', {
4598 'ldflags': [ 4592 'target_conditions': [
4599 '-Wl,--exclude-libs=ALL', 4593 ['use_native_jni_exports==0', {
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
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',
4659 ], 4673 ],
4660 'libraries': [ 4674 'libraries': [
4661 '-l<(android_stlport_library)', 4675 '-l<(android_stlport_library)',
4662 # Manually link the libgcc.a that the cross compiler uses. 4676 # Manually link the libgcc.a that the cross compiler uses.
4663 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', 4677 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
4664 '-lc', 4678 '-lc',
4665 '-ldl', 4679 '-ldl',
4666 '-lm', 4680 '-lm',
4667 ], 4681 ],
4668 }], 4682 }],
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
4705 ], 4719 ],
4706 'cflags_cc': [ 4720 'cflags_cc': [
4707 '-Wno-non-virtual-dtor', 4721 '-Wno-non-virtual-dtor',
4708 ], 4722 ],
4709 }], 4723 }],
4710 ], 4724 ],
4711 }], 4725 }],
4712 ['target_arch == "arm" and order_profiling==0', { 4726 ['target_arch == "arm" and order_profiling==0', {
4713 'ldflags': [ 4727 'ldflags': [
4714 # Enable identical code folding to reduce size. 4728 # Enable identical code folding to reduce size.
4715 '-Wl,--icf=safe', 4729 '-Wl,--icf=<(gold_icf_level)',
4716 ], 4730 ],
4717 }], 4731 }],
4718 # NOTE: The stlport header include paths below are specified in 4732 # NOTE: The stlport header include paths below are specified in
4719 # cflags rather than include_dirs because they need to come 4733 # cflags rather than include_dirs because they need to come
4720 # after include_dirs. Think of them like system headers, but 4734 # after include_dirs. Think of them like system headers, but
4721 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 4735 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
4722 # toolchain (circa Gingerbread) will exhibit strange errors. 4736 # toolchain (circa Gingerbread) will exhibit strange errors.
4723 # The include ordering here is important; change with caution. 4737 # The include ordering here is important; change with caution.
4724 ['android_webview_build==0', { 4738 ['android_webview_build==0', {
4725 'cflags': [ 4739 'cflags': [
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 # crtbegin_dynamic.o should be the last item in ldflags. 4779 # crtbegin_dynamic.o should be the last item in ldflags.
4766 '<(android_ndk_lib)/crtbegin_dynamic.o', 4780 '<(android_ndk_lib)/crtbegin_dynamic.o',
4767 ], 4781 ],
4768 'libraries': [ 4782 'libraries': [
4769 # crtend_android.o needs to be the last item in libraries. 4783 # crtend_android.o needs to be the last item in libraries.
4770 # Do not add any libraries after this! 4784 # Do not add any libraries after this!
4771 '<(android_ndk_lib)/crtend_android.o', 4785 '<(android_ndk_lib)/crtend_android.o',
4772 ], 4786 ],
4773 }], 4787 }],
4774 ['_type=="shared_library" or _type=="loadable_module"', { 4788 ['_type=="shared_library" or _type=="loadable_module"', {
4775 'ldflags!': [
4776 '-Wl,--exclude-libs=ALL',
4777 ],
4778 'ldflags': [ 4789 'ldflags': [
4779 '-Wl,-shared,-Bsymbolic', 4790 '-Wl,-shared,-Bsymbolic',
4780 ], 4791 ],
4781 'conditions': [ 4792 'conditions': [
4782 ['android_webview_build==0', { 4793 ['android_webview_build==0', {
4783 'ldflags': [ 4794 'ldflags': [
4784 # crtbegin_so.o should be the last item in ldflags. 4795 # crtbegin_so.o should be the last item in ldflags.
4785 '<(android_ndk_lib)/crtbegin_so.o', 4796 '<(android_ndk_lib)/crtbegin_so.o',
4786 ], 4797 ],
4787 'libraries': [ 4798 'libraries': [
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
5908 # 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
5909 # Xcode variables depend on it, including variables such as 5920 # Xcode variables depend on it, including variables such as
5910 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5911 # 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
5912 # 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
5913 # 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,
5914 # and therefore SYMROOT, needs to be set at the project level. 5925 # and therefore SYMROOT, needs to be set at the project level.
5915 'SYMROOT': '<(DEPTH)/xcodebuild', 5926 'SYMROOT': '<(DEPTH)/xcodebuild',
5916 }, 5927 },
5917 } 5928 }
OLDNEW
« no previous file with comments | « build/android/pylib/uiautomator/test_runner.py ('k') | build/compiled_action.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698