1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright (c) 2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Import('env')
env = env.Clone(
)
env.Replace(
PA_DIR = '$THIRD_PARTY_DIR/portaudio',
CPPPATH = [
'$PA_DIR/include',
'$PA_DIR/src/common',
'$PA_DIR/src/os/win',
],
)
env.Append(
CPPDEFINES = [
'PA_NO_DS',
'PA_NO_ASIO',
],
)
if env['PLATFORM'] == 'win32':
env.Append(
CPPFLAGS = [
'/wd4133',
'/wd4101',
],
)
input_files = [
'$PA_DIR/src/common/pa_allocation.c',
'$PA_DIR/src/common/pa_converters.c',
'$PA_DIR/src/common/pa_cpuload.c',
'$PA_DIR/src/common/pa_debugprint.c',
'$PA_DIR/src/common/pa_dither.c',
'$PA_DIR/src/common/pa_front.c',
'$PA_DIR/src/common/pa_process.c',
'$PA_DIR/src/common/pa_skeleton.c',
'$PA_DIR/src/common/pa_stream.c',
'$PA_DIR/src/common/pa_trace.c',
'$PA_DIR/src/hostapi/wmme/pa_win_wmme.c',
'$PA_DIR/src/os/win/pa_win_hostapis.c',
'$PA_DIR/src/os/win/pa_win_util.c',
'$PA_DIR/src/os/win/pa_win_waveformat.c',
]
env.ChromeStaticLibrary('portaudio', input_files)
|