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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 # TODO(wtc): change "mipselx" to "mipsel" in this file when the | 8 # TODO(wtc): change "mipselx" to "mipsel" in this file when the |
9 # compilation errors in the MIPS optimizations are fixed. | 9 # compilation errors in the MIPS optimizations are fixed. |
10 ['target_arch=="arm" or target_arch=="arm64" or target_arch=="mipselx"', { | 10 ['target_arch=="arm" or target_arch=="arm64" or target_arch=="mipselx"', { |
(...skipping 13 matching lines...) Expand all Loading... |
24 }], | 24 }], |
25 ['target_arch=="arm" and (OS=="win" or OS=="android" or OS=="linux")', { | 25 ['target_arch=="arm" and (OS=="win" or OS=="android" or OS=="linux")', { |
26 # Based on the conditions in celt/arm/armcpu.c: | 26 # Based on the conditions in celt/arm/armcpu.c: |
27 # defined(_MSC_VER) || defined(__linux__). | 27 # defined(_MSC_VER) || defined(__linux__). |
28 'use_opus_rtcd%': 1, | 28 'use_opus_rtcd%': 1, |
29 }, { | 29 }, { |
30 'use_opus_rtcd%': 0, | 30 'use_opus_rtcd%': 0, |
31 }], | 31 }], |
32 ], | 32 ], |
33 }, | 33 }, |
34 'target_defaults': { | |
35 'target_conditions': [ | |
36 ['_type=="executable"', { | |
37 # All of the executable targets depend on 'opus'. Unfortunately the | |
38 # 'dependencies' block cannot be inherited via 'target_defaults'. | |
39 'include_dirs': [ | |
40 'src/celt', | |
41 'src/silk', | |
42 ], | |
43 'conditions': [ | |
44 ['OS == "win"', { | |
45 'defines': [ | |
46 'inline=__inline', | |
47 ], | |
48 }], | |
49 ['OS=="android"', { | |
50 'libraries': [ | |
51 '-llog', | |
52 ], | |
53 }], | |
54 ['clang==1', { | |
55 'cflags': [ '-Wno-absolute-value' ], | |
56 }] | |
57 ], | |
58 }], | |
59 ], | |
60 }, | |
61 'targets': [ | 34 'targets': [ |
62 { | 35 { |
63 'target_name': 'opus', | 36 'target_name': 'opus', |
64 'type': 'static_library', | 37 'type': 'static_library', |
65 'defines': [ | 38 'defines': [ |
66 'OPUS_BUILD', | 39 'OPUS_BUILD', |
67 'OPUS_EXPORT=', | 40 'OPUS_EXPORT=', |
68 ], | 41 ], |
69 'include_dirs': [ | 42 'include_dirs': [ |
70 'src/celt', | 43 'src/celt', |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 ], | 144 ], |
172 }], | 145 }], |
173 ], | 146 ], |
174 }, # target opus | 147 }, # target opus |
175 { | 148 { |
176 'target_name': 'opus_compare', | 149 'target_name': 'opus_compare', |
177 'type': 'executable', | 150 'type': 'executable', |
178 'dependencies': [ | 151 'dependencies': [ |
179 'opus' | 152 'opus' |
180 ], | 153 ], |
| 154 'conditions': [ |
| 155 ['OS == "win"', { |
| 156 'defines': [ |
| 157 'inline=__inline', |
| 158 ], |
| 159 }], |
| 160 ['OS=="android"', { |
| 161 'link_settings': { |
| 162 'libraries': [ |
| 163 '-llog', |
| 164 ], |
| 165 }, |
| 166 }], |
| 167 ['clang==1', { |
| 168 'cflags': [ '-Wno-absolute-value' ], |
| 169 }] |
| 170 ], |
181 'sources': [ | 171 'sources': [ |
182 'src/src/opus_compare.c', | 172 'src/src/opus_compare.c', |
183 ], | 173 ], |
| 174 'include_dirs': [ |
| 175 'src/celt', |
| 176 'src/silk', |
| 177 ], |
184 }, # target opus_compare | 178 }, # target opus_compare |
185 { | 179 { |
186 'target_name': 'opus_demo', | 180 'target_name': 'opus_demo', |
187 'type': 'executable', | 181 'type': 'executable', |
188 'dependencies': [ | 182 'dependencies': [ |
189 'opus' | 183 'opus' |
190 ], | 184 ], |
| 185 'conditions': [ |
| 186 ['OS == "win"', { |
| 187 'defines': [ |
| 188 'inline=__inline', |
| 189 ], |
| 190 }], |
| 191 ['OS=="android"', { |
| 192 'link_settings': { |
| 193 'libraries': [ |
| 194 '-llog', |
| 195 ], |
| 196 }, |
| 197 }], |
| 198 ['clang==1', { |
| 199 'cflags': [ '-Wno-absolute-value' ], |
| 200 }] |
| 201 ], |
191 'sources': [ | 202 'sources': [ |
192 'src/src/opus_demo.c', | 203 'src/src/opus_demo.c', |
193 ], | 204 ], |
| 205 'include_dirs': [ |
| 206 'src/celt', |
| 207 'src/silk', |
| 208 ], |
194 }, # target opus_demo | 209 }, # target opus_demo |
195 { | |
196 'target_name': 'test_opus_api', | |
197 'type': 'executable', | |
198 'dependencies': [ | |
199 'opus' | |
200 ], | |
201 'sources': [ | |
202 'src/tests/test_opus_api.c', | |
203 ], | |
204 }, # target test_opus_api | |
205 { | |
206 'target_name': 'test_opus_encode', | |
207 'type': 'executable', | |
208 'dependencies': [ | |
209 'opus' | |
210 ], | |
211 'sources': [ | |
212 'src/tests/test_opus_encode.c', | |
213 ], | |
214 }, # target test_opus_encode | |
215 { | |
216 'target_name': 'test_opus_decode', | |
217 'type': 'executable', | |
218 'dependencies': [ | |
219 'opus' | |
220 ], | |
221 'sources': [ | |
222 'src/tests/test_opus_decode.c', | |
223 ], | |
224 }, # target test_opus_decode | |
225 { | |
226 'target_name': 'test_opus_padding', | |
227 'type': 'executable', | |
228 'dependencies': [ | |
229 'opus' | |
230 ], | |
231 'sources': [ | |
232 'src/tests/test_opus_padding.c', | |
233 ], | |
234 }, # target test_opus_padding | |
235 ] | 210 ] |
236 } | 211 } |
OLD | NEW |