| 1 |
# |
|---|
| 2 |
# Copyright (C) 2007 Arnold Krille |
|---|
| 3 |
# Copyright (C) 2007 Pieter Palmers |
|---|
| 4 |
# Copyright (C) 2008 Marc-Olivier Barre |
|---|
| 5 |
# |
|---|
| 6 |
# This file originates from FFADO (www.ffado.org) |
|---|
| 7 |
# |
|---|
| 8 |
# This program is free software: you can redistribute it and/or modify |
|---|
| 9 |
# it under the terms of the GNU General Public License as published by |
|---|
| 10 |
# the Free Software Foundation, either version 3 of the License, or |
|---|
| 11 |
# (at your option) any later version. |
|---|
| 12 |
# |
|---|
| 13 |
# This program is distributed in the hope that it will be useful, |
|---|
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 |
# GNU General Public License for more details. |
|---|
| 17 |
# |
|---|
| 18 |
# You should have received a copy of the GNU General Public License |
|---|
| 19 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 20 |
# |
|---|
| 21 |
|
|---|
| 22 |
import os |
|---|
| 23 |
from string import Template |
|---|
| 24 |
|
|---|
| 25 |
Import('env') |
|---|
| 26 |
|
|---|
| 27 |
# Paths to include files |
|---|
| 28 |
env.AppendUnique(CPPPATH = ['#/', '#/common', '#/common/jack', '#/macosx']) |
|---|
| 29 |
|
|---|
| 30 |
# |
|---|
| 31 |
# Source files section |
|---|
| 32 |
# |
|---|
| 33 |
|
|---|
| 34 |
srcfiles_macosx_server = ['#/common/Jackdmp.cpp'] |
|---|
| 35 |
|
|---|
| 36 |
srcfiles_macosx_coreaudio = ['JackCoreAudioDriver.cpp'] |
|---|
| 37 |
|
|---|
| 38 |
srcfiles_macosx_dummy = ['#/common/JackDummyDriver.cpp'] |
|---|
| 39 |
|
|---|
| 40 |
# |
|---|
| 41 |
# Build/install section |
|---|
| 42 |
# |
|---|
| 43 |
|
|---|
| 44 |
# build the server and its backends |
|---|
| 45 |
serverenv = env.Copy() |
|---|
| 46 |
serverenv.PrependUnique( LIBPATH=env['build_base'] ) |
|---|
| 47 |
serverenv.PrependUnique( LIBS=['jackdmp', 'dl'] ) |
|---|
| 48 |
|
|---|
| 49 |
server = serverenv.Program('jackdmp', srcfiles_macosx_server) |
|---|
| 50 |
serverenv.Install( env['BINDIR'], server ) |
|---|
| 51 |
|
|---|
| 52 |
drv = serverenv.SharedLibrary( 'jack_dummy', srcfiles_macosx_dummy ) |
|---|
| 53 |
serverenv.InstallAs( env['LIBDIR']+ '/jackmp/jack_dummy.so', drv ) |
|---|
| 54 |
|
|---|
| 55 |
drv = serverenv.SharedLibrary( 'jack_coreaudio', srcfiles_macosx_coreaudio ) |
|---|
| 56 |
serverenv.InstallAs( env['LIBDIR']+ '/jackmp/jack_coreaudio.so', drv ) |
|---|