Skip to content

Commit

Permalink
added LV2 to cmake and submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWaveWarden committed Jun 12, 2022
1 parent 83fe988 commit 93cd35d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "libs/clap-juce-extensions"]
path = libs/clap-juce-extensions
url = https://github.com/free-audio/clap-juce-extensions
[submodule "libs/JUCELV2"]
path = libs/JUCELV2
url = https://github.com/lv2-porting-project/JUCE
21 changes: 14 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ cmake_minimum_required(VERSION 3.15)
project(Odin2 VERSION 2.3.3 LANGUAGES C CXX ASM)

# ================== CMake Subdirs ======================
add_subdirectory(libs/JUCE)
add_subdirectory(libs/clap-juce-extensions)

if(UNIX AND NOT APPLE)
add_subdirectory(libs/JUCELV2)
else()
add_subdirectory(libs/JUCE)
endif()

# ================= Git Commit Hash =====================
find_package(Git)
Expand All @@ -25,21 +28,25 @@ file(WRITE "${CMAKE_BINARY_DIR}/include/GitCommitId.h" "#define GIT_COMMIT_ID \"
option(ODIN2_COPY_PLUGIN_AFTER_BUILD "Copy JUCE Plugins after built" OFF)

# ==================== Add Plugin =======================
# Build LV2 only on Linux
set(JUCE_FORMATS AU VST3 Standalone)
if(UNIX AND NOT APPLE)
list(APPEND JUCE_FORMATS LV2)
endif()

juce_add_plugin(Odin2
VERSION "2.3.3"
COMPANY_NAME "TheWaveWarden"
COMPANY_WEBSITE "www.thewavewarden.com"
COMPANY_EMAIL "[email protected]"

FORMATS
"VST3"
"AU"
"Standalone"
FORMATS ${JUCE_FORMATS}
PLUGIN_MANUFACTURER_CODE "WAWA"
PLUGIN_CODE "ODIN"
IS_SYNTH TRUE
NEEDS_MIDI_INPUT TRUE
COPY_PLUGIN_AFTER_BUILD ${ODIN2_COPY_PLUGIN_AFTER_BUILD}
LV2_URI https://thewavewarden.com/odin2
LV2_SHARED_LIBRARY_NAME Odin2
)

# ==================== CLAP =======================
Expand Down
1 change: 1 addition & 0 deletions libs/JUCELV2
Submodule JUCELV2 added at 53b048

0 comments on commit 93cd35d

Please sign in to comment.