Minor build tweaks

This commit is contained in:
Joseph Donofry 2019-05-22 22:06:45 -04:00
parent 2ff115577b
commit e52f29a754
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB
3 changed files with 11 additions and 3 deletions

View file

@ -59,6 +59,7 @@ build_script:
-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
-DUSE_BUNDLED_BOOST=OFF -DUSE_BUNDLED_BOOST=OFF
-DUSE_BUNDLED_JSON=OFF -DUSE_BUNDLED_JSON=OFF
-DMTX_STATIC=ON
- cmake --build .deps --config Release - cmake --build .deps --config Release
# Build nheko # Build nheko
@ -104,8 +105,8 @@ after_build:
# Copy installer data # Copy installer data
- copy %BUILD%\resources\nheko.ico installer\config - copy %BUILD%\resources\nheko.ico installer\config
- copy %BUILD%\resources\nheko.png installer\config - copy %BUILD%\resources\nheko.png installer\config
- copy %BUILD%\LICENSE installer\packages\com.mujx.nheko\meta\license.txt - copy %BUILD%\COPYING installer\packages\com.mujx.nheko\meta\license.txt
- copy %BUILD%\LICENSE installer\packages\com.mujx.nheko.cleanup\meta\license.txt - copy %BUILD%\COPYING installer\packages\com.mujx.nheko.cleanup\meta\license.txt
- copy %BUILD%\deploy\installer\config.xml installer\config - copy %BUILD%\deploy\installer\config.xml installer\config
- copy %BUILD%\deploy\installer\controlscript.qs installer\config - copy %BUILD%\deploy\installer\controlscript.qs installer\config
- copy %BUILD%\deploy\installer\uninstall.qs installer\packages\com.mujx.nheko\data - copy %BUILD%\deploy\installer\uninstall.qs installer\packages\com.mujx.nheko\data

1
deps/CMakeLists.txt vendored
View file

@ -30,6 +30,7 @@ option(USE_BUNDLED_LMDBXX "Use the bundled version of lmdbxx." ${USE_BUNDLED})
option(USE_BUNDLED_MATRIX_CLIENT "Use the bundled version of mtxclient." option(USE_BUNDLED_MATRIX_CLIENT "Use the bundled version of mtxclient."
${USE_BUNDLED}) ${USE_BUNDLED})
option(USE_BUNDLED_JSON "Use the bundled version of nlohmann json." ${USE_BUNDLED}) option(USE_BUNDLED_JSON "Use the bundled version of nlohmann json." ${USE_BUNDLED})
option(MTX_STATIC "Compile / link bundled mtx client statically" OFF)
if(USE_BUNDLED_BOOST) if(USE_BUNDLED_BOOST)
# bundled boost is 1.68, which requires CMake 3.12 or greater. # bundled boost is 1.68, which requires CMake 3.12 or greater.

View file

@ -13,6 +13,12 @@ endif()
# instead of the bundled version of Boost, like we wanted. # instead of the bundled version of Boost, like we wanted.
set(BOOST_BUNDLE_ROOT "-DBOOST_ROOT=${DEPS_BUILD_DIR}/boost") set(BOOST_BUNDLE_ROOT "-DBOOST_ROOT=${DEPS_BUILD_DIR}/boost")
set (MTX_SHARED ON)
if (MTX_STATIC)
set (MTX_SHARED OFF)
endif()
ExternalProject_Add( ExternalProject_Add(
MatrixClient MatrixClient
@ -28,7 +34,7 @@ ExternalProject_Add(
-DBUILD_LIB_EXAMPLES=OFF -DBUILD_LIB_EXAMPLES=OFF
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
${BOOST_BUNDLE_ROOT} ${BOOST_BUNDLE_ROOT}
-DBUILD_SHARED_LIBS=${MTX_STATIC} -DBUILD_SHARED_LIBS=${MTX_SHARED}
${PLATFORM_FLAGS} ${PLATFORM_FLAGS}
${DEPS_BUILD_DIR}/mtxclient ${DEPS_BUILD_DIR}/mtxclient
BUILD_COMMAND BUILD_COMMAND