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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 | 982 |
983 # The Mac SDK is set for iOS builds and passed through to Mac | 983 # The Mac SDK is set for iOS builds and passed through to Mac |
984 # sub-builds. This allows the Mac sub-build SDK in an iOS build to be | 984 # sub-builds. This allows the Mac sub-build SDK in an iOS build to be |
985 # overridden from the command line the same way it is for a Mac build. | 985 # overridden from the command line the same way it is for a Mac build. |
986 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)', | 986 'mac_sdk%': '<!(python <(DEPTH)/build/mac/find_sdk.py 10.6)', |
987 }], | 987 }], |
988 ['OS=="android"', { | 988 ['OS=="android"', { |
989 # Location of Android NDK. | 989 # Location of Android NDK. |
990 'variables': { | 990 'variables': { |
991 'variables': { | 991 'variables': { |
992 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', | 992 'variables': { |
993 # Android uses x86 instead of ia32 for their target_arch | 993 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', |
994 # designation. | 994 }, |
995 # TODO(wistoch): Adjust the target_arch naming scheme to avoid | 995 'android_ndk_root%': '<(android_ndk_root)', |
996 # confusion. | |
997 # http://crbug.com/125329 | |
998 'conditions': [ | 996 'conditions': [ |
999 ['target_arch == "ia32"', { | 997 ['target_arch == "ia32"', { |
1000 'target_arch': 'x86', | |
1001 'android_app_abi%': 'x86', | 998 'android_app_abi%': 'x86', |
| 999 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9
/arch-x86', |
1002 }], | 1000 }], |
1003 ['target_arch=="arm" and armv7==0', { | 1001 ['target_arch=="arm"', { |
1004 'android_app_abi%': 'armeabi', | 1002 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9
/arch-arm', |
1005 }], | 1003 'conditions': [ |
1006 ['target_arch=="arm" and armv7==1', { | 1004 ['armv7==0', { |
1007 'android_app_abi%': 'armeabi-v7a', | 1005 'android_app_abi%': 'armeabi', |
| 1006 }, { |
| 1007 'android_app_abi%': 'armeabi-v7a', |
| 1008 }], |
| 1009 ], |
1008 }], | 1010 }], |
1009 ], | 1011 ], |
1010 }, | 1012 }, |
1011 'android_ndk_root%': '<(android_ndk_root)', | 1013 'android_ndk_root%': '<(android_ndk_root)', |
1012 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/arch-
<(target_arch)', | |
1013 'android_app_abi%': '<(android_app_abi)', | 1014 'android_app_abi%': '<(android_app_abi)', |
| 1015 'android_ndk_sysroot%': '<(android_ndk_sysroot)', |
1014 }, | 1016 }, |
1015 'android_ndk_root%': '<(android_ndk_root)', | 1017 'android_ndk_root%': '<(android_ndk_root)', |
1016 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 1018 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
1017 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 1019 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
1018 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 1020 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
1019 'android_app_abi%': '<(android_app_abi)', | 1021 'android_app_abi%': '<(android_app_abi)', |
1020 | 1022 |
1021 # Location of the "strip" binary, used by both gyp and scripts. | 1023 # Location of the "strip" binary, used by both gyp and scripts. |
1022 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', | 1024 'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)', |
1023 | 1025 |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2574 ['OS=="freebsd"', { | 2576 ['OS=="freebsd"', { |
2575 'target_defaults': { | 2577 'target_defaults': { |
2576 'ldflags': [ | 2578 'ldflags': [ |
2577 '-Wl,--no-keep-memory', | 2579 '-Wl,--no-keep-memory', |
2578 ], | 2580 ], |
2579 }, | 2581 }, |
2580 }], | 2582 }], |
2581 # Android-specific options; note that most are set above with Linux. | 2583 # Android-specific options; note that most are set above with Linux. |
2582 ['OS=="android"', { | 2584 ['OS=="android"', { |
2583 'variables': { | 2585 'variables': { |
2584 'target_arch%': 'arm', # target_arch in android terms. | |
2585 # This is the id for the archived chrome symbols. Each build that | 2586 # This is the id for the archived chrome symbols. Each build that |
2586 # archives symbols is assigned an id which is then added to GYP_DEFINES. | 2587 # archives symbols is assigned an id which is then added to GYP_DEFINES. |
2587 # This is written to the device log on crashes just prior to dropping a | 2588 # This is written to the device log on crashes just prior to dropping a |
2588 # tombstone. Tools can determine the location of the archived symbols | 2589 # tombstone. Tools can determine the location of the archived symbols |
2589 # from the id. | 2590 # from the id. |
2590 'chrome_symbols_id%': '', | 2591 'chrome_symbols_id%': '', |
2591 'conditions': [ | 2592 'conditions': [ |
2592 # Android uses x86 instead of ia32 for their target_arch designation. | |
2593 ['target_arch=="ia32"', { | |
2594 'target_arch%': 'x86', | |
2595 }], | |
2596 # Use shared stlport library when system one used. | 2593 # Use shared stlport library when system one used. |
2597 # Figure this out early since it needs symbols from libgcc.a, so it | 2594 # Figure this out early since it needs symbols from libgcc.a, so it |
2598 # has to be before that in the set of libraries. | 2595 # has to be before that in the set of libraries. |
2599 ['use_system_stlport==1', { | 2596 ['use_system_stlport==1', { |
2600 'android_stlport_library': 'stlport', | 2597 'android_stlport_library': 'stlport', |
2601 }, { | 2598 }, { |
2602 'android_stlport_library': 'stlport_static', | 2599 'android_stlport_library': 'stlport_static', |
2603 }], | 2600 }], |
2604 ], | 2601 ], |
2605 | 2602 |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3478 # settings in target dicts. SYMROOT is a special case, because many other | 3475 # settings in target dicts. SYMROOT is a special case, because many other |
3479 # Xcode variables depend on it, including variables such as | 3476 # Xcode variables depend on it, including variables such as |
3480 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3477 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3481 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3478 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3482 # files to appear (when present) in the UI as actual files and not red | 3479 # files to appear (when present) in the UI as actual files and not red |
3483 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3480 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3484 # and therefore SYMROOT, needs to be set at the project level. | 3481 # and therefore SYMROOT, needs to be set at the project level. |
3485 'SYMROOT': '<(DEPTH)/xcodebuild', | 3482 'SYMROOT': '<(DEPTH)/xcodebuild', |
3486 }, | 3483 }, |
3487 } | 3484 } |
OLD | NEW |