|
@@ -24,22 +24,22 @@ if meson.get_compiler('c').get_id() == 'clang'
|
|
|
endif
|
|
|
cflags = ['-msse','-msse2','-mfpmath=sse','-ffast-math','-fomit-frame-pointer','-fno-finite-math-only']
|
|
|
|
|
|
+#install folder
|
|
|
+install_folder = 'sdenoise.lv2'
|
|
|
+
|
|
|
#get the build operating system and configure install path and shared object extension
|
|
|
current_os = build_machine.system()
|
|
|
if current_os == 'darwin' #mac
|
|
|
- i_path = '/Library/Audio/Plug-Ins/LV2/sdenoise.lv2'
|
|
|
extension = '.dylib'
|
|
|
else #unix like
|
|
|
- i_path = '/usr/local/lib/lv2/sdenoise.lv2'
|
|
|
extension = '.so'
|
|
|
endif #windows
|
|
|
if current_os == 'windows'
|
|
|
- i_path = '%COMMONPROGRAMFILES%/LV2/sdenoise.lv2'
|
|
|
extension = '.dll'
|
|
|
endif
|
|
|
|
|
|
#build of the shared object
|
|
|
-shared_library(lv2_name,src,name_prefix: '',include_directories: inc_rnnoise,dependencies: nr_dep,c_args: cflags,install: true,install_dir : i_path)
|
|
|
+shared_library(lv2_name,src,name_prefix: '',include_directories: inc_rnnoise,dependencies: nr_dep,c_args: cflags,install: true,install_dir : install_folder)
|
|
|
|
|
|
#Configure manifest ttl in order to replace the correct shared object extension
|
|
|
manifest_conf = configuration_data()
|
|
@@ -47,4 +47,4 @@ manifest_conf.set('LIB_EXT',extension)
|
|
|
configure_file(input : 'lv2ttl/manifest.ttl.in',output : 'manifest.ttl',configuration : manifest_conf)
|
|
|
|
|
|
#add manifest.ttl and nrepel.ttl to be installed with the shared object
|
|
|
-install_data(['build/manifest.ttl', 'lv2ttl/sdenoise.ttl'],install_dir : i_path)
|
|
|
+install_data(['build/manifest.ttl', 'lv2ttl/sdenoise.ttl'],install_dir : install_folder)
|