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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 # Android does not support promo resources service. | 828 # Android does not support promo resources service. |
829 'enable_promo_resource_service%': 0, | 829 'enable_promo_resource_service%': 0, |
830 | 830 |
831 # Sessions are store separately in the Java side. | 831 # Sessions are store separately in the Java side. |
832 'enable_session_service%': 0, | 832 'enable_session_service%': 0, |
833 | 833 |
834 # Set to 1 once we have a notification system for Android. | 834 # Set to 1 once we have a notification system for Android. |
835 # http://crbug.com/115320 | 835 # http://crbug.com/115320 |
836 'notifications%': 0, | 836 'notifications%': 0, |
837 | 837 |
838 # Builds the gtest targets as a shared_library. | |
839 # TODO(michaelbai): Use the fixed value 'shared_library' once it | |
840 # is fully supported. | |
841 'gtest_target_type%': '<(gtest_target_type)', | 838 'gtest_target_type%': '<(gtest_target_type)', |
| 839 # TODO(jrg): when 'gtest_target_type'=='shared_libary' and |
| 840 # OS==android, make all gtest_targets depend on |
| 841 # testing/android/native_test.gyp:native_test_apk. |
| 842 ### 'gtest_target_type': 'shared_libary', |
842 | 843 |
843 # Uses system APIs for decoding audio and video. | 844 # Uses system APIs for decoding audio and video. |
844 'use_libffmpeg%': '0', | 845 'use_libffmpeg%': '0', |
845 | 846 |
846 # Always use the chromium skia. The use_system_harfbuzz needs to | 847 # Always use the chromium skia. The use_system_harfbuzz needs to |
847 # match use_system_skia. | 848 # match use_system_skia. |
848 'use_system_skia%': '0', | 849 'use_system_skia%': '0', |
849 'use_system_harfbuzz%': '0', | 850 'use_system_harfbuzz%': '0', |
850 | 851 |
851 # Use the system icu. | 852 # Use the system icu. |
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2419 'libraries': [ | 2420 'libraries': [ |
2420 # crtend_android.o needs to be the last item in libraries. | 2421 # crtend_android.o needs to be the last item in libraries. |
2421 # Do not add any libraries after this! | 2422 # Do not add any libraries after this! |
2422 '<(android_ndk_lib)/crtend_android.o', | 2423 '<(android_ndk_lib)/crtend_android.o', |
2423 ], | 2424 ], |
2424 }], | 2425 }], |
2425 ['_type=="shared_library"', { | 2426 ['_type=="shared_library"', { |
2426 'ldflags': [ | 2427 'ldflags': [ |
2427 '-Wl,-shared,-Bsymbolic', | 2428 '-Wl,-shared,-Bsymbolic', |
2428 ], | 2429 ], |
| 2430 # Use of -nostdlib prevents the compiler from bringing |
| 2431 # in crtbegin_dynamic.o et al, so we get an undefined |
| 2432 # reference to ___dso_handle when building |
| 2433 # gtest_target_type==shared_library. |
| 2434 'ldflags!': [ '-nostdlib' ], |
2429 }], | 2435 }], |
2430 ], | 2436 ], |
2431 }], | 2437 }], |
2432 # Settings for building host targets using the system toolchain. | 2438 # Settings for building host targets using the system toolchain. |
2433 ['_toolset=="host"', { | 2439 ['_toolset=="host"', { |
2434 'cflags!': [ | 2440 'cflags!': [ |
2435 # Due to issues in Clang build system, using ASan on 32-bit | 2441 # Due to issues in Clang build system, using ASan on 32-bit |
2436 # binaries on x86_64 host is problematic. | 2442 # binaries on x86_64 host is problematic. |
2437 # TODO(eugenis): re-enable. | 2443 # TODO(eugenis): re-enable. |
2438 '-faddress-sanitizer', | 2444 '-faddress-sanitizer', |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3009 # settings in target dicts. SYMROOT is a special case, because many other | 3015 # settings in target dicts. SYMROOT is a special case, because many other |
3010 # Xcode variables depend on it, including variables such as | 3016 # Xcode variables depend on it, including variables such as |
3011 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3017 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3012 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3018 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3013 # files to appear (when present) in the UI as actual files and not red | 3019 # files to appear (when present) in the UI as actual files and not red |
3014 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3020 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3015 # and therefore SYMROOT, needs to be set at the project level. | 3021 # and therefore SYMROOT, needs to be set at the project level. |
3016 'SYMROOT': '<(DEPTH)/xcodebuild', | 3022 'SYMROOT': '<(DEPTH)/xcodebuild', |
3017 }, | 3023 }, |
3018 } | 3024 } |
OLD | NEW |