OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2008 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 Import('env') |
| 6 |
| 7 env = env.Clone( |
| 8 ) |
| 9 |
| 10 env.Replace( |
| 11 PA_DIR = '$THIRD_PARTY_DIR/portaudio', |
| 12 CPPPATH = [ |
| 13 '$PA_DIR/include', |
| 14 '$PA_DIR/src/common', |
| 15 '$PA_DIR/src/os/win', |
| 16 ], |
| 17 ) |
| 18 |
| 19 env.Append( |
| 20 CPPDEFINES = [ |
| 21 'PA_NO_DS', |
| 22 'PA_NO_ASIO', |
| 23 ], |
| 24 ) |
| 25 |
| 26 if env['PLATFORM'] == 'win32': |
| 27 env.Append( |
| 28 CPPFLAGS = [ |
| 29 '/wd4133', |
| 30 '/wd4101', |
| 31 ], |
| 32 ) |
| 33 |
| 34 input_files = [ |
| 35 '$PA_DIR/src/common/pa_allocation.c', |
| 36 '$PA_DIR/src/common/pa_converters.c', |
| 37 '$PA_DIR/src/common/pa_cpuload.c', |
| 38 '$PA_DIR/src/common/pa_debugprint.c', |
| 39 '$PA_DIR/src/common/pa_dither.c', |
| 40 '$PA_DIR/src/common/pa_front.c', |
| 41 '$PA_DIR/src/common/pa_process.c', |
| 42 '$PA_DIR/src/common/pa_skeleton.c', |
| 43 '$PA_DIR/src/common/pa_stream.c', |
| 44 '$PA_DIR/src/common/pa_trace.c', |
| 45 '$PA_DIR/src/hostapi/wmme/pa_win_wmme.c', |
| 46 '$PA_DIR/src/os/win/pa_win_hostapis.c', |
| 47 '$PA_DIR/src/os/win/pa_win_util.c', |
| 48 '$PA_DIR/src/os/win/pa_win_waveformat.c', |
| 49 ] |
| 50 |
| 51 env.ChromeStaticLibrary('portaudio', input_files) |
OLD | NEW |