Update deploy_master.sh and linux.sh
This commit is contained in:
parent
9c3a0237a7
commit
fa5d81ece9
@ -65,11 +65,11 @@ cd "tdlight-java-natives-$TRAVIS_OS_NAME_STANDARD-$TRAVIS_CPU_ARCH_STANDARD"
|
|||||||
SRC_LIBNAME=""
|
SRC_LIBNAME=""
|
||||||
LIBNAME=""
|
LIBNAME=""
|
||||||
if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then
|
if [ "$TRAVIS_OS_NAME_STANDARD" = "windows" ]; then
|
||||||
SRC_LIBNAME="libtdjni.dll"
|
export SRC_LIBNAME="libtdjni.dll"
|
||||||
LIBNAME="tdjni.dll"
|
export LIBNAME="tdjni.dll"
|
||||||
else
|
else
|
||||||
SRC_LIBNAME="libtdjni.so"
|
export SRC_LIBNAME="libtdjni.so"
|
||||||
LIBNAME="tdjni.so"
|
export LIBNAME="tdjni.so"
|
||||||
fi
|
fi
|
||||||
mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_SHORT/$TRAVIS_CPU_ARCH_STANDARD"
|
mkdir -p "src/main/resources/libs/$TRAVIS_OS_NAME_SHORT/$TRAVIS_CPU_ARCH_STANDARD"
|
||||||
mv "$TRAVIS_BUILD_DIR/out/$SRC_LIBNAME" "src/main/resources/libs/$TRAVIS_OS_NAME_SHORT/$TRAVIS_CPU_ARCH_STANDARD/$LIBNAME"
|
mv "$TRAVIS_BUILD_DIR/out/$SRC_LIBNAME" "src/main/resources/libs/$TRAVIS_OS_NAME_SHORT/$TRAVIS_CPU_ARCH_STANDARD/$LIBNAME"
|
||||||
|
@ -38,12 +38,12 @@ echo "JAVA_INCLUDE_PATH=${JAVA_INCLUDE_PATH}"
|
|||||||
# ====== Build Td
|
# ====== Build Td
|
||||||
cd $TD_BUILD_DIR
|
cd $TD_BUILD_DIR
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} ${TD_SRC_DIR}
|
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} ${TD_SRC_DIR}
|
||||||
cmake --build $TD_BUILD_DIR --target install
|
cmake --build $TD_BUILD_DIR --target install -- -n4
|
||||||
|
|
||||||
# ====== Build TdNatives
|
# ====== Build TdNatives
|
||||||
cd $TDNATIVES_CPP_BUILD_DIR
|
cd $TDNATIVES_CPP_BUILD_DIR
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_BIN_DIR=${TD_BIN_DIR} -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
|
cmake -DCMAKE_BUILD_TYPE=Release -DTD_BIN_DIR=${TD_BIN_DIR} -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
|
||||||
cmake --build $TDNATIVES_CPP_BUILD_DIR --target install
|
cmake --build $TDNATIVES_CPP_BUILD_DIR --target install -- -n4
|
||||||
|
|
||||||
mv $TDNATIVES_BIN_DIR/libtdjni.so $TRAVIS_BUILD_DIR/out/libtdjni.so
|
mv $TDNATIVES_BIN_DIR/libtdjni.so $TRAVIS_BUILD_DIR/out/libtdjni.so
|
||||||
mv $TDNATIVES_DOCS_BIN_DIR $TRAVIS_BUILD_DIR/out/docs
|
mv $TDNATIVES_DOCS_BIN_DIR $TRAVIS_BUILD_DIR/out/docs
|
||||||
|
Loading…
Reference in New Issue
Block a user