File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 44import platform
55import os
66import shutil
7-
87import argparse
98
109parser = argparse .ArgumentParser (description = "Build plugins with CMake" )
5251 build_dir = builds_parent_dir / f"Build-{ name } "
5352 print (f"\n Processing: { name } " )
5453
55- # Run cmake configuration inside plugdata
54+ enable_gem = plugin .get ("enable_gem" , False )
55+ enable_sfizz = plugin .get ("enable_sfizz" , False )
56+ enable_ffmpeg = plugin .get ("enable_ffmpeg" , False )
57+
5658 cmake_configure = [
5759 "cmake" ,
5860 * cmake_generator ,
5961 f"-B{ build_dir } " ,
6062 f"-DCUSTOM_PLUGIN_NAME={ name } " ,
6163 f"-DCUSTOM_PLUGIN_PATH={ zip_path } " ,
6264 "-DCMAKE_BUILD_TYPE=Release" ,
63- "-DENABLE_GEM=0" ,
64- "-DENABLE_SFIZZ=0" ,
65+ f"-DENABLE_GEM={ '1' if enable_gem else '0' } " ,
66+ f"-DENABLE_SFIZZ={ '1' if enable_sfizz else '0' } " ,
67+ f"-DENABLE_FFMPEG={ '1' if enable_ffmpeg else '0' } " ,
6568 ]
69+
6670 if args .compiler_launcher :
6771 cmake_configure .append (f"-DCMAKE_C_COMPILER_LAUNCHER={ args .compiler_launcher } " )
6872 cmake_configure .append (f"-DCMAKE_CXX_COMPILER_LAUNCHER={ args .compiler_launcher } " )
Original file line number Diff line number Diff line change 44 "path" : " Plugins/N-TILT.zip" ,
55 "formats" : [" VST3" , " AU" , " LV2" ],
66 "type" : " fx"
7+ "enable_gem" : false ,
8+ "enable_sfizz" : false ,
9+ "enable_ffmpeg" : false
710 }
811]
You can’t perform that action at this time.
0 commit comments