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 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2420 ], | 2420 ], |
2421 'libraries': [ | 2421 'libraries': [ |
2422 # crtend_android.o needs to be the last item in libraries. | 2422 # crtend_android.o needs to be the last item in libraries. |
2423 # Do not add any libraries after this! | 2423 # Do not add any libraries after this! |
2424 '<(android_ndk_lib)/crtend_android.o', | 2424 '<(android_ndk_lib)/crtend_android.o', |
2425 ], | 2425 ], |
2426 }], | 2426 }], |
2427 ['_type=="shared_library"', { | 2427 ['_type=="shared_library"', { |
2428 'ldflags': [ | 2428 'ldflags': [ |
2429 '-Wl,-shared,-Bsymbolic', | 2429 '-Wl,-shared,-Bsymbolic', |
| 2430 # crtbegin_so.o should be the last item in ldflags. |
| 2431 '<(android_ndk_lib)/crtbegin_so.o', |
2430 ], | 2432 ], |
2431 # Use of -nostdlib prevents the compiler from bringing | 2433 'libraries': [ |
2432 # in crtbegin_dynamic.o et al, so we get an undefined | 2434 # crtend_so.o needs to be the last item in libraries. |
2433 # reference to ___dso_handle when building | 2435 # Do not add any libraries after this! |
2434 # gtest_target_type==shared_library. | 2436 '<(android_ndk_lib)/crtend_so.o', |
2435 'ldflags!': [ '-nostdlib' ], | 2437 ], |
2436 }], | 2438 }], |
2437 ], | 2439 ], |
2438 }], | 2440 }], |
2439 # Settings for building host targets using the system toolchain. | 2441 # Settings for building host targets using the system toolchain. |
2440 ['_toolset=="host"', { | 2442 ['_toolset=="host"', { |
2441 'cflags!': [ | 2443 'cflags!': [ |
2442 # Due to issues in Clang build system, using ASan on 32-bit | 2444 # Due to issues in Clang build system, using ASan on 32-bit |
2443 # binaries on x86_64 host is problematic. | 2445 # binaries on x86_64 host is problematic. |
2444 # TODO(eugenis): re-enable. | 2446 # TODO(eugenis): re-enable. |
2445 '-faddress-sanitizer', | 2447 '-faddress-sanitizer', |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3016 # settings in target dicts. SYMROOT is a special case, because many other | 3018 # settings in target dicts. SYMROOT is a special case, because many other |
3017 # Xcode variables depend on it, including variables such as | 3019 # Xcode variables depend on it, including variables such as |
3018 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3020 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3019 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3021 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3020 # files to appear (when present) in the UI as actual files and not red | 3022 # files to appear (when present) in the UI as actual files and not red |
3021 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3023 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3022 # and therefore SYMROOT, needs to be set at the project level. | 3024 # and therefore SYMROOT, needs to be set at the project level. |
3023 'SYMROOT': '<(DEPTH)/xcodebuild', | 3025 'SYMROOT': '<(DEPTH)/xcodebuild', |
3024 }, | 3026 }, |
3025 } | 3027 } |
OLD | NEW |