Compare commits

..

47 Commits

Author SHA1 Message Date
Andrea Cavalli
73d66386ea Update tdlight-java 2020-10-09 21:01:28 +02:00
Andrea Cavalli
00e0a81a22 Static compilation 2020-10-09 21:00:14 +02:00
8c4b8b5727 Update 'pom.xml' 2020-10-09 10:27:42 +02:00
2d6f334f24 Update 'pom.xml' 2020-10-09 10:26:14 +02:00
3d703d7bc0 Update 'jenkins/scripts/setup_variables.sh' 2020-10-09 10:25:42 +02:00
a80c43f324 Update 'jenkins/scripts/cross_compile.sh' 2020-10-09 10:24:50 +02:00
d0d6c04c54 Update 'jenkins/scripts/setup_variables.sh' 2020-10-09 10:23:28 +02:00
1baccd90d4 Update 'Jenkinsfile' 2020-10-09 10:21:03 +02:00
Andrea Cavalli
eb104518a8 Update cross_compile.sh 2020-10-09 03:28:53 +02:00
Andrea Cavalli
f02cec5fac Update dockerfile and cross_compile.sh 2020-10-09 02:29:37 +02:00
Andrea Cavalli
48551961e8 Update cross_compile.sh 2020-10-08 20:24:45 +02:00
Andrea Cavalli
694dcbf44a Add missing libraries 2020-10-08 19:43:03 +02:00
Andrea Cavalli
7eacaa9d17 Update pom.xml 2020-10-08 12:25:36 +02:00
Andrea Cavalli
4b53d66c3c Update cross_compile.sh 2020-10-08 04:34:13 +02:00
Andrea Cavalli
9a8b3d6e82 Update dockerfile and cross_compile.sh 2020-10-08 03:44:13 +02:00
Andrea Cavalli
2d541afbd0 Update dockerfile 2020-10-08 02:46:38 +02:00
Andrea Cavalli
25bf2e6c5c Fix permissions 2020-10-08 02:25:28 +02:00
Andrea Cavalli
6ee2c6b1fb Reduce load 2020-10-08 01:49:40 +02:00
Andrea Cavalli
b32870dc56 Update cross_compile.sh 2020-10-08 01:34:48 +02:00
Andrea Cavalli
19d15fc42c Update dockerfile 2020-10-08 01:29:22 +02:00
Andrea Cavalli
20ae110c54 Update dockerfile 2020-10-08 01:27:59 +02:00
Andrea Cavalli
7d94fd59ea Update .gitmodules 2020-10-08 01:18:39 +02:00
Andrea Cavalli
9960c756c4 Update Jenkinsfile
Conflicts:
	Jenkinsfile
2020-10-08 01:07:19 +02:00
Andrea Cavalli
7451213d78 Update Jenkinsfile, dockerfile, and 6 more files... 2020-10-08 01:02:27 +02:00
Andrea Cavalli
b5f8fe0ed2 Update seedjob.groovy 2020-10-07 20:27:44 +02:00
Andrea Cavalli
7f7ccf3955 Update tdlight-java 2020-10-07 20:27:19 +02:00
Andrea Cavalli
277b7f1275 Update Jenkinsfile, deliver.sh, and 2 more files... 2020-10-03 12:00:11 +02:00
Andrea Cavalli
4b83967b7a Update .gitmodules and tdlight-java 2020-10-03 11:59:01 +02:00
Andrea Cavalli
8929cc489d Updated native library 2020-10-02 17:58:13 +00:00
Andrea Cavalli
99bb5dbcfe Updated native library 2020-09-08 15:08:02 +00:00
Andrea Cavalli
6cffda4b1c Updated native library 2020-09-05 16:01:51 +00:00
Andrea Cavalli
b5d4d1a35c Updated native library 2020-09-01 16:16:50 +00:00
Andrea Cavalli
fb957862bd Updated native library 2020-08-31 18:22:47 +00:00
Andrea Cavalli
c0884c043e Updated native library 2020-08-31 16:14:23 +00:00
Andrea Cavalli
b5261109fd Updated native library 2020-08-31 14:01:58 +00:00
Andrea Cavalli
82e8632437 Updated native library 2020-08-31 10:22:25 +00:00
Andrea Cavalli
8f93f666c0 Updated native library 2020-08-28 18:21:51 +00:00
Andrea Cavalli
3aaac77312 Updated native library 2020-08-23 20:17:55 +00:00
Andrea Cavalli
23fcdbcc2b Updated native library 2020-08-23 17:16:25 +00:00
Andrea Cavalli
b12e143e88 Updated native library 2020-08-23 12:54:02 +00:00
Andrea Cavalli
110cb3033c Update pom.xml 2020-08-23 13:34:20 +02:00
Andrea Cavalli
b1b730b1a2 Updated native library 2020-08-20 23:27:11 +02:00
Andrea Cavalli
fb45b8f925 Updated native library 2020-08-20 23:16:24 +02:00
Andrea Cavalli
15bdd268a6 Updated native library 2020-08-20 20:27:56 +00:00
Andrea Cavalli
c6456d4422 Update pom.xml 2020-08-20 22:22:46 +02:00
5d8e18d7c7 Update 'pom.xml' 2020-08-20 22:17:04 +02:00
Andrea Cavalli
e6234cb8b5 Updated native library 2020-08-20 19:44:04 +00:00
5 changed files with 18 additions and 9 deletions

5
Jenkinsfile vendored
View File

@ -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"
}
}

View File

@ -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}

View File

@ -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}):"

View File

@ -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