From 7e9c24b75ad328ffed2b2a32e4c352f99bfdde37 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 19 Aug 2020 22:20:17 +0200 Subject: [PATCH] Update build.sh --- travis/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/travis/build.sh b/travis/build.sh index 3ab54df..5fa605b 100755 --- a/travis/build.sh +++ b/travis/build.sh @@ -12,6 +12,7 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cmake -A x64 -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$VCPKG_DIR/scripts/buildsystems/vcpkg.cmake ${TD_SRC_DIR} fi +cmake --build $TD_BUILD_DIR --target prepare_cross_compiling # Split sources cd $TD_SRC_DIR @@ -20,8 +21,12 @@ php SplitSource.php # Build cd $TD_BUILD_DIR if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - cmake --build $TD_BUILD_DIR --target install -- -j2 + cmake --build $TD_BUILD_DIR --target tdjson -- -j2 + cmake --build $TD_BUILD_DIR --target tdjson_static -- -j2 + cmake --build $TD_BUILD_DIR --target install --config Release -- -j2 elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then + cmake --build $TD_BUILD_DIR --target tdjson + cmake --build $TD_BUILD_DIR --target tdjson_static cmake --build $TD_BUILD_DIR --target install --config Release fi