diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be10b13516..0d498f843b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -156,7 +156,7 @@ jobs: CC: ${{ matrix.cc }} QT_INSTALL_LOCATION: ${{env.Qt6_DIR}} run: | - ./linux-config.sh + ./linux-config.sh --config ${{ matrix.build_type }} if: matrix.os == 'ubuntu-latest' # Run Configuration Config on Mac @@ -166,7 +166,7 @@ jobs: CC: ${{ matrix.cc }} QT_INSTALL_LOCATION: ${{env.Qt6_DIR}} run: | - ./mac-config.sh + ./mac-config.sh --config ${{ matrix.build_type }} if: matrix.os == 'macos-latest' # Run Configuration Config on Windows @@ -181,9 +181,38 @@ jobs: if: matrix.os == 'windows-latest' # Finally: Build - - name: Do build - working-directory: ${{github.workspace}}/app/build - run: cmake --build . --config ${{ matrix.build_type }} + - name: Build Linux + working-directory: ${{github.workspace}}/app + run: ./linux-build-gui.sh + if: matrix.os == 'ubuntu-latest' + + - name: Build Mac + working-directory: ${{github.workspace}}/app + run: ./mac-build-gui.sh + if: matrix.os == 'macos-latest' + + - name: Build Windows + working-directory: ${{github.workspace}}/app + shell: cmd + run: win-build-gui.bat ${{ matrix.build_type }} + if: matrix.os == 'windows-latest' + + # Build Tau server + - name: Build Tau Server (Linux) + working-directory: ${{github.workspace}}/app + run: ./linux-post-tau-prod-release.sh + if: matrix.os == 'ubuntu-latest' + + - name: Build Tau Server (Mac) + working-directory: ${{github.workspace}}/app + run: ./mac-post-tau-prod-release.sh + if: matrix.os == 'macos-latest' + + - name: Build Tau Server (Windows) + working-directory: ${{github.workspace}}/app + shell: cmd + run: win-post-tau-prod-release.bat + if: matrix.os == 'windows-latest' - name: BEAM Tests Windows shell: cmd diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 9d4bc5717f..9dd8382f51 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -44,6 +44,7 @@ include(cmake/common.cmake) configure_file(${APP_ROOT}/cmake/config.h.cmake ${CMAKE_BINARY_DIR}/config.h) +add_subdirectory(external) add_subdirectory(api) add_subdirectory(api-tests) add_subdirectory(gui) diff --git a/app/external/CMakeLists.txt b/app/external/CMakeLists.txt index 44767a7915..e0c14f07d0 100644 --- a/app/external/CMakeLists.txt +++ b/app/external/CMakeLists.txt @@ -3,6 +3,21 @@ cmake_minimum_required(VERSION 3.13) message(STATUS " Aubio Builder") +if(WIN32) + set(ERLANG_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../prebuilt/windows/headers/erlang CACHE STRING "Path to the Erlang header files") +elseif(${CMAKE_SYSTEM_NAME} MATCHES Darwin) # macOS + set(ERLANG_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../prebuilt/macos/headers/erlang CACHE STRING "Path to the Erlang header files") +else() + execute_process( + COMMAND erl -noshell -eval "io:format(\"~s~n\", [filename:join([lists:concat([code:root_dir(), \"/erts-\", erlang:system_info(version)]), \"include\"])]), init:stop(0)." + OUTPUT_VARIABLE FOUND_ERLANG_INCLUDE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE) + set(ERLANG_INCLUDE_PATH ${FOUND_ERLANG_INCLUDE_PATH} CACHE STRING "Path to the Erlang header files") +endif() +option(USE_SYSTEM_LIBS "Use system libraries instead of bundled libraries when building" OFF) + +message(STATUS "ERLANG_INCLUDE_PATH: ${ERLANG_INCLUDE_PATH}") +message(STATUS "USE_SYSTEM_LIBS: ${USE_SYSTEM_LIBS}") + project(AubioBuilder LANGUAGES CXX C VERSION 1.0.0 @@ -17,8 +32,9 @@ project(AubioBuilder ExternalProject_Add(sp_midi PREFIX sp_midi-prefix SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/sp_midi - INSTALL_COMMAND "" + INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../server/beam/tau/priv CMAKE_ARGS + -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/../server/beam/tau/priv -DERLANG_INCLUDE_PATH=${ERLANG_INCLUDE_PATH} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} -DUSE_SYSTEM_RTMIDI=${USE_SYSTEM_LIBS} @@ -28,8 +44,9 @@ ExternalProject_Add(sp_midi ExternalProject_Add(sp_link PREFIX sp_link-prefix SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/sp_link - INSTALL_COMMAND "" + INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../server/beam/tau/priv CMAKE_ARGS + -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/../server/beam/tau/priv -DERLANG_INCLUDE_PATH=${ERLANG_INCLUDE_PATH} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} BUILD_COMMAND ${CMAKE_COMMAND} --build . --config Release @@ -142,7 +159,8 @@ ExternalProject_Add(aubio -DPC_VORBISENC_INCLUDE_DIRS=${CMAKE_BINARY_DIR}/vorbis-package/include -DPC_OPUS_INCLUDE_DIRS=${CMAKE_BINARY_DIR}/opus-package/include -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} - INSTALL_COMMAND "" + INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../server/native + CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/../server/native ) # Kick off a generation by making a dummy/empty project @@ -150,3 +168,26 @@ add_library(AubioBuilder STATIC externals.cpp) # Dependency ensures the externals are built add_dependencies(AubioBuilder aubio) + +# Copy prebuilt files +if(WIN32) + if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64-bit + add_custom_command( + TARGET AubioBuilder PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../prebuilt/windows/x64/ ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/ + ) + elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) # 32-bit + add_custom_command( + TARGET AubioBuilder PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../prebuilt/windows/x86/ ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/ + ) + endif() +elseif(${CMAKE_SYSTEM_NAME} MATCHES Darwin) # macOS + add_custom_command( + TARGET AubioBuilder PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../../prebuilt/macos/x64/ ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/ + COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/supercollider/scsynth ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/scsynth + COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/supercollider/extra-plugins/ ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/supercollider/plugins/ + COMMAND ${CMAKE_COMMAND} -E rm -rf ${CMAKE_CURRENT_SOURCE_DIR}/../server/native/supercollider/extra-plugins + ) +endif() diff --git a/app/external/aubio/CMakeLists.txt b/app/external/aubio/CMakeLists.txt index 0fee2ee26d..86b93b44ff 100644 --- a/app/external/aubio/CMakeLists.txt +++ b/app/external/aubio/CMakeLists.txt @@ -250,3 +250,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES Darwin) # macOS else() message(FATAL_ERROR "Aubio is not supported on this platform.") endif() + +install(TARGETS ${PROJECT_NAME} +LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) +install(TARGETS aubio_onset +RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) \ No newline at end of file diff --git a/app/external/linux_build_externals.sh b/app/external/linux_build_externals.sh deleted file mode 100755 index ef13a808ec..0000000000 --- a/app/external/linux_build_externals.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -e # Quit script on error -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -echo "Building server external dependencies..." -mkdir -p "${SCRIPT_DIR}/build" -cd "${SCRIPT_DIR}/build" - -ERLANG_INCLUDE_PATH=`erl -noinput -eval 'io:format("~s~n", [filename:join([lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)]), "include"])]), init:stop(0).'` - -cmake -DUSE_SYSTEM_LIBS="${USE_SYSTEM_LIBS}" -DERLANG_INCLUDE_PATH="${ERLANG_INCLUDE_PATH}" -G "Unix Makefiles" .. - -echo "Building external deps..." -cmake --build . --config Release - -cd "${SCRIPT_DIR}" diff --git a/app/external/mac_build_externals.sh b/app/external/mac_build_externals.sh deleted file mode 100755 index 7cbcbb2ee0..0000000000 --- a/app/external/mac_build_externals.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -set -e # Quit script on error -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -echo "Building server external dependencies..." -mkdir -p "${SCRIPT_DIR}/build" -cd "${SCRIPT_DIR}/build" - -echo "Running cmake with: ERLANG_INCLUDE_PATH=\"${SCRIPT_DIR}/../../prebuilt/macos/headers/erlang/\"" -cmake -G "Unix Makefiles" -D ERLANG_INCLUDE_PATH="${SCRIPT_DIR}/../../prebuilt/macos/headers/erlang/" .. - -echo "Building external deps..." -cmake --build . --config Release - -cd "${SCRIPT_DIR}" -echo "Completed building external deps." diff --git a/app/external/sp_link/CMakeLists.txt b/app/external/sp_link/CMakeLists.txt index 4f46350be9..dcccbe7e40 100644 --- a/app/external/sp_link/CMakeLists.txt +++ b/app/external/sp_link/CMakeLists.txt @@ -75,3 +75,9 @@ elseif(UNIX) include_directories(${ERLANG_INCLUDE_PATH}) target_link_libraries(libsp_link Ableton::Link) endif(MSVC) + +if(APPLE) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libsp_link.dylib DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME libsp_link.so) +else() + install(TARGETS libsp_link LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}) +endif() diff --git a/app/external/sp_midi/CMakeLists.txt b/app/external/sp_midi/CMakeLists.txt index 3ad7c4e96a..e06260978f 100644 --- a/app/external/sp_midi/CMakeLists.txt +++ b/app/external/sp_midi/CMakeLists.txt @@ -92,3 +92,8 @@ elseif(UNIX) endif(USE_SYSTEM_RTMIDI) endif(MSVC) +if(APPLE) + install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/libsp_midi.dylib DESTINATION ${CMAKE_INSTALL_PREFIX} RENAME libsp_midi.so) +else() + install(TARGETS libsp_midi LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}) +endif() diff --git a/app/external/win_x64_build_externals.bat b/app/external/win_x64_build_externals.bat deleted file mode 100644 index fd95b838bd..0000000000 --- a/app/external/win_x64_build_externals.bat +++ /dev/null @@ -1,9 +0,0 @@ -set WORKING_DIR=%CD% - -cd %~dp0 -mkdir build > nul -cd build -cmake -G "Visual Studio 16 2019" -A x64 -D ERLANG_INCLUDE_PATH=%~dp0\..\..\prebuilt\windows\headers\erlang\ ..\ -cmake --build . --config Release - -cd %WORKING_DIR% diff --git a/app/external/win_x86_build_externals.bat b/app/external/win_x86_build_externals.bat deleted file mode 100644 index dbbe180b66..0000000000 --- a/app/external/win_x86_build_externals.bat +++ /dev/null @@ -1,6 +0,0 @@ -cd %~dp0 -mkdir build_x86 > nul -cd build_x86 -cmake -G "Visual Studio 16 2019" -A Win32 -D ERLANG_INCLUDE_PATH=%~dp0\..\..\prebuilt\windows\headers\erlang\ ..\ -cmake --build . --config Release -cd %CURRENT_DIR% diff --git a/app/linux-build-all.sh b/app/linux-build-all.sh index 2d4616f18d..c51dd9cde9 100755 --- a/app/linux-build-all.sh +++ b/app/linux-build-all.sh @@ -7,6 +7,7 @@ WORKING_DIR="$(pwd)" "${SCRIPT_DIR}"/linux-prebuild.sh "$@" "${SCRIPT_DIR}"/linux-config.sh "$@" "${SCRIPT_DIR}"/linux-build-gui.sh "$@" +"${SCRIPT_DIR}"/linux-post-tau-prod-release.sh "$@" # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/linux-build-gui.sh b/app/linux-build-gui.sh index a2f5f4a869..c117dbfd61 100755 --- a/app/linux-build-gui.sh +++ b/app/linux-build-gui.sh @@ -4,7 +4,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" WORKING_DIR="$(pwd)" cd "${SCRIPT_DIR}"/build -cmake --build . --config Release +cmake --build . # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/linux-clean.sh b/app/linux-clean.sh index fde2785d44..17cf3c2f8c 100755 --- a/app/linux-clean.sh +++ b/app/linux-clean.sh @@ -7,12 +7,9 @@ cd "${SCRIPT_DIR}" echo "Cleaning out build dir...." rm -rf build -echo "Cleaning out external/build dir...." -rm -rf external/build - echo "Cleaning out BEAM distribution..." rm -rf server/beam/tau/_build -rm -rf server/beam/tau/priv/*.{so,dylib,dll} +rm -f server/beam/tau/priv/*.{so,dylib,dll} if [ "$MIX_ENV" == dev ]; then rm -rf server/beam/tau/priv/static/assets rm -rf server/beam/tau/priv/static/cache_manifest.json diff --git a/app/linux-pre-tau-prod-release.sh b/app/linux-post-tau-prod-release.sh similarity index 100% rename from app/linux-pre-tau-prod-release.sh rename to app/linux-post-tau-prod-release.sh diff --git a/app/linux-pre-copy-binaries.sh b/app/linux-pre-copy-binaries.sh deleted file mode 100755 index 5aa191ead3..0000000000 --- a/app/linux-pre-copy-binaries.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -WORKING_DIR="$(pwd)" - - -cp "${SCRIPT_DIR}"/external/build/aubio-prefix/src/aubio-build/aubio_onset "${SCRIPT_DIR}"/server/native/ - -mkdir -p "${SCRIPT_DIR}"/server/beam/tau/priv/ -cp "${SCRIPT_DIR}"/external/build/sp_midi-prefix/src/sp_midi-build/*.so "${SCRIPT_DIR}"/server/beam/tau/priv/ -cp "${SCRIPT_DIR}"/external/build/sp_link-prefix/src/sp_link-build/*.so "${SCRIPT_DIR}"/server/beam/tau/priv/ - - -# Restore working directory as it was prior to this script running... -cd "${WORKING_DIR}" diff --git a/app/linux-prebuild.sh b/app/linux-prebuild.sh index cec49767fb..58286b2388 100755 --- a/app/linux-prebuild.sh +++ b/app/linux-prebuild.sh @@ -30,16 +30,10 @@ if [ ! "$system_libs" == true ]; then "${SCRIPT_DIR}"/linux-pre-vcpkg.sh "${args[@]}" fi -# Build external dependencies and copy to build tree -echo "Building external binary dependencies..." -USE_SYSTEM_LIBS="$([ "$system_libs" == true ] && echo ON || echo OFF)" "${SCRIPT_DIR}"/external/linux_build_externals.sh - echo "Compiling native ruby extensions..." ruby "${SCRIPT_DIR}"/server/ruby/bin/compile-extensions.rb "${SCRIPT_DIR}"/linux-pre-translations.sh "${args[@]}" -"${SCRIPT_DIR}"/linux-pre-copy-binaries.sh "${args[@]}" -"${SCRIPT_DIR}"/linux-pre-tau-prod-release.sh "${args[@]}" # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/mac-build-all.sh b/app/mac-build-all.sh index 73fc4d5d9e..c977bae59c 100755 --- a/app/mac-build-all.sh +++ b/app/mac-build-all.sh @@ -4,9 +4,10 @@ set -e # Quit script on error SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" WORKING_DIR="$(pwd)" -"${SCRIPT_DIR}"/mac-prebuild.sh -"${SCRIPT_DIR}"/mac-config.sh -"${SCRIPT_DIR}"/mac-build-gui.sh +"${SCRIPT_DIR}"/mac-prebuild.sh "$@" +"${SCRIPT_DIR}"/mac-config.sh "$@" +"${SCRIPT_DIR}"/mac-build-gui.sh "$@" +"${SCRIPT_DIR}"/mac-post-tau-prod-release.sh "$@" # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/pi-pre-tau-prod-release.sh b/app/mac-post-tau-prod-release.sh similarity index 82% rename from app/pi-pre-tau-prod-release.sh rename to app/mac-post-tau-prod-release.sh index fc3d07ef31..5464acda32 100755 --- a/app/pi-pre-tau-prod-release.sh +++ b/app/mac-post-tau-prod-release.sh @@ -4,7 +4,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" WORKING_DIR="$(pwd)" # Use generic linux clean script -"${SCRIPT_DIR}"/linux-pre-tau-prod-release.sh "$@" +"${SCRIPT_DIR}"/linux-post-tau-prod-release.sh "$@" # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/mac-pre-copy-binaries.sh b/app/mac-pre-copy-binaries.sh deleted file mode 100755 index b552cba8de..0000000000 --- a/app/mac-pre-copy-binaries.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -set -e # Quit script on error -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -WORKING_DIR="$(pwd)" - -cd "${SCRIPT_DIR}" - -cp "${SCRIPT_DIR}"/external/build/aubio-prefix/src/aubio-build/aubio_onset "${SCRIPT_DIR}"/server/native/ - -mkdir -p "${SCRIPT_DIR}"/server/beam/tau/priv/ -for f in "${SCRIPT_DIR}"/external/build/sp_midi-prefix/src/sp_midi-build/*.dylib; do - cp "$f" "${SCRIPT_DIR}"/server/beam/tau/priv/$(basename "$f" .dylib).so -done - -for f in "${SCRIPT_DIR}"/external/build/sp_link-prefix/src/sp_link-build/*.dylib; do - cp "$f" "${SCRIPT_DIR}"/server/beam/tau/priv/$(basename "$f" .dylib).so -done - - -# Copy prebuilt native files to server -echo "Copying prebuilt binaries to the server..." -mkdir -p "${SCRIPT_DIR}"/server/native/ - -cp -R "${SCRIPT_DIR}"/../prebuilt/macos/x64/* "${SCRIPT_DIR}"/server/native/ - -cd "${SCRIPT_DIR}"/server/native/ -ln -s supercollider/scsynth scsynth -mv supercollider/extra-plugins/* supercollider/plugins/ -rm -rf supercollider/extra-plugins - -# Restore working directory as it was prior to this script running... -cd "${WORKING_DIR}" diff --git a/app/mac-prebuild.sh b/app/mac-prebuild.sh index 46e4c2019e..9ed6fbf06a 100755 --- a/app/mac-prebuild.sh +++ b/app/mac-prebuild.sh @@ -19,14 +19,10 @@ cd "${SCRIPT_DIR}" "${SCRIPT_DIR}"/mac-pre-vcpkg.sh "$@" -"${SCRIPT_DIR}"/external/mac_build_externals.sh - echo "Compiling native ruby extensions..." "$RUBY" "${SCRIPT_DIR}"/server/ruby/bin/compile-extensions.rb "${SCRIPT_DIR}"/mac-pre-translations.sh -"${SCRIPT_DIR}"/mac-pre-copy-binaries.sh -"${SCRIPT_DIR}"/mac-pre-tau-prod-release.sh # Restore working directory as it was prior to this script running... cd "${WORKING_DIR}" diff --git a/app/mac-pre-tau-prod-release.sh b/app/pi-post-tau-prod-release.sh similarity index 100% rename from app/mac-pre-tau-prod-release.sh rename to app/pi-post-tau-prod-release.sh diff --git a/app/win-build-all.bat b/app/win-build-all.bat old mode 100644 new mode 100755 index fad67dfa33..8714526a94 --- a/app/win-build-all.bat +++ b/app/win-build-all.bat @@ -3,5 +3,6 @@ set WORKING_DIR=%CD% call win-prebuild.bat call win-config.bat call win-build-gui.bat +call win-post-tau-prod-release.bat cd %WORKING_DIR% diff --git a/app/win-build-gui.bat b/app/win-build-gui.bat old mode 100644 new mode 100755 index 45c0d3e71f..b65c53bd79 --- a/app/win-build-gui.bat +++ b/app/win-build-gui.bat @@ -1,7 +1,11 @@ -set WORKING_DIR=%CD% +set WORKING_DIR=%CD% +set CONFIG=%1 cd %~dp0 + +if /I "%CONFIG%" == "" (set CONFIG=Release) + cd build -cmake --build . --config Release +cmake --build . --config %CONFIG% cd %WORKING_DIR% diff --git a/app/win-clean.bat b/app/win-clean.bat old mode 100644 new mode 100755 index 93fbe876ce..7dfbc16e0d --- a/app/win-clean.bat +++ b/app/win-clean.bat @@ -5,9 +5,6 @@ cd %~dp0 @echo Cleaning out build dir.... rmdir build /s /q -@echo Cleaning out external\build dir.... -rmdir external\build /s /q - @echo Cleaning out BEAM distribution.... rmdir server\beam\tau\_build /s /q del server\beam\tau\priv\*.so server\beam\tau\priv\*.dylib server\beam\tau\priv\*.dll /s /q diff --git a/app/win-config.bat b/app/win-config.bat old mode 100644 new mode 100755 diff --git a/app/win-pre-tau-prod-release.bat b/app/win-post-tau-prod-release.bat old mode 100644 new mode 100755 similarity index 100% rename from app/win-pre-tau-prod-release.bat rename to app/win-post-tau-prod-release.bat diff --git a/app/win-pre-copy-binaries.bat b/app/win-pre-copy-binaries.bat deleted file mode 100644 index 7cd3f0a487..0000000000 --- a/app/win-pre-copy-binaries.bat +++ /dev/null @@ -1,18 +0,0 @@ -set WORKING_DIR=%CD% - -cd %~dp0 - -REM Copy prebuilt native files to server -@echo Copying aubio to the server... -copy external\build\aubio-prefix\src\aubio-build\Release\aubio_onset.exe server\native\ - -@echo Copying all other native files to server... -xcopy /Y /I /R /E ..\prebuilt\windows\x64\*.* server\native - -@echo Copying sp_midi dll to the erlang bin directory... -xcopy /Y /I /R /E external\build\sp_midi-prefix\src\sp_midi-build\Release\*.dll server\beam\tau\priv\ - -@echo Copying sp_link dll to the erlang bin directory... -xcopy /Y /I /R /E external\build\sp_link-prefix\src\sp_link-build\Release\*.dll server\beam\tau\priv\ - -cd %WORKING_DIR% diff --git a/app/win-pre-tau-dev-init.bat b/app/win-pre-tau-dev-init.bat old mode 100644 new mode 100755 diff --git a/app/win-pre-translations.bat b/app/win-pre-translations.bat old mode 100644 new mode 100755 diff --git a/app/win-pre-vcpkg.bat b/app/win-pre-vcpkg.bat old mode 100644 new mode 100755 diff --git a/app/win-prebuild.bat b/app/win-prebuild.bat old mode 100644 new mode 100755 index 6e5193424f..0f99c7821d --- a/app/win-prebuild.bat +++ b/app/win-prebuild.bat @@ -3,9 +3,6 @@ set WORKING_DIR=%CD% cd %~dp0 call win-pre-vcpkg.bat -call external/win_x64_build_externals.bat call win-pre-translations.bat -call win-pre-copy-binaries.bat -call win-pre-tau-prod-release.bat cd %WORKING_DIR%