summaryrefslogtreecommitdiffstats
path: root/src/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-07 01:05:13 +0000
committerDavid Robillard <d@drobilla.net>2015-02-07 01:05:13 +0000
commit82ab6f73fab060860addb30691d0e926b4723ee2 (patch)
treed468ccbcae5479161e3f2c899d9e302848ce4e8f /src/wscript
parent8dad2d6e0805d0db2cca66f5901235884aad92da (diff)
downloadingen-82ab6f73fab060860addb30691d0e926b4723ee2.tar.gz
ingen-82ab6f73fab060860addb30691d0e926b4723ee2.tar.bz2
ingen-82ab6f73fab060860addb30691d0e926b4723ee2.zip
Demodularize socket stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5535 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/wscript')
-rw-r--r--src/wscript41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/wscript b/src/wscript
index 7aad0dae..fbca8fe9 100644
--- a/src/wscript
+++ b/src/wscript
@@ -1,23 +1,25 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
-sources = [
- 'AtomReader.cpp',
- 'AtomWriter.cpp',
- 'ClashAvoider.cpp',
- 'Configuration.cpp',
- 'Forge.cpp',
- 'LV2Features.cpp',
- 'Log.cpp',
- 'Resource.cpp',
- 'Store.cpp',
- 'URIMap.cpp',
- 'URIs.cpp',
- 'World.cpp',
- 'runtime_paths.cpp',
-]
-
def build(bld):
+ sources = [
+ 'AtomReader.cpp',
+ 'AtomWriter.cpp',
+ 'ClashAvoider.cpp',
+ 'Configuration.cpp',
+ 'Forge.cpp',
+ 'LV2Features.cpp',
+ 'Log.cpp',
+ 'Resource.cpp',
+ 'Store.cpp',
+ 'URIMap.cpp',
+ 'URIs.cpp',
+ 'World.cpp',
+ 'runtime_paths.cpp'
+ ]
+ if bld.is_defined('HAVE_SOCKET'):
+ sources += [ 'SocketReader.cpp', 'SocketWriter.cpp' ]
+
obj = bld(features = 'cxx cxxshlib',
source = sources,
export_includes = ['..'],
@@ -26,7 +28,9 @@ def build(bld):
target = 'ingen',
vnum = '0.0.0',
install_path = '${LIBDIR}',
- lib = ['dl'])
+ lib = ['dl'],
+ cxxflags = bld.env.PTHREAD_CFLAGS,
+ linkflags = bld.env.PTHREAD_LINKFLAGS)
autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM')
if bld.env.BUILD_TESTS:
@@ -38,6 +42,7 @@ def build(bld):
target = 'ingen_profiled',
install_path = '',
lib = ['dl'] + bld.env.INGEN_TEST_LIBS,
- cxxflags = bld.env.INGEN_TEST_CXXFLAGS)
+ cxxflags = bld.env.PTHREAD_CFLAGS + bld.env.INGEN_TEST_CXXFLAGS,
+ linkflags = bld.env.PTHREAD_LINKFLAGS)
autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM')