Skip to content

Commit dbbc720

Browse files
committed
Make some externals configurable
1 parent 8754a9f commit dbbc720

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import platform
55
import os
66
import shutil
7-
87
import argparse
98

109
parser = argparse.ArgumentParser(description="Build plugins with CMake")
@@ -52,17 +51,22 @@
5251
build_dir = builds_parent_dir / f"Build-{name}"
5352
print(f"\nProcessing: {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}")

config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
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
]

0 commit comments

Comments
 (0)