| 1 | # -*- Mode:Python -*- |
|---|
| 2 | |
|---|
| 3 | ########################################################################## |
|---|
| 4 | # # |
|---|
| 5 | # This file is part of AVANGO. # |
|---|
| 6 | # # |
|---|
| 7 | # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # |
|---|
| 8 | # angewandten Forschung (FhG), Munich, Germany. # |
|---|
| 9 | # # |
|---|
| 10 | # AVANGO is free software: you can redistribute it and/or modify # |
|---|
| 11 | # it under the terms of the GNU Lesser General Public License as # |
|---|
| 12 | # published by the Free Software Foundation, version 3. # |
|---|
| 13 | # # |
|---|
| 14 | # AVANGO is distributed in the hope that it will be useful, # |
|---|
| 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
|---|
| 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
|---|
| 17 | # GNU General Public License for more details. # |
|---|
| 18 | # # |
|---|
| 19 | # You should have received a copy of the GNU Lesser General Public # |
|---|
| 20 | # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # |
|---|
| 21 | # # |
|---|
| 22 | ########################################################################## |
|---|
| 23 | |
|---|
| 24 | import avango.build |
|---|
| 25 | |
|---|
| 26 | avango.build.Environment.prepend_include_path(Dir('include').abspath) |
|---|
| 27 | avango.build.Environment.prepend_library_path(Dir('.').abspath) |
|---|
| 28 | local_env = avango.build.Environment() |
|---|
| 29 | avango.build.add_library(local_env, 'avango-sound') |
|---|
| 30 | avango.build.add_library(local_env, 'openal') |
|---|
| 31 | avango.build.add_library(local_env, 'alut') |
|---|
| 32 | avango.build.add_library(local_env, 'vorbisfile') |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | openal_files = Split(''' |
|---|
| 36 | src/OpenALSoundRenderer.cpp |
|---|
| 37 | ''') |
|---|
| 38 | openal_lib = local_env.SharedLibrary('avangoOpenALSound', openal_files) |
|---|
| 39 | Alias('install-openal-sound', local_env.Install(avango.build.get_library_path(), openal_lib)) |
|---|
| 40 | |
|---|
| 41 | local_test_env = avango.build.TestEnvironment() |
|---|
| 42 | local_test_env.Append(LIBS=[openal_lib]) |
|---|
| 43 | |
|---|
| 44 | Alias('openal-sound', openal_lib) |
|---|
| 45 | Alias('all', Alias('openal-sound')) |
|---|
| 46 | Alias('check', Alias("check-openal-sound")) |
|---|
| 47 | Alias('install', Alias('install-openal-sound')) |
|---|
| 48 | |
|---|
| 49 | SConscript ([ |
|---|
| 50 | 'include/avango/sound/openal/SConscript', |
|---|
| 51 | 'src/tests/SConscript', |
|---|
| 52 | 'python/SConscript' |
|---|
| 53 | ]) |
|---|