Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ endif()

add_library(BASS_FX SHARED IMPORTED)
if(WIN32)
# TODO
set(BASS_FX_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/BASS_FX/C)
set(BASS_FX_LIBRARY ${CMAKE_SOURCE_DIR}/thirdparty/BASS_FX/C/x64/bass_fx.lib)
include_directories(${BASS_FX_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} ${BASS_FX_LIBRARY})
else()
set_target_properties(BASS_FX PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/thirdparty/BASS/x64/libbass_fx.so)
target_include_directories(BASS_FX INTERFACE ${CMAKE_SOURCE_DIR}/thirdparty/BASS)
Expand Down
2 changes: 1 addition & 1 deletion scripts/FedoraSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ mv C/bass_fx.h ./bass_fx.h
rm -rf C/
rm bass_fx24-linux.zip

cd .. && mkdir build && cd build && cmake ..
cd ../.. && mkdir build && cd build && cmake ..
2 changes: 1 addition & 1 deletion scripts/UbuntuSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ mv C/bass_fx.h ./bass_fx.h
rm -rf C/
rm bass_fx24-linux.zip

cd .. && mkdir build && cd build && cmake ..
cd ../.. && mkdir build && cd build && cmake ..
4 changes: 4 additions & 0 deletions scripts/WindowsSetup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ set WorkDir=%cd%
Rem Download BASS
bitsadmin /transfer BASS_Download /download /priority normal http://uk.un4seen.com/files/bass24.zip %WorkDir%\thirdparty\bass.zip

Rem Download BASS FX
bitsadmin /transfer BASS_FX_Download /download /priority normal http://uk.un4seen.com/files/z/0//bass_fx24.zip %WorkDir%\thirdparty\bass_fx.zip

Rem Unzip files
powershell Expand-Archive %WorkDir%\thirdparty\bass.zip -DestinationPath %WorkDir%\thirdparty\BASS
powershell Expand-Archive %WorkDir%\thirdparty\bass_fx.zip -DestinationPath %WorkDir%\thirdparty\BASS_FX

Rem Cleanup
DEL %WorkDir%\thirdparty\*.zip