summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-08-08 01:20:51 +0200
committerAndreas Fankhauser hiddenalpha.ch2024-08-08 01:20:51 +0200
commit2576d4eac458ac3c9a8bf8fbfd8f003c5335d982 (patch)
tree94f1be896e5601f4ba6aaaa339419e5c09ca27cd
parente08e57603ceeafe84f6bb9d99cfbdab84c097f4b (diff)
downloadUnspecifiedGarbage-2576d4eac458ac3c9a8bf8fbfd8f003c5335d982.zip
UnspecifiedGarbage-2576d4eac458ac3c9a8bf8fbfd8f003c5335d982.tar.gz
Update jssc build notes.
-rw-r--r--doc/note/jni/jssc.txt2
-rw-r--r--doc/note/maven-pom/base.xml1
-rw-r--r--doc/note/qemu/build-jssc.txt41
-rw-r--r--doc/note/setup/make-jssc.txt3
4 files changed, 6 insertions, 41 deletions
diff --git a/doc/note/jni/jssc.txt b/doc/note/jni/jssc.txt
index f488230..59117f1 100644
--- a/doc/note/jni/jssc.txt
+++ b/doc/note/jni/jssc.txt
@@ -2,6 +2,8 @@
Some personal notes about jssc
==============================
+[see also](https://github.com/hiddenalpha/jssc/tree/master/contrib/hiddenalpha-buildEnv-one)
+
# Try To build it
HINT: Only works for paisa fork most probably due to company firewall.
diff --git a/doc/note/maven-pom/base.xml b/doc/note/maven-pom/base.xml
index 7218e99..b5ae7e2 100644
--- a/doc/note/maven-pom/base.xml
+++ b/doc/note/maven-pom/base.xml
@@ -21,6 +21,7 @@
<!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> -->
<!-- <maven.compiler.source>8</maven.compiler.source> -->
<!-- <maven.compiler.target>8</maven.compiler.target> -->
+ <!-- <maven.compiler.release>8</maven.compiler.release> -->
<!-- </properties> -->
<!-- <dependencies> -->
diff --git a/doc/note/qemu/build-jssc.txt b/doc/note/qemu/build-jssc.txt
deleted file mode 100644
index 3acdf6e..0000000
--- a/doc/note/qemu/build-jssc.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-
-This is only another copy. Likely we should use the one at
-https://github.com/hiddenalpha/jssc/blob/master/contrib/hiddenalpha-buildEnv-one
-.
-
-true `# Configure for debian 9` \
- && CXX="g++" \
- && CFLAGS="-fPIC -Wall -pedantic -Werror \
- -Wno-error=long-long \
- -Wno-error=sign-compare \
- -Wno-error=variadic-macros \
- -Wno-long-long" \
- && targets="linux_64" \
- && SUDO= \
- && true
-
-true `# Setup` \
- && $SUDO apt install -y --no-install-recommends \
- git openjdk-8-jdk-headless g++ maven \
- && true
-
-true `# Make` \
- && cat contrib/hiddenalpha-buildEnv-one/res/pom.patch | git apply \
- && mvn clean \
- && mvn -PnoCmake compile \
- && printf '%s "%s"\n' "#define JSSC_VERSION" "$(git describe --tags|sed 's,^v,,')" \
- > src/main/cpp/version.h \
- && mkdir -p src/main/resources-precompiled/natives/linux_64 \
- && g++ $CFLAGS -shared \
- -o src/main/resources-precompiled/natives/linux_64/libjssc.so \
- src/main/cpp/_nix_based/jssc.cpp \
- -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include \
- -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux \
- -Isrc/main/cpp \
- && for T in ${targets:?}; do
- && mvn -PnoCmake -PnoJavah -PnativeJar -P"${T:?}" package \
- ;done \
- && mvn -PnoCmake -PnoJavah -PnoNatives -PwithTestClasspath verify \
- && true
-
-
diff --git a/doc/note/setup/make-jssc.txt b/doc/note/setup/make-jssc.txt
new file mode 100644
index 0000000..6435edd
--- /dev/null
+++ b/doc/note/setup/make-jssc.txt
@@ -0,0 +1,3 @@
+
+[See](https://github.com/hiddenalpha/jssc/blob/master/contrib/hiddenalpha-buildEnv-one).
+