| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 ['(branding=="Chrome" and buildtype=="Official")', { | 801 ['(branding=="Chrome" and buildtype=="Official")', { |
| 802 'linux_dump_symbols%': 1, | 802 'linux_dump_symbols%': 1, |
| 803 }], | 803 }], |
| 804 ], | 804 ], |
| 805 }], # os_posix==1 and OS!="mac" and OS!="android" | 805 }], # os_posix==1 and OS!="mac" and OS!="android" |
| 806 ['OS=="android"', { | 806 ['OS=="android"', { |
| 807 # Location of Android NDK. | 807 # Location of Android NDK. |
| 808 'variables': { | 808 'variables': { |
| 809 'variables': { | 809 'variables': { |
| 810 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', | 810 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', |
| 811 'target_arch%': 'arm', # target_arch in android terms. | 811 # Android uses x86 instead of ia32 for their target_arch designation
. |
| 812 # TODO(wistoch): Adjust the target_arch naming scheme to avoid confu
sion. |
| 813 # http://crbug.com/125329 |
| 814 'conditions': [ |
| 815 ['target_arch == "ia32"', { |
| 816 'target_arch': 'x86', |
| 817 }], |
| 818 ], |
| 812 | 819 |
| 813 # Switch between different build types, currently only '0' is | 820 # Switch between different build types, currently only '0' is |
| 814 # supported. | 821 # supported. |
| 815 'android_build_type%': 0, | 822 'android_build_type%': 0, |
| 816 }, | 823 }, |
| 817 'android_ndk_root%': '<(android_ndk_root)', | 824 'android_ndk_root%': '<(android_ndk_root)', |
| 818 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(target_arch)', | 825 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(target_arch)', |
| 819 'android_build_type%': '<(android_build_type)', | 826 'android_build_type%': '<(android_build_type)', |
| 820 }, | 827 }, |
| 821 'android_ndk_root%': '<(android_ndk_root)', | 828 'android_ndk_root%': '<(android_ndk_root)', |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 'secure_atl%': 1, | 963 'secure_atl%': 1, |
| 957 }], | 964 }], |
| 958 ], | 965 ], |
| 959 'nacl_win64_defines': [ | 966 'nacl_win64_defines': [ |
| 960 # This flag is used to minimize dependencies when building | 967 # This flag is used to minimize dependencies when building |
| 961 # Native Client loader for 64-bit Windows. | 968 # Native Client loader for 64-bit Windows. |
| 962 'NACL_WIN64', | 969 'NACL_WIN64', |
| 963 ], | 970 ], |
| 964 }], | 971 }], |
| 965 | 972 |
| 966 ['os_posix==1 and chromeos==0 and target_arch!="arm"', { | 973 ['os_posix==1 and chromeos==0 and OS!="android"', { |
| 967 'use_cups%': 1, | 974 'use_cups%': 1, |
| 968 }, { | 975 }, { |
| 969 'use_cups%': 0, | 976 'use_cups%': 0, |
| 970 }], | 977 }], |
| 971 | 978 |
| 972 # Set the relative path from this file to the GYP file of the JPEG | 979 # Set the relative path from this file to the GYP file of the JPEG |
| 973 # library used by Chromium. | 980 # library used by Chromium. |
| 974 ['use_libjpeg_turbo==1', { | 981 ['use_libjpeg_turbo==1', { |
| 975 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', | 982 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp', |
| 976 }, { | 983 }, { |
| (...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 'HAVE_OFF64_T', | 2366 'HAVE_OFF64_T', |
| 2360 'HAVE_SYS_UIO_H', | 2367 'HAVE_SYS_UIO_H', |
| 2361 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
. | 2368 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize
. |
| 2362 ], | 2369 ], |
| 2363 'ldflags!': [ | 2370 'ldflags!': [ |
| 2364 '-pthread', # Not supported by Android toolchain. | 2371 '-pthread', # Not supported by Android toolchain. |
| 2365 ], | 2372 ], |
| 2366 'ldflags': [ | 2373 'ldflags': [ |
| 2367 '-nostdlib', | 2374 '-nostdlib', |
| 2368 '-Wl,--no-undefined', | 2375 '-Wl,--no-undefined', |
| 2369 '-Wl,--icf=safe', # Enable identical code folding to reduce size | |
| 2370 # Don't export symbols from statically linked libraries. | 2376 # Don't export symbols from statically linked libraries. |
| 2371 '-Wl,--exclude-libs=ALL', | 2377 '-Wl,--exclude-libs=ALL', |
| 2372 ], | 2378 ], |
| 2379 'conditions': [ |
| 2380 ['target_arch == "arm"', { |
| 2381 'ldflags': [ |
| 2382 # Enable identical code folding to reduce size. |
| 2383 '-Wl,--icf=safe', |
| 2384 ], |
| 2385 }], |
| 2386 ], |
| 2373 'libraries': [ | 2387 'libraries': [ |
| 2374 '-l<(android_stlport_library)', | 2388 '-l<(android_stlport_library)', |
| 2375 # Manually link the libgcc.a that the cross compiler uses. | 2389 # Manually link the libgcc.a that the cross compiler uses. |
| 2376 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', | 2390 '<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)', |
| 2377 '-lc', | 2391 '-lc', |
| 2378 '-ldl', | 2392 '-ldl', |
| 2379 '-lstdc++', | 2393 '-lstdc++', |
| 2380 '-lm', | 2394 '-lm', |
| 2381 ], | 2395 ], |
| 2382 'conditions': [ | 2396 'conditions': [ |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3033 # settings in target dicts. SYMROOT is a special case, because many other | 3047 # settings in target dicts. SYMROOT is a special case, because many other |
| 3034 # Xcode variables depend on it, including variables such as | 3048 # Xcode variables depend on it, including variables such as |
| 3035 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3049 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3036 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3050 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3037 # files to appear (when present) in the UI as actual files and not red | 3051 # files to appear (when present) in the UI as actual files and not red |
| 3038 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3052 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3039 # and therefore SYMROOT, needs to be set at the project level. | 3053 # and therefore SYMROOT, needs to be set at the project level. |
| 3040 'SYMROOT': '<(DEPTH)/xcodebuild', | 3054 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3041 }, | 3055 }, |
| 3042 } | 3056 } |
| OLD | NEW |