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 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4081 }], | 4081 }], |
4082 ], | 4082 ], |
4083 }], | 4083 }], |
4084 ['target_arch=="mipsel"', { | 4084 ['target_arch=="mipsel"', { |
4085 'target_conditions': [ | 4085 'target_conditions': [ |
4086 ['_toolset=="target"', { | 4086 ['_toolset=="target"', { |
4087 'conditions': [ | 4087 'conditions': [ |
4088 ['android_webview_build==0', { | 4088 ['android_webview_build==0', { |
4089 'conditions': [ | 4089 'conditions': [ |
4090 ['mips_arch_variant=="r6"', { | 4090 ['mips_arch_variant=="r6"', { |
4091 'cflags': ['-mips32r6', '-Wa,-mips32r6'], | |
4092 'conditions': [ | 4091 'conditions': [ |
4093 ['OS=="android"', { | 4092 ['clang==1', { |
4093 'cflags': [ '-target mipsel-linux-gnu', '-march=mips 32r6', ], | |
4094 'ldflags': [ '-target mipsel-linux-gnu', ], | |
4095 }, { # clang==0 | |
4096 'cflags': ['-mips32r6', '-Wa,-mips32r6', ], | |
4097 }], | |
4098 ['clang==0 and OS=="android"', { | |
4094 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], | 4099 'ldflags': ['-mips32r6', '-Wl,-melf32ltsmip',], |
4095 }], | 4100 }], |
4096 ], | 4101 ], |
4097 }], | 4102 }], |
4098 ['mips_arch_variant=="r2"', { | 4103 ['mips_arch_variant=="r2"', { |
4099 'cflags': ['-mips32r2', '-Wa,-mips32r2'], | |
4100 'conditions': [ | 4104 'conditions': [ |
4101 ['mips_float_abi=="hard" and mips_fpu_mode!=""', { | 4105 ['mips_float_abi=="hard" and mips_fpu_mode!=""', { |
4102 'cflags': ['-m<(mips_fpu_mode)'], | 4106 'cflags': ['-m<(mips_fpu_mode)'], |
4103 }], | 4107 }], |
4108 ['clang==1', { | |
4109 'conditions': [ | |
4110 ['OS=="android"', { | |
4111 'cflags': [ '-target mipsel-linux-android', '-ma rch=mipsel', '-mcpu=mips32r2'], | |
4112 'ldflags': [ '-target mipsel-linux-android', ], | |
4113 }], | |
4114 ], | |
4115 }, { # clang==0 | |
4116 'cflags': ['-mips32r2', '-Wa,-mips32r2', ], | |
4117 }], | |
4104 ], | 4118 ], |
4105 }], | 4119 }], |
4106 ['mips_arch_variant=="r1"', { | 4120 ['mips_arch_variant=="r1"', { |
4107 'cflags': ['-mips32', '-Wa,-mips32'], | 4121 'conditions': [ |
4122 ['clang==1', { | |
4123 'conditions': [ | |
4124 ['OS=="android"', { | |
4125 'cflags': [ '-target mipsel-linux-android', '-ma rch=mipsel', '-mcpu=mips32'], | |
4126 'ldflags': [ '-target mipsel-linux-android', ], | |
4127 }], | |
4128 ], | |
4129 }, { # clang==0 | |
4130 'cflags': ['-mips32', '-Wa,-mips32', ], | |
4131 }], | |
4132 ], | |
4133 }], | |
4134 ['clang==1', { | |
4135 'cflags!': [ | |
4136 # Clang does not support the following options. | |
4137 '-finline-limit=64', | |
4138 ], | |
4139 'cflags': [ | |
4140 # TODO(gordanac) Enable integrated-as. | |
4141 '-no-integrated-as', | |
Nico
2015/11/30 18:47:47
Everything builds fine for me with OS=android targ
| |
4142 '-B<(android_toolchain)', # Else /usr/bin/as gets pic ked up. | |
4143 ], | |
4144 'ldflags': [ | |
4145 # Let clang find the ld in the NDK. | |
4146 '--gcc-toolchain=<(android_toolchain)/..', | |
4147 ], | |
4108 }], | 4148 }], |
4109 ['mips_dsp_rev==1', { | 4149 ['mips_dsp_rev==1', { |
4110 'cflags': ['-mdsp'], | 4150 'cflags': ['-mdsp'], |
4111 }], | 4151 }], |
4112 ['mips_dsp_rev==2', { | 4152 ['mips_dsp_rev==2', { |
4113 'cflags': ['-mdspr2'], | 4153 'cflags': ['-mdspr2'], |
4114 }], | 4154 }], |
4115 ], | 4155 ], |
4116 'cflags': [ | 4156 'cflags': [ |
4117 '-m<(mips_float_abi)-float' | 4157 '-m<(mips_float_abi)-float' |
(...skipping 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6029 # settings in target dicts. SYMROOT is a special case, because many other | 6069 # settings in target dicts. SYMROOT is a special case, because many other |
6030 # Xcode variables depend on it, including variables such as | 6070 # Xcode variables depend on it, including variables such as |
6031 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6071 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6032 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6072 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6033 # files to appear (when present) in the UI as actual files and not red | 6073 # files to appear (when present) in the UI as actual files and not red |
6034 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6074 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6035 # and therefore SYMROOT, needs to be set at the project level. | 6075 # and therefore SYMROOT, needs to be set at the project level. |
6036 'SYMROOT': '<(DEPTH)/xcodebuild', | 6076 'SYMROOT': '<(DEPTH)/xcodebuild', |
6037 }, | 6077 }, |
6038 } | 6078 } |
OLD | NEW |