Compare commits
47 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
73d66386ea | ||
|
00e0a81a22 | ||
8c4b8b5727 | |||
2d6f334f24 | |||
3d703d7bc0 | |||
a80c43f324 | |||
d0d6c04c54 | |||
1baccd90d4 | |||
|
eb104518a8 | ||
|
f02cec5fac | ||
|
48551961e8 | ||
|
694dcbf44a | ||
|
7eacaa9d17 | ||
|
4b53d66c3c | ||
|
9a8b3d6e82 | ||
|
2d541afbd0 | ||
|
25bf2e6c5c | ||
|
6ee2c6b1fb | ||
|
b32870dc56 | ||
|
19d15fc42c | ||
|
20ae110c54 | ||
|
7d94fd59ea | ||
|
9960c756c4 | ||
|
7451213d78 | ||
|
b5f8fe0ed2 | ||
|
7f7ccf3955 | ||
|
277b7f1275 | ||
|
4b83967b7a | ||
|
8929cc489d | ||
|
99bb5dbcfe | ||
|
6cffda4b1c | ||
|
b5d4d1a35c | ||
|
fb957862bd | ||
|
c0884c043e | ||
|
b5261109fd | ||
|
82e8632437 | ||
|
8f93f666c0 | ||
|
3aaac77312 | ||
|
23fcdbcc2b | ||
|
b12e143e88 | ||
|
110cb3033c | ||
|
b1b730b1a2 | ||
|
fb45b8f925 | ||
|
15bdd268a6 | ||
|
c6456d4422 | ||
5d8e18d7c7 | |||
|
e6234cb8b5 |
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -15,6 +15,9 @@ pipeline {
|
||||
booleanParam(name: "RELEASE",
|
||||
description: "Build a release from current commit.",
|
||||
defaultValue: false)
|
||||
booleanParam(name: "DEBUGINFO",
|
||||
description: "Build debug binary from current commit.",
|
||||
defaultValue: false)
|
||||
}
|
||||
stages {
|
||||
stage("Setup workspace") {
|
||||
@ -57,7 +60,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh "./jenkins/scripts/cross_compile.sh"
|
||||
sh "DEBUGINFO=${params.DEBUGINFO} ./jenkins/scripts/cross_compile.sh"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ nice -n 5 chrt -b 0 \
|
||||
-DZLIB_LIBRARY=/home/jenkins/zlib_cross/lib/libz.a \
|
||||
-DZLIB_INCLUDE_DIR=/home/jenkins/zlib_cross/include \
|
||||
\
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE=$BUILDPROFILE \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} \
|
||||
-DTD_ENABLE_JNI=ON \
|
||||
${TD_SRC_DIR}
|
||||
|
@ -1,14 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# ====== Variables
|
||||
export TD_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/dependencies/tdlib
|
||||
export TD_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/dependencies/tdlight
|
||||
export TD_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-td
|
||||
export TDNATIVES_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-tdlib
|
||||
export TDNATIVES_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-tdlight
|
||||
export TDNATIVES_CPP_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/src/tdlib-cpp
|
||||
export TDNATIVES_DOCS_BIN_DIR=$TRAVIS_BUILD_DIR/tdlight-java/bin-docs
|
||||
export TD_BUILD_DIR=$TRAVIS_BUILD_DIR/tdlight-java/build-td
|
||||
export TD_CROSS_BIN_DIR=$TD_SRC_DIR/bin-td-cross
|
||||
export TDNATIVES_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/tdlight-java/build-tdlib
|
||||
export TDNATIVES_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/tdlight-java/build-tdlight
|
||||
export JAVA_SRC_DIR=$TRAVIS_BUILD_DIR/tdlight-java/src/tdlib-java
|
||||
export TDLIB_SERIALIZER_DIR=$TRAVIS_BUILD_DIR/tdlight-java/dependencies/tdlib-serializer
|
||||
export MAVEN_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/javax.crypto=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED"
|
||||
@ -19,6 +19,11 @@ export TRAVIS_OS_NAME_STANDARD
|
||||
export TRAVIS_OS_NAME_SHORT="win"
|
||||
export SRC_TDJNI_LIBNAME="libtdjni.dll"
|
||||
export DEST_TDJNI_LIBNAME="tdjni.dll"
|
||||
if [[ "$DEBUGINFO" == "true" ]]; then
|
||||
export BUILDPROFILE="Debug"
|
||||
else
|
||||
export BUILDPROFILE="Release"
|
||||
fi
|
||||
|
||||
# ====== OS Variables
|
||||
TRAVIS_CPU_ARCH_JAVA="$(tr '[:upper:]' '[:lower:]'<<<"${TRAVIS_CPU_ARCH}")"
|
||||
@ -52,6 +57,7 @@ echo "TRAVIS_OS_NAME_SHORT=${TRAVIS_OS_NAME_SHORT}"
|
||||
echo "SRC_TDJNI_LIBNAME=${SRC_TDJNI_LIBNAME}"
|
||||
echo "DEST_TDJNI_LIBNAME=${DEST_TDJNI_LIBNAME}"
|
||||
echo "TDLIB_RESOURCES_OUTPUT_DIR=${TDLIB_RESOURCES_OUTPUT_DIR}"
|
||||
echo "BUILDPROFILE=${BUILDPROFILE}"
|
||||
echo "CURRENT DIRECTORY* ($(pwd)):"
|
||||
ls -alch "$(pwd)"
|
||||
echo "WORK DIRECTORY CONTENT* (${TRAVIS_BUILD_DIR}):"
|
||||
|
6
pom.xml
6
pom.xml
@ -1,9 +1,9 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>it.tdlight</groupId>
|
||||
<artifactId>tdlib-natives-windows-amd64</artifactId>
|
||||
<artifactId>tdlight-natives-windows-amd64</artifactId>
|
||||
<version>2.0.2-SNAPSHOT</version>
|
||||
<name>TDLib Natives for Windows (amd64)</name>
|
||||
<name>TDLight Natives for Windows (amd64)</name>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
@ -25,7 +25,7 @@
|
||||
<connection>scm:git:git@ssh.git.ignuranza.net:tdlight-team/tdlight-java-natives-windows-amd64.git</connection>
|
||||
<url>scm:git:git@github.com:user/project.git</url>
|
||||
<developerConnection>scm:git:git@ssh.git.ignuranza.net:tdlight-team/tdlight-java-natives-windows-amd64.git</developerConnection>
|
||||
<tag>td-master</tag>
|
||||
<tag>master</tag>
|
||||
</scm>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 20423357ac5c2487998ca1634c97def0bda80a75
|
||||
Subproject commit 6f1cd83927abfc69d0249542b2725f521dbf1189
|
Loading…
Reference in New Issue
Block a user