Skip to content

Commit

Permalink
more cmake fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psemiletov committed Sep 19, 2024
1 parent 7a04d57 commit 7377689
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ set(LV2_INSTALL_DIR lib/lv2 CACHE PATH "Specifies where the LV2 libraries should
set(VST3_INSTALL_DIR lib/vst3 CACHE PATH "Specifies where the VST3 libraries should be installed")


IF (WIN32)
set (JUCETAG "7.0.10")
# set stuff for windows
ELSE()
set (JUCETAG "8.0.1")
# set stuff for other systems
ENDIF()



set(FETCHCONTENT_QUIET FALSE)


Expand Down Expand Up @@ -85,9 +95,9 @@ FetchContent_Declare(
juce
GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
# GIT_TAG 2a27ebcfae7ca7f6eb62b29d5f002ceefdaadbdb # release-7.0.7
GIT_TAG 7.0.10 # release-7.0.10
# GIT_TAG 7.0.10 # release-7.0.10
# GIT_TAG 8.0.1

GIT_TAG ${JUCETAG}
#since cmake 3.28
# EXCLUDE_FROM_ALL
#
Expand All @@ -106,8 +116,9 @@ else()
FetchContent_Declare(
juce
GIT_REPOSITORY https://github.com/juce-framework/JUCE.git
GIT_TAG ${JUCETAG}

GIT_TAG 7.0.10 # release-7.0.10
# GIT_TAG 7.0.10 # release-7.0.10

#GIT_TAG 8.0.1
#since cmake 3.28
Expand Down Expand Up @@ -139,6 +150,7 @@ juce_add_plugin(drumlabooh
# VERSION ... # Set this if the plugin version is different to the project version
# ICON_BIG ... # ICON_* arguments specify a path to an image file to use as an icon for the Standalone
# ICON_SMALL ...
NEEDS_WEB_BROWSER FALSE
JUCE_DISPLAY_SPLASH_SCREEN=0
LV2URI https://github.com/psemiletov/drumlabooh
LV2_SHARED_LIBRARY_NAME drumlabooh
Expand Down Expand Up @@ -223,6 +235,7 @@ if(MULTI)

juce_add_plugin(drumlabooh-multi
JUCE_DISPLAY_SPLASH_SCREEN=0
NEEDS_WEB_BROWSER FALSE
LV2URI https://github.com/psemiletov/drumlabooh-multi
LV2_SHARED_LIBRARY_NAME drumlabooh-multi
COMPANY_NAME Semiletov # Specify the name of the plugin's author
Expand Down
2 changes: 1 addition & 1 deletion Source/kits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ juce::AudioBuffer <float>* CDrumLayer::load_whole_sample (const std::string &fna

// std::cout << "reader.get() != nullptr\n";

juce::AudioBuffer<float> *buffer = new juce::AudioBuffer<float>;
juce::AudioBuffer <float> *buffer = new juce::AudioBuffer<float>;

int bufsize = (int) reader->lengthInSamples;
//buffer->setSize ((int) reader->numChannels, bufsize);
Expand Down

0 comments on commit 7377689

Please sign in to comment.