summaryrefslogtreecommitdiffstats
path: root/src/server/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-12-13 20:54:18 -0500
committerDavid Robillard <d@drobilla.net>2016-12-14 14:47:13 -0500
commit74f83ee8aa39d9fded35e07c9418c38ababcd9a7 (patch)
tree7461cd602c6e6238cd3127d5373ae8577f90a20e /src/server/wscript
parente7b2f7ee286350bc3bb56b44ed98e4d8bf49af82 (diff)
downloadingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.tar.gz
ingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.tar.bz2
ingen-74f83ee8aa39d9fded35e07c9418c38ababcd9a7.zip
Add option to not build LV2 plugin
Diffstat (limited to 'src/server/wscript')
-rw-r--r--src/server/wscript21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/server/wscript b/src/server/wscript
index 1d4b8ac2..43ba162a 100644
--- a/src/server/wscript
+++ b/src/server/wscript
@@ -92,13 +92,14 @@ def build(bld):
autowaf.use_lib(bld, obj, core_libs + ' JACK')
# Ingen LV2 wrapper
- obj = bld(features = 'cxx cxxshlib',
- source = ' ingen_lv2.cpp ',
- includes = ['.', '../..'],
- name = 'libingen_lv2',
- target = 'ingen_lv2',
- install_path = '${LV2DIR}/ingen.lv2/',
- use = 'libingen libingen_server',
- cxxflags = bld.env.PTHREAD_CFLAGS,
- linkflags = bld.env.PTHREAD_LINKFLAGS)
- autowaf.use_lib(bld, obj, core_libs)
+ if bld.env.INGEN_BUILD_LV2:
+ obj = bld(features = 'cxx cxxshlib',
+ source = ' ingen_lv2.cpp ',
+ includes = ['.', '../..'],
+ name = 'libingen_lv2',
+ target = 'ingen_lv2',
+ install_path = '${LV2DIR}/ingen.lv2/',
+ use = 'libingen libingen_server',
+ cxxflags = bld.env.PTHREAD_CFLAGS,
+ linkflags = bld.env.PTHREAD_LINKFLAGS)
+ autowaf.use_lib(bld, obj, core_libs)