summaryrefslogtreecommitdiffstats
path: root/fxpackager-so.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fxpackager-so.xml')
-rw-r--r--fxpackager-so.xml53
1 files changed, 53 insertions, 0 deletions
diff --git a/fxpackager-so.xml b/fxpackager-so.xml
new file mode 100644
index 0000000..c2669cc
--- /dev/null
+++ b/fxpackager-so.xml
@@ -0,0 +1,53 @@
+<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>
+ <name>libpackager</name>
+ <packaging>so</packaging>
+ <artifactId>libpackager</artifactId>
+ <groupId>org.openjfx</groupId>
+ <version>@RELEASE_VERSION@</version>
+ <properties>
+ <commonCompilerOptions>-fstack-protector -fPIC -std=gnu++98 -ffunction-sections -fdata-sections -DJAVAARCH="amd64"</commonCompilerOptions>
+ <native.source.dir>../src/main/native/library/common/</native.source.dir>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>native-maven-plugin</artifactId>
+ <extensions>true</extensions>
+ <configuration>
+ <compilerStartOptions>
+ <compilerStartOption>${commonCompilerOptions}</compilerStartOption>
+ </compilerStartOptions>
+ <sources>
+ <source>
+ <directory>${native.source.dir}</directory>
+ <includes>
+ <include>**/*.cpp</include>
+ </includes>
+ </source>
+ <source>
+ <directory>${JAVA_HOME}/include</directory>
+ </source>
+ <source>
+ <directory>${JAVA_HOME}/include/linux</directory>
+ </source>
+ </sources>
+ <linkerStartOptions>
+ <linkerStartOption>-lpthread</linkerStartOption>
+ <linkerStartOption>-shared</linkerStartOption>
+ <linkerStartOption>-static-libgcc</linkerStartOption>
+ <linkerStartOption>-lstdc++</linkerStartOption>
+ <linkerStartOption>-static-libstdc++</linkerStartOption>
+ <linkerStartOption>-Wl,--gc-sections</linkerStartOption>
+ <linkerStartOption>-z</linkerStartOption>
+ <linkerStartOption>relro</linkerStartOption>
+ <linkerStartOption>-ldl</linkerStartOption>
+ </linkerStartOptions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>