Skip to content

Commit c862f15

Browse files
committed
Build - compile and copy libsp_link.dll to erlang priv
1 parent 741ba1d commit c862f15

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

app/external/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ ExternalProject_Add(sp_midi
2424
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config Release
2525
)
2626

27+
ExternalProject_Add(sp_link
28+
PREFIX sp_link-prefix
29+
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/sp_link
30+
INSTALL_COMMAND ""
31+
CMAKE_ARGS
32+
-DERLANG_INCLUDE_PATH=${ERLANG_INCLUDE_PATH}
33+
-DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET}
34+
BUILD_COMMAND ${CMAKE_COMMAND} --build . --config Release
35+
)
36+
2737
ExternalProject_Add(ogg
2838
PREFIX ogg-prefix
2939
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/ogg-1.3.4

app/win-prebuild.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ xcopy /Y /I /R /E ..\prebuilt\windows\x64\*.* server\native
3636
@echo Copying sp_midi dll to the erlang bin directory...
3737
xcopy /Y /I /R /E external\build\sp_midi-prefix\src\sp_midi-build\Release\*.dll server\erlang\tau\priv\
3838

39+
@echo Copying sp_link dll to the erlang bin directory...
40+
xcopy /Y /I /R /E external\build\sp_link-prefix\src\sp_link-build\Release\*.dll server\erlang\tau\priv\
41+
3942
@echo Translating tutorial...
4043
server\native\ruby\bin\ruby server/ruby/bin/i18n-tool.rb -t
4144

0 commit comments

Comments
 (0)