Chromium Code Reviews| 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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 934 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 934 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
| 935 'linux_link_gsettings%': 0, | 935 'linux_link_gsettings%': 0, |
| 936 | 936 |
| 937 # Set Thumb compilation flags. | 937 # Set Thumb compilation flags. |
| 938 'arm_thumb%': 0, | 938 'arm_thumb%': 0, |
| 939 | 939 |
| 940 # Set ARM fpu compilation flags (only meaningful if armv7==1 and | 940 # Set ARM fpu compilation flags (only meaningful if armv7==1 and |
| 941 # arm_neon==0). | 941 # arm_neon==0). |
| 942 'arm_fpu%': 'vfpv3', | 942 'arm_fpu%': 'vfpv3', |
| 943 | 943 |
| 944 # Default arch variant for MIPS. | |
| 945 'mips_arch_variant%': 'mips32r2', | |
| 946 | |
| 944 # Set ARM float abi compilation flag. | 947 # Set ARM float abi compilation flag. |
| 945 'arm_float_abi%': 'softfp', | 948 'arm_float_abi%': 'softfp', |
| 946 | 949 |
| 947 # Enable use of OpenMAX DL FFT routines. | 950 # Enable use of OpenMAX DL FFT routines. |
| 948 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', | 951 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', |
| 949 | 952 |
| 950 # Enable new NPDevice API. | 953 # Enable new NPDevice API. |
| 951 'enable_new_npdevice_api%': 0, | 954 'enable_new_npdevice_api%': 0, |
| 952 | 955 |
| 953 # Enable EGLImage support in OpenMAX | 956 # Enable EGLImage support in OpenMAX |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1185 ['armv7==0', { | 1188 ['armv7==0', { |
| 1186 'android_app_abi%': 'armeabi', | 1189 'android_app_abi%': 'armeabi', |
| 1187 }, { | 1190 }, { |
| 1188 'android_app_abi%': 'armeabi-v7a', | 1191 'android_app_abi%': 'armeabi-v7a', |
| 1189 }], | 1192 }], |
| 1190 ], | 1193 ], |
| 1191 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', | 1194 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', |
| 1192 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', | 1195 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', |
| 1193 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', | 1196 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-an droideabi-4.6/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| 1194 }], | 1197 }], |
| 1198 ['target_arch == "mipsel"', { | |
| 1199 'android_app_abi%': 'mips', | |
| 1200 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-mips/g dbserver/gdbserver', | |
| 1201 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9/a rch-mips', | |
|
cjhopman
2013/04/19 18:02:10
should this be android-14 like arm/x86?
petarj
2013/04/21 01:17:14
Done.
| |
| 1202 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux -android-4.6/prebuilt/<(host_os)-x86/bin', | |
|
cjhopman
2013/04/19 18:02:10
"<(host_os)-<(android_host_arch)" instead of "<(ho
petarj
2013/04/21 01:17:14
We must force "linux-x86" for both "x86_64" and "x
| |
| 1203 }], | |
| 1195 ], | 1204 ], |
| 1196 }, | 1205 }, |
| 1197 # Copy conditionally-set variables out one scope. | 1206 # Copy conditionally-set variables out one scope. |
| 1198 'android_app_abi%': '<(android_app_abi)', | 1207 'android_app_abi%': '<(android_app_abi)', |
| 1199 'android_gdbserver%': '<(android_gdbserver)', | 1208 'android_gdbserver%': '<(android_gdbserver)', |
| 1200 'android_ndk_root%': '<(android_ndk_root)', | 1209 'android_ndk_root%': '<(android_ndk_root)', |
| 1201 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 1210 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
| 1202 'android_sdk_root%': '<(android_sdk_root)', | 1211 'android_sdk_root%': '<(android_sdk_root)', |
| 1203 'android_sdk_version%': '<(android_sdk_version)', | 1212 'android_sdk_version%': '<(android_sdk_version)', |
| 1204 'android_toolchain%': '<(android_toolchain)', | 1213 'android_toolchain%': '<(android_toolchain)', |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2620 'ldflags': [ | 2629 'ldflags': [ |
| 2621 '-Wl,-O1', | 2630 '-Wl,-O1', |
| 2622 '-Wl,--as-needed', | 2631 '-Wl,--as-needed', |
| 2623 ], | 2632 ], |
| 2624 }], | 2633 }], |
| 2625 ['OS=="linux" and target_arch=="ia32"', { | 2634 ['OS=="linux" and target_arch=="ia32"', { |
| 2626 'ldflags': [ | 2635 'ldflags': [ |
| 2627 '-Wl,--no-as-needed', | 2636 '-Wl,--no-as-needed', |
| 2628 ], | 2637 ], |
| 2629 }], | 2638 }], |
| 2639 ['target_arch == "mipsel"', { | |
| 2640 'android_app_abi%': 'mips', | |
| 2641 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-9 /arch-mips', | |
|
cjhopman
2013/04/19 18:02:10
These shouldn't need to be set here. It should jus
petarj
2013/04/21 01:17:14
Removed.
| |
| 2642 }], | |
| 2630 ], | 2643 ], |
| 2631 }, | 2644 }, |
| 2632 'Release_Base': { | 2645 'Release_Base': { |
| 2633 'variables': { | 2646 'variables': { |
| 2634 'release_optimize%': '2', | 2647 'release_optimize%': '2', |
| 2635 # Binaries become big and gold is unable to perform GC | 2648 # Binaries become big and gold is unable to perform GC |
| 2636 # and remove unused sections for some of test targets | 2649 # and remove unused sections for some of test targets |
| 2637 # on 32 bit platform. | 2650 # on 32 bit platform. |
| 2638 # (This is currently observed only in chromeos valgrind bots) | 2651 # (This is currently observed only in chromeos valgrind bots) |
| 2639 # The following flag is to disable --gc-sections linker | 2652 # The following flag is to disable --gc-sections linker |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2898 # http://code.google.com/p/android/issues/detail?id=40303 | 2911 # http://code.google.com/p/android/issues/detail?id=40303 |
| 2899 ['_type=="static_library"', { | 2912 ['_type=="static_library"', { |
| 2900 'standalone_static_library': 1, | 2913 'standalone_static_library': 1, |
| 2901 }], | 2914 }], |
| 2902 ], | 2915 ], |
| 2903 }], | 2916 }], |
| 2904 ], | 2917 ], |
| 2905 }], | 2918 }], |
| 2906 ], | 2919 ], |
| 2907 }], | 2920 }], |
| 2921 ['target_arch=="mipsel"', { | |
| 2922 'target_conditions': [ | |
| 2923 ['_toolset=="target"', { | |
| 2924 'conditions': [ | |
| 2925 ['mips_arch_variant=="mips32r2"', { | |
| 2926 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | |
| 2927 }, { | |
| 2928 'cflags': ['-mips32', '-Wa,-mips32'], | |
| 2929 }], | |
| 2930 ], | |
| 2931 'cflags': [ | |
| 2932 '-EL', | |
| 2933 '-mhard-float', | |
| 2934 ], | |
| 2935 'ldflags': [ | |
| 2936 '-EL', | |
| 2937 '-Wl,--no-keep-memory' | |
| 2938 ], | |
| 2939 'cflags_cc': [ | |
| 2940 '-Wno-uninitialized', | |
| 2941 ], | |
| 2942 }], | |
| 2943 ], | |
| 2944 }], | |
| 2908 ['linux_fpic==1', { | 2945 ['linux_fpic==1', { |
| 2909 'cflags': [ | 2946 'cflags': [ |
| 2910 '-fPIC', | 2947 '-fPIC', |
| 2911 ], | 2948 ], |
| 2912 'ldflags': [ | 2949 'ldflags': [ |
| 2913 '-fPIC', | 2950 '-fPIC', |
| 2914 ], | 2951 ], |
| 2915 }], | 2952 }], |
| 2916 ['sysroot!=""', { | 2953 ['sysroot!=""', { |
| 2917 'target_conditions': [ | 2954 'target_conditions': [ |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3299 'conditions': [ | 3336 'conditions': [ |
| 3300 ['target_arch=="arm"', { | 3337 ['target_arch=="arm"', { |
| 3301 'cflags': [ | 3338 'cflags': [ |
| 3302 '-target arm-linux-androideabi', | 3339 '-target arm-linux-androideabi', |
| 3303 '-mllvm -arm-enable-ehabi', | 3340 '-mllvm -arm-enable-ehabi', |
| 3304 ], | 3341 ], |
| 3305 'ldflags': [ | 3342 'ldflags': [ |
| 3306 '-target arm-linux-androideabi', | 3343 '-target arm-linux-androideabi', |
| 3307 ], | 3344 ], |
| 3308 }], | 3345 }], |
| 3346 ['target_arch=="mipsel"', { | |
| 3347 'ldflags': [ | |
| 3348 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/mips', | |
| 3349 '-L<(android_ndk_root)/sources/cxx-stl/gnu-libstdc++/4.6/l ibs/mips' | |
|
cjhopman
2013/04/19 18:02:10
should this use the "-target" flag like arm/x86?
petarj
2013/04/21 01:17:14
Removed completely for now.
| |
| 3350 ], | |
| 3351 }], | |
| 3309 ['target_arch=="ia32"', { | 3352 ['target_arch=="ia32"', { |
| 3310 'cflags': [ | 3353 'cflags': [ |
| 3311 '-target x86-linux-androideabi', | 3354 '-target x86-linux-androideabi', |
| 3312 ], | 3355 ], |
| 3313 'ldflags': [ | 3356 'ldflags': [ |
| 3314 '-target x86-linux-androideabi', | 3357 '-target x86-linux-androideabi', |
| 3315 ], | 3358 ], |
| 3316 }], | 3359 }], |
| 3317 ], | 3360 ], |
| 3318 }], | 3361 }], |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4254 # settings in target dicts. SYMROOT is a special case, because many other | 4297 # settings in target dicts. SYMROOT is a special case, because many other |
| 4255 # Xcode variables depend on it, including variables such as | 4298 # Xcode variables depend on it, including variables such as |
| 4256 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4299 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4257 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4300 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4258 # files to appear (when present) in the UI as actual files and not red | 4301 # files to appear (when present) in the UI as actual files and not red |
| 4259 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4302 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4260 # and therefore SYMROOT, needs to be set at the project level. | 4303 # and therefore SYMROOT, needs to be set at the project level. |
| 4261 'SYMROOT': '<(DEPTH)/xcodebuild', | 4304 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4262 }, | 4305 }, |
| 4263 } | 4306 } |
| OLD | NEW |