From 965de64877335733d849ca7c602b856cb8ef7c62 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 9 Oct 2020 21:07:02 +0200 Subject: [PATCH] Static compilation --- jenkins/scripts/compile.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jenkins/scripts/compile.sh b/jenkins/scripts/compile.sh index 04353a5..8722bbc 100755 --- a/jenkins/scripts/compile.sh +++ b/jenkins/scripts/compile.sh @@ -8,7 +8,7 @@ bash ./jenkins/scripts/setup_workspace.sh # ====== Build Td # Prepare build cd $TD_BUILD_DIR -nice -n 5 chrt -b 0 cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} ${TD_SRC_DIR} +nice -n 5 chrt -b 0 cmake -DCMAKE_BUILD_TYPE=$BUILDPROFILE -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DOPENSSL_USE_STATIC_LIBS=True ${TD_SRC_DIR} # Split sources nice -n 5 chrt -b 0 cmake --build $TD_BUILD_DIR --target prepare_cross_compiling -- -j${TRAVIS_CPU_CORES} @@ -17,15 +17,15 @@ nice -n 5 chrt -b 0 php SplitSource.php # Build cd $TD_BUILD_DIR -nice -n 5 chrt -b 0 cmake --build $TD_BUILD_DIR --target install --config Release -- -j${TRAVIS_CPU_CORES} +nice -n 5 chrt -b 0 cmake --build $TD_BUILD_DIR --target install --config $BUILDPROFILE -- -j${TRAVIS_CPU_CORES} cd $TD_SRC_DIR nice -n 5 chrt -b 0 php SplitSource.php --undo # ====== Build TdNatives cd $TDNATIVES_CPP_BUILD_DIR -nice -n 5 chrt -b 0 cmake -DCMAKE_BUILD_TYPE=Release -DTD_SRC_DIR=${TD_SRC_DIR} -DTD_GENERATED_BINARIES_DIR=${TD_BIN_DIR}/bin -DTDNATIVES_BIN_DIR=${TDNATIVES_BIN_DIR} -DTDNATIVES_DOCS_BIN_DIR=${TDNATIVES_DOCS_BIN_DIR} -DTd_DIR=${TD_BIN_DIR}/lib/cmake/Td -DJAVA_SRC_DIR=${JAVA_SRC_DIR} -DTDNATIVES_CPP_SRC_DIR:PATH=$TDNATIVES_CPP_SRC_DIR $TDNATIVES_CPP_SRC_DIR -nice -n 5 chrt -b 0 cmake --build $TDNATIVES_CPP_BUILD_DIR --target install --config Release -- -j${TRAVIS_CPU_CORES} +nice -n 5 chrt -b 0 cmake -DCMAKE_BUILD_TYPE=$BUILDPROFILE -DTD_SRC_DIR=${TD_SRC_DIR} -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DTD_GENERATED_BINARIES_DIR=${TD_BIN_DIR}/bin -DTDNATIVES_BIN_DIR=${TDNATIVES_BIN_DIR} -DTDNATIVES_DOCS_BIN_DIR=${TDNATIVES_DOCS_BIN_DIR} -DTd_DIR=${TD_BIN_DIR}/lib/cmake/Td -DJAVA_SRC_DIR=${JAVA_SRC_DIR} -DTDNATIVES_CPP_SRC_DIR:PATH=$TDNATIVES_CPP_SRC_DIR -DOPENSSL_USE_STATIC_LIBS=True $TDNATIVES_CPP_SRC_DIR +nice -n 5 chrt -b 0 cmake --build $TDNATIVES_CPP_BUILD_DIR --target install --config $BUILDPROFILE -- -j${TRAVIS_CPU_CORES} # ====== Print results stats echo "CCACHE statistics:"