summaryrefslogtreecommitdiffstats
path: root/make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-04-07 05:15:23 +0200
committerSven Gothel <[email protected]>2019-04-07 05:15:23 +0200
commit12047cae51b5a594b38c9e162f135352452c46fd (patch)
treee14a8fdc091219f66d6fa1e914e1c07c228dae38 /make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml
parent302599570c04bae0d96e3b20981fab1ffcaf61ae (diff)
Bug 1190: Updating crosstools and enabling aarch64 + armv6hf 'ontarget'
Default is to crosscompile w/o testing, i.e. property 'isCrosscompilation' is set to 'true'. 'ontarget' includes testing, no crosscompilation. Updated crosstools links to new build of jogamp-scripting commit e6692024687685d3af725555d9bb5490d85ecc8d
Diffstat (limited to 'make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml')
-rw-r--r--make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml64
1 files changed, 64 insertions, 0 deletions
diff --git a/make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml b/make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml
new file mode 100644
index 0000000..03b983c
--- /dev/null
+++ b/make/lib/gluegen-cpptasks-linux-armv6hf-ontarget.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ This is an example of how to add custom compiler/linker
+ arguments for a crosscompiler.
+
+ You can use such files with setting the property 'gluegen-cpptasks.file', ie:
+
+ -Dgluegen-cpptasks.file=`pwd`/lib/gluegen-cpptasks-linux-32bit.xml
+
+ In case you want to compile for 32bit on a 64bit machine,
+ you might also need to set the 'os.arch' to 'x86'.
+ Example: gluegen/make/make.gluegen.all.linux-x86.sh
+ -->
+
+<project name="GlueGen-cpptasks-linux-armv6hf" basedir="." >
+
+<!-- Set OS and ARCH for crosscompilation compiler configuration -->
+<target name="gluegen.cpptasks.detect.os.custom">
+ <property name="gluegen.cpptasks.detected.os" value="true" />
+ <property name="isUnix" value="true" />
+ <property name="isLinux" value="true" />
+ <property name="isLinuxARMv6" value="true" />
+ <property name="isX11" value="true" />
+ <property name="jvmDataModel.arg" value="-Djnlp.no.jvm.data.model.set=true" />
+ <property name="isAbiEabiGnuArmhf" value="true" />
+ <echo message="gluegen.cpptasks.detect.os.custom: GLUEGEN_CPPTASKS_FILE 'gluegen-cpptasks-linux-armv6hf' done"/>
+</target>
+
+<import file="${gluegen.root.abs-path}/make/gluegen-cpptasks-base.xml" optional="false" />
+
+<target name="gluegen.cpptasks.configure.compiler" depends="setup.java.home.dir">
+ <echo message="Custom forced compiler Linux ARMv6t hard float" />
+
+ <compiler id="compiler.cfg.linux.armv6" name="gcc">
+ <defineset>
+ <define name="__unix__"/>
+ <define name="__X11__" if="isX11"/>
+ <define name="_DEBUG" if="c.compiler.use-debug"/>
+ <define name="DEBUG" if="c.compiler.use-debug"/>
+ <define name="NDEBUG" unless="c.compiler.use-debug"/>
+ </defineset>
+ <compilerarg value="-fpic" />
+ <compilerarg value="-march=armv6" />
+ <compilerarg value="-marm" />
+ <compilerarg value="-mfloat-abi=hard" />
+ <compilerarg value="-include"/>
+ <compilerarg value="${gluegen.root.abs-path}/make/stub_includes/platform/glibc-compat-symbols.h" />
+ </compiler>
+
+ <linker id="linker.cfg.linux.armv6" name="gcc">
+ <linkerarg value="-fpic" />
+ <linkerarg value="-march=armv6" />
+ <linkerarg value="-marm" />
+ <linkerarg value="-mfloat-abi=hard" />
+ <linkerarg value="-nostdlib" />
+ <linkerarg value="-Bdynamic" />
+ <linkerarg value="-static-libgcc" if="isGCC"/>
+ <linkerarg value="-static-libstdc++" if="isGCC"/>
+ </linker>
+
+</target>
+
+</project>