commit aa6beca1882e57997121cbf321aafdf35fd78a63
parent 7fabbb58936e154a01bd47e3abe7db2f793a8167
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Fri, 27 Sep 2024 21:52:15 +0200
define some basic cmake presets and a preset for Zynthian platform
Diffstat:
2 files changed, 62 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -11,3 +11,4 @@
/build/
*atom*.sh
*debug.sh
+CMakeUserPresets.json
diff --git a/CMakePresets.json b/CMakePresets.json
@@ -0,0 +1,60 @@
+{
+ "version": 3,
+ "configurePresets": [
+ {
+ "name": "base",
+ "generator": "Ninja",
+ "binaryDir": "${sourceDir}/temp/cmake_${presetName}",
+ "installDir": "${sourceDir}/install/${presetName}",
+ "hidden": true
+ },
+ {
+ "name": "default",
+ "inherits": "base"
+ },
+ {
+ "name": "windows-x64",
+ "inherits": "default",
+ "displayName": "Windows default x64 configuration",
+ "architecture": "x64",
+ "condition": {
+ "type": "equals",
+ "lhs": "${hostSystemName}",
+ "rhs": "Windows"
+ }
+ },
+ {
+ "name": "zynthian",
+ "inherits": "default",
+ "displayName": "Build specifically for the Zynthian platform",
+ "generator": "Ninja",
+ "installDir": "/usr/local",
+ "cacheVariables": {
+ "gearmulator_BUILD_JUCEPLUGIN": "ON",
+ "gearmulator_BUILD_FX_PLUGIN": "OFF",
+
+ "CMAKE_CXX_FLAGS": "-march=armv8.2-a -DZYNTHIAN",
+ "CMAKE_C_FLAGS": "-march=armv8.2-a -DZYNTHIAN",
+
+ "gearmulator_BUILD_JUCEPLUGIN_CLAP": "OFF",
+ "gearmulator_BUILD_JUCEPLUGIN_VST2": "OFF",
+ "gearmulator_BUILD_JUCEPLUGIN_VST3": "OFF",
+ "gearmulator_BUILD_JUCEPLUGIN_AU": "OFF",
+ "gearmulator_BUILD_JUCEPLUGIN_LV2": "ON",
+
+ "gearmulator_SYNTH_NODALRED2X": "OFF",
+ "gearmulator_SYNTH_OSIRUS": "ON",
+ "gearmulator_SYNTH_OSTIRUS": "ON",
+ "gearmulator_SYNTH_VAVRA": "OFF",
+ "gearmulator_SYNTH_XENIA": "OFF"
+ }
+ }
+ ],
+ "buildPresets": [
+ {
+ "name": "zynthian",
+ "configurePreset": "zynthian",
+ "jobs": 2
+ }
+ ]
+}
+\ No newline at end of file