1
0

Static compilation

This commit is contained in:
Andrea Cavalli 2020-10-09 21:08:31 +02:00
parent 256a7207b4
commit 8d22301678

View File

@ -8,7 +8,7 @@ bash ./jenkins/scripts/setup_workspace.sh
# ====== Build Td # ====== Build Td
# Prepare build # Prepare build
cd $TD_BUILD_DIR 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} -DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=OFF -DTD_SKIP_TG_CLI=ON ${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 -DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=OFF -DTD_SKIP_TG_CLI=ON ${TD_SRC_DIR}
# Split sources # Split sources
nice -n 5 chrt -b 0 cmake --build $TD_BUILD_DIR --target prepare_cross_compiling -- -j${TRAVIS_CPU_CORES} nice -n 5 chrt -b 0 cmake --build $TD_BUILD_DIR --target prepare_cross_compiling -- -j${TRAVIS_CPU_CORES}
@ -17,7 +17,7 @@ nice -n 5 chrt -b 0 php SplitSource.php
# Build # Build
cd $TD_BUILD_DIR 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}
# Undo split-sources # Undo split-sources
cd $TD_SRC_DIR cd $TD_SRC_DIR
@ -25,8 +25,8 @@ nice -n 5 chrt -b 0 php SplitSource.php --undo
# ====== Build TdNatives # ====== Build TdNatives
cd $TDNATIVES_CPP_BUILD_DIR 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 -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 Release -- -j${TRAVIS_CPU_CORES} nice -n 5 chrt -b 0 cmake --build $TDNATIVES_CPP_BUILD_DIR --target install --config $BUILDPROFILE -- -j${TRAVIS_CPU_CORES}
# ====== Print results stats # ====== Print results stats
echo "CCACHE statistics:" echo "CCACHE statistics:"