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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 | 949 |
950 # Disable shadow stack keeping used by heapcheck to unwind the stacks | 950 # Disable shadow stack keeping used by heapcheck to unwind the stacks |
951 # better. | 951 # better. |
952 'linux_keep_shadow_stacks%': 0, | 952 'linux_keep_shadow_stacks%': 0, |
953 | 953 |
954 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 954 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
955 'linux_link_gnome_keyring%': 0, | 955 'linux_link_gnome_keyring%': 0, |
956 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 956 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
957 'linux_link_gsettings%': 0, | 957 'linux_link_gsettings%': 0, |
958 | 958 |
| 959 # Default arch variant for MIPS. |
| 960 'mips_arch_variant%': 'mips32r2', |
| 961 |
959 # Enable use of OpenMAX DL FFT routines. | 962 # Enable use of OpenMAX DL FFT routines. |
960 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', | 963 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', |
961 | 964 |
962 # Enable new NPDevice API. | 965 # Enable new NPDevice API. |
963 'enable_new_npdevice_api%': 0, | 966 'enable_new_npdevice_api%': 0, |
964 | 967 |
965 # Enable EGLImage support in OpenMAX | 968 # Enable EGLImage support in OpenMAX |
966 'enable_eglimage%': 1, | 969 'enable_eglimage%': 1, |
967 | 970 |
968 # Enable a variable used elsewhere throughout the GYP files to determine | 971 # Enable a variable used elsewhere throughout the GYP files to determine |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 ['arm_version<7', { | 1199 ['arm_version<7', { |
1197 'android_app_abi%': 'armeabi', | 1200 'android_app_abi%': 'armeabi', |
1198 }, { | 1201 }, { |
1199 'android_app_abi%': 'armeabi-v7a', | 1202 'android_app_abi%': 'armeabi-v7a', |
1200 }], | 1203 }], |
1201 ], | 1204 ], |
1202 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', | 1205 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd
bserver/gdbserver', |
1203 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', | 1206 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-arm', |
1204 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1207 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an
droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
1205 }], | 1208 }], |
| 1209 ['target_arch == "mipsel"', { |
| 1210 'android_app_abi%': 'mips', |
| 1211 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g
dbserver/gdbserver', |
| 1212 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/
arch-mips', |
| 1213 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux
-android-4.6/prebuilt/<(host_os)-x86/bin', |
| 1214 }], |
1206 ], | 1215 ], |
1207 }, | 1216 }, |
1208 # Copy conditionally-set variables out one scope. | 1217 # Copy conditionally-set variables out one scope. |
1209 'android_app_abi%': '<(android_app_abi)', | 1218 'android_app_abi%': '<(android_app_abi)', |
1210 'android_gdbserver%': '<(android_gdbserver)', | 1219 'android_gdbserver%': '<(android_gdbserver)', |
1211 'android_ndk_root%': '<(android_ndk_root)', | 1220 'android_ndk_root%': '<(android_ndk_root)', |
1212 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 1221 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
1213 'android_sdk_root%': '<(android_sdk_root)', | 1222 'android_sdk_root%': '<(android_sdk_root)', |
1214 'android_sdk_version%': '<(android_sdk_version)', | 1223 'android_sdk_version%': '<(android_sdk_version)', |
1215 'android_toolchain%': '<(android_toolchain)', | 1224 'android_toolchain%': '<(android_toolchain)', |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2944 # http://code.google.com/p/android/issues/detail?id=40303 | 2953 # http://code.google.com/p/android/issues/detail?id=40303 |
2945 ['_type=="static_library"', { | 2954 ['_type=="static_library"', { |
2946 'standalone_static_library': 1, | 2955 'standalone_static_library': 1, |
2947 }], | 2956 }], |
2948 ], | 2957 ], |
2949 }], | 2958 }], |
2950 ], | 2959 ], |
2951 }], | 2960 }], |
2952 ], | 2961 ], |
2953 }], | 2962 }], |
| 2963 ['target_arch=="mipsel"', { |
| 2964 'target_conditions': [ |
| 2965 ['_toolset=="target"', { |
| 2966 'conditions': [ |
| 2967 ['mips_arch_variant=="mips32r2"', { |
| 2968 'cflags': ['-mips32r2', '-Wa,-mips32r2'], |
| 2969 }, { |
| 2970 'cflags': ['-mips32', '-Wa,-mips32'], |
| 2971 }], |
| 2972 ], |
| 2973 'cflags': [ |
| 2974 '-EL', |
| 2975 '-mhard-float', |
| 2976 ], |
| 2977 'ldflags': [ |
| 2978 '-EL', |
| 2979 '-Wl,--no-keep-memory' |
| 2980 ], |
| 2981 'cflags_cc': [ |
| 2982 '-Wno-uninitialized', |
| 2983 ], |
| 2984 }], |
| 2985 ], |
| 2986 }], |
2954 ['linux_fpic==1', { | 2987 ['linux_fpic==1', { |
2955 'cflags': [ | 2988 'cflags': [ |
2956 '-fPIC', | 2989 '-fPIC', |
2957 ], | 2990 ], |
2958 'ldflags': [ | 2991 'ldflags': [ |
2959 '-fPIC', | 2992 '-fPIC', |
2960 ], | 2993 ], |
2961 }], | 2994 }], |
2962 ['sysroot!=""', { | 2995 ['sysroot!=""', { |
2963 'target_conditions': [ | 2996 'target_conditions': [ |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4255 # it won't depend on the environment at make time. | 4288 # it won't depend on the environment at make time. |
4256 'make_global_settings': [ | 4289 'make_global_settings': [ |
4257 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g
cc)'], | 4290 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g
cc)'], |
4258 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-
g++)'], | 4291 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-
g++)'], |
4259 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*
-gcc)'], | 4292 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*
-gcc)'], |
4260 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], | 4293 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], |
4261 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], | 4294 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], |
4262 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], | 4295 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], |
4263 ], | 4296 ], |
4264 }], | 4297 }], |
4265 ['target_arch=="mipsel"', { | 4298 ['OS=="linux" and target_arch=="mipsel"', { |
4266 'make_global_settings': [ | 4299 'make_global_settings': [ |
4267 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | 4300 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], |
4268 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | 4301 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], |
4269 ['LINK', '$(CXX)'], | 4302 ['LINK', '$(CXX)'], |
4270 ['CC.host', '<!(which gcc)'], | 4303 ['CC.host', '<!(which gcc)'], |
4271 ['CXX.host', '<!(which g++)'], | 4304 ['CXX.host', '<!(which g++)'], |
4272 ['LINK.host', '<!(which g++)'], | 4305 ['LINK.host', '<!(which g++)'], |
4273 ], | 4306 ], |
4274 }], | 4307 }], |
4275 ], | 4308 ], |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4324 # settings in target dicts. SYMROOT is a special case, because many other | 4357 # settings in target dicts. SYMROOT is a special case, because many other |
4325 # Xcode variables depend on it, including variables such as | 4358 # Xcode variables depend on it, including variables such as |
4326 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4359 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4327 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4360 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4328 # files to appear (when present) in the UI as actual files and not red | 4361 # files to appear (when present) in the UI as actual files and not red |
4329 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4362 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4330 # and therefore SYMROOT, needs to be set at the project level. | 4363 # and therefore SYMROOT, needs to be set at the project level. |
4331 'SYMROOT': '<(DEPTH)/xcodebuild', | 4364 'SYMROOT': '<(DEPTH)/xcodebuild', |
4332 }, | 4365 }, |
4333 } | 4366 } |
OLD | NEW |