Skip to content

Commit 1ee1511

Browse files
committed
use reaper_plugin{,_functions}.h from the new reaper-sdk repository
1 parent 08816ee commit 1ee1511

File tree

5 files changed

+10
-26
lines changed

5 files changed

+10
-26
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "vendor/WDL"]
22
path = vendor/WDL
33
url = https://github.com/justinfrankel/WDL.git
4+
[submodule "vendor/reaper-sdk"]
5+
path = vendor/reaper-sdk
6+
url = https://github.com/justinfrankel/reaper-sdk.git

CMakeLists.txt

-24
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,6 @@ endif()
3636

3737
STRING(TOLOWER "${ARCH_NAME}" ARCH_NAME)
3838

39-
function(fetch fn url alt)
40-
set(path "${CMAKE_CURRENT_SOURCE_DIR}/${fn}")
41-
42-
if(EXISTS "${path}")
43-
return()
44-
endif()
45-
46-
message(STATUS "Downloading ${fn} from ${url} into vendor...")
47-
file(DOWNLOAD ${url} "${path}" STATUS status LOG log)
48-
list(GET status 0 status_code)
49-
50-
if(NOT status_code EQUAL 0)
51-
file(REMOVE "${path}")
52-
message(SEND_ERROR "Failed to download ${fn}.\n${alt}")
53-
endif()
54-
endfunction()
55-
56-
fetch(vendor/reaper_plugin.h https://landoleet.org/dev/reaper_plugin.h
57-
"Download the latest version from Landoleet manually.")
58-
fetch(vendor/reaper_plugin_functions.h
59-
https://gist.github.com/cfillion/da355e8278048de08ae065d6fe6031c1/raw/reaper_plugin_functions.h
60-
"Generate it using this REAPER action: [developer] Write C++ API functions header."
61-
)
62-
6339
set(CMAKE_CXX_EXTENSIONS OFF)
6440
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6541
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")

src/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ add_library(reapack OBJECT
112112

113113
target_compile_features(reapack PUBLIC cxx_std_17)
114114
target_include_directories(reapack PRIVATE
115-
${CMAKE_SOURCE_DIR}/vendor ${CMAKE_CURRENT_BINARY_DIR})
115+
${CMAKE_SOURCE_DIR}/vendor ${CMAKE_SOURCE_DIR}/vendor/reaper-sdk/sdk
116+
${CMAKE_CURRENT_BINARY_DIR}
117+
)
116118

117119
if(WIN32)
118120
target_sources(reapack PRIVATE buildinfo.rc)

test/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@ add_executable(tests EXCLUDE_FROM_ALL
3333
# std::uncaught_exceptions is unavailable prior to macOS 10.12
3434
target_compile_definitions(tests PRIVATE CATCH_CONFIG_NO_CPP17_UNCAUGHT_EXCEPTIONS)
3535
target_include_directories(tests PRIVATE
36-
${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/vendor)
36+
${CMAKE_SOURCE_DIR}/src
37+
${CMAKE_SOURCE_DIR}/vendor ${CMAKE_SOURCE_DIR}/vendor/reaper-sdk/sdk
38+
)
3739
target_link_libraries(tests Catch2::Catch2 reapack)

vendor/reaper-sdk

Submodule reaper-sdk added at bab8de9

0 commit comments

Comments
 (0)