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