OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'includes': [ | 6 'includes': [ |
7 '../../native_client/build/untrusted.gypi', | 7 '../../native_client/build/untrusted.gypi', |
8 ], | 8 ], |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'opus_nacl', | 11 'target_name': 'opus_nacl', |
12 'type': 'none', | 12 'type': 'none', |
13 'variables': { | 13 'variables': { |
14 'nlib_target': 'libopus_nacl.a', | 14 'nlib_target': 'libopus_nacl.a', |
15 'build_glibc': 0, | 15 'build_glibc': 0, |
16 'build_newlib': 0, | 16 'build_newlib': 0, |
17 'build_pnacl_newlib': 1, | 17 'build_pnacl_newlib': 1, |
18 }, | 18 }, |
19 'dependencies': [ | |
20 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
21 ], | |
22 'defines': [ | 19 'defines': [ |
23 'OPUS_BUILD', | 20 'OPUS_BUILD', |
24 'OPUS_EXPORT=', | 21 'OPUS_EXPORT=', |
25 'HAVE_LRINT', | 22 'HAVE_LRINT', |
26 'HAVE_LRINTF', | 23 'HAVE_LRINTF', |
27 'VAR_ARRAYS', | 24 'VAR_ARRAYS', |
28 ], | 25 ], |
29 'include_dirs': [ | 26 'include_dirs': [ |
30 'src/celt', | 27 'src/celt', |
31 'src/include', | 28 'src/include', |
32 'src/silk', | 29 'src/silk', |
33 'src/silk/float', | 30 'src/silk/float', |
34 ], | 31 ], |
35 'includes': ['opus_srcs.gypi', ], | 32 'includes': ['opus_srcs.gypi', ], |
36 'sources': [ | 33 'sources': [ |
37 '<@(opus_common_sources)', | 34 '<@(opus_common_sources)', |
38 '<@(opus_float_sources)', | 35 '<@(opus_float_sources)', |
39 ], | 36 ], |
40 # Suppress a warning given by opus_decoder.c that tells us | 37 # Suppress a warning given by opus_decoder.c that tells us |
41 # optimizations are turned off. | 38 # optimizations are turned off. |
42 'cflags': [ | 39 'cflags': [ |
43 '-Wno-#pragma-messages', | 40 '-Wno-#pragma-messages', |
44 ], | 41 ], |
45 }, # end of target 'opus_nacl' | 42 }, # end of target 'opus_nacl' |
46 ], | 43 ], |
47 } | 44 } |
OLD | NEW |