diff options
41 files changed, 4310 insertions, 0 deletions
diff --git a/0000-Fix-wait-call-in-PosixPlatform.patch b/0000-Fix-wait-call-in-PosixPlatform.patch new file mode 100644 index 0000000..f841095 --- /dev/null +++ b/0000-Fix-wait-call-in-PosixPlatform.patch @@ -0,0 +1,22 @@ +--- rt-8u202-b02/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp 2018-10-29 16:26:04.000000000 +0100 ++++ rt-8u202-b02-patched/modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp 2018-11-27 15:34:52.170181958 +0100 +@@ -43,7 +43,6 @@ + #include <sys/types.h> + #include <sys/wait.h> + #include <unistd.h> +-#include <sys/sysctl.h> + #include <iostream> + #include <dlfcn.h> + #include <signal.h> +@@ -232,10 +231,7 @@ + pid_t wpid = 0; + + //TODO Use waitpid instead of wait +-#ifdef LINUX +- wait(&status); +-#endif +-#ifdef MAC ++#if defined(LINUX) || defined(MAC) + wpid = wait(&status); + #endif + diff --git a/0003-fix-cast-between-incompatible-function-types.patch b/0003-fix-cast-between-incompatible-function-types.patch new file mode 100644 index 0000000..011e952 --- /dev/null +++ b/0003-fix-cast-between-incompatible-function-types.patch @@ -0,0 +1,77 @@ +From 36b952bdcdc301a600009308bff90440b6ceab5b Mon Sep 17 00:00:00 2001 +From: Mat Booth <mat.booth@redhat.com> +Date: Thu, 21 Jun 2018 15:57:01 +0100 +Subject: [PATCH 4/4] fix cast between incompatible function types + +--- + modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp | 8 ++++++-- + .../src/main/native-glass/gtk/glass_window_ime.cpp | 9 +++------ + 2 files changed, 9 insertions(+), 8 deletions(-) + +diff --git a/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp b/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp +index f85b1dae..3b9225f7 100644 +--- a/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp ++++ b/modules/graphics/src/main/native-glass/gtk/glass_dnd.cpp +@@ -556,7 +556,7 @@ static GdkDragContext *get_drag_context() { + return ctx; + } + +-static gboolean dnd_finish_callback() { ++static gboolean dnd_finish_callback(gpointer data) { + if (dnd_window) { + dnd_set_performed_action( + translate_gdk_action_to_glass( +@@ -1079,6 +1079,10 @@ gboolean DragView::get_drag_image_offset(int* x, int* y) { + return offset_set; + } + ++static void on_pixbuf_destroy_notify(guchar *pixels, gpointer data) { ++ g_free(pixels); ++} ++ + GdkPixbuf* DragView::get_drag_image(gboolean* is_raw_image, gint* width, gint* height) { + GdkPixbuf *pixbuf = NULL; + gboolean is_raw = FALSE; +@@ -1106,7 +1110,7 @@ GdkPixbuf* DragView::get_drag_image(gboolean* is_raw_image, gint* width, gint* h + if (data) { + memcpy(data, (raw + whsz), nraw - whsz); + pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, TRUE, 8, +- w, h, w * 4, (GdkPixbufDestroyNotify) g_free, NULL); ++ w, h, w * 4, (GdkPixbufDestroyNotify) on_pixbuf_destroy_notify, NULL); + } + } + } +diff --git a/modules/graphics/src/main/native-glass/gtk/glass_window_ime.cpp b/modules/graphics/src/main/native-glass/gtk/glass_window_ime.cpp +index 82e54d11..51af2a6a 100644 +--- a/modules/graphics/src/main/native-glass/gtk/glass_window_ime.cpp ++++ b/modules/graphics/src/main/native-glass/gtk/glass_window_ime.cpp +@@ -122,15 +122,12 @@ bool WindowContextBase::filterIME(GdkEvent * event) { + } + } + +-//Note: this function must return int, despite the fact it doesn't conform to XIMProc type. +-// This is required in documentation of XIM +-static int im_preedit_start(XIM im_xim, XPointer client, XPointer call) { ++static void im_preedit_start(XIM im_xim, XPointer client, XPointer call) { + (void)im_xim; + (void)call; + + mainEnv->CallVoidMethod((jobject) client, jViewNotifyPreeditMode, JNI_TRUE); +- CHECK_JNI_EXCEPTION_RET(mainEnv, -1); +- return -1; // No restrictions ++ CHECK_JNI_EXCEPTION(mainEnv); + } + + static void im_preedit_done(XIM im_xim, XPointer client, XPointer call) { +@@ -234,7 +231,7 @@ void WindowContextBase::enableOrResetIME() { + return; + } + +- XIMCallback startCallback = {(XPointer) jview, (XIMProc) im_preedit_start}; ++ XIMCallback startCallback = {(XPointer) jview, im_preedit_start}; + XIMCallback doneCallback = {(XPointer) jview, im_preedit_done}; + XIMCallback drawCallback = {(XPointer) jview, im_preedit_draw}; + XIMCallback caretCallback = {(XPointer) jview, im_preedit_caret}; +-- +2.17.1 + diff --git a/0004-Fix-Compilation-Flags.patch b/0004-Fix-Compilation-Flags.patch new file mode 100644 index 0000000..17c91ab --- /dev/null +++ b/0004-Fix-Compilation-Flags.patch @@ -0,0 +1,23 @@ +--- rt-8u202-b07/buildSrc/linux.gradle ++++ rt-8u202-b07-patched/buildSrc/linux.gradle +@@ -54,7 +54,7 @@ + def ccFlags = [ + commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/linux", "-c", + "-ffunction-sections", "-fdata-sections", +- IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten() ++ IS_DEBUG_NATIVE ? ["-ggdb", "-DNDEBUG"] : ["-O2", "-DNDEBUG"]].flatten() + def ccFlagsGTK3 = ccFlags + //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"]) + def linkFlags = ["-static-libgcc", "-static-libstdc++", "-shared", commonFlags, + +--- rt-8u202-b07/buildSrc/x86egl.gradle ++++ rt-8u202-b07-patched/buildSrc/x86egl.gradle +@@ -99,7 +99,7 @@ + def ccFlags = [ + commonFlags, + "-I$JDK_HOME/include", "-I$JDK_HOME/include/${jniPlatform}", "-c", +- IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten() ++ IS_DEBUG_NATIVE ? ["-ggdb", "-DNDEBUG"] : ["-O2", "-DNDEBUG"]].flatten() + //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"]) + def linkFlags = ["-shared", commonFlags].flatten() + diff --git a/0005-fxpackager-extract-jre-accept-symlink.patch b/0005-fxpackager-extract-jre-accept-symlink.patch new file mode 100644 index 0000000..ec5cf75 --- /dev/null +++ b/0005-fxpackager-extract-jre-accept-symlink.patch @@ -0,0 +1,14 @@ +--- rt-8u202-b07/modules/fxpackager/src/main/java/com/oracle/tools/packager/linux/LinuxAppBundler.java ++++ rt-8u202-b07-patched/modules/fxpackager/src/main/java/com/oracle/tools/packager/linux/LinuxAppBundler.java +@@ -116,8 +116,8 @@ + BundleParams.PARAM_RUNTIME, + RelativeFileSet.class, + params -> JreUtils.extractJreAsRelativeFileSet(System.getProperty("java.home"), +- LINUX_JRE_RULES.fetchFrom(params)), +- (s, p) -> JreUtils.extractJreAsRelativeFileSet(s, LINUX_JRE_RULES.fetchFrom(p)) ++ LINUX_JRE_RULES.fetchFrom(params), true), ++ (s, p) -> JreUtils.extractJreAsRelativeFileSet(s, LINUX_JRE_RULES.fetchFrom(p), true) + ); + + @Override + diff --git a/README.fedora b/README.fedora new file mode 100644 index 0000000..c4a77c2 --- /dev/null +++ b/README.fedora @@ -0,0 +1,18 @@ +This Fedora package installs JavaFX 8 in a JDK/JRE-independent way. It is +up to each JDK/JRE to make use of it correctly. In general, you want to symlink +the shared object and the jar into somehwere where the JDK/JRE can find it. + +The process looks something like this: +openjfx_dir=/usr/lib/jvm/openjfx8 + +jdk_files=$(find $openjfx_dir/{bin,lib} -type f -print) +for file in $jdk_files; do + relative=${file#$openjfx_dir/} + ln -sfv "$openjfx_dir/$relative" "/usr/lib/jvm/java/$relative" +done + +jre_files=$(find $openjfx_dir/rt -type f -print) +for file in $jre_files; do + relative=${file#$openjfx_dir/rt/} + ln -sfv "$openjfx_dir/rt/$relative" "/usr/lib/jvm/jre/$relative" +done diff --git a/build-sources.xml b/build-sources.xml new file mode 100755 index 0000000..71f2c27 --- /dev/null +++ b/build-sources.xml @@ -0,0 +1,10 @@ +<project name="sources" default="mergeSources" basedir="."> + + <target name="mergeSources"> + <zip destfile="javafx-src.zip"> + <zipgroupfileset dir="modules" includes="**/*-sources.jar"/> + </zip> + </target> + + +</project> diff --git a/build.xml b/build.xml new file mode 100755 index 0000000..55e5175 --- /dev/null +++ b/build.xml @@ -0,0 +1,49 @@ +<project name="VersionInfo" default="replaceVersionInfo" basedir="."> + <!-- set global properties for this build --> + <property file="build.properties"/> + + <property name="file.versioninfo" value="VersionInfo.java"/> + <property name="src.versioninfo" value="modules/base/src/main/version-info"/> + <property name="dst.versioninfo" value="modules/base/src/main/java/com/sun/javafx/runtime"/> + + <target name="replaceVersionInfo" depends="prepare,replaceReleaseVersion"> + <echo message="RELEASE_SUFFIX="/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@RELEASE_MILESTONE@" value=""/> + <tstamp> + <format property="NOW" pattern="yyyy-MM-dd-HHmmss"/> + </tstamp> + <echo message="BUILD_TIMESTAMP=${NOW}"/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@BUILD_TIMESTAMP@" value="${NOW}"/> + <echo message="HUDSON_JOB_NAME=not_hudson"/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@HUDSON_JOB_NAME@" value="not_hudson"/> + <echo message="HUDSON_BUILD_NUMBER=0000"/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@HUDSON_BUILD_NUMBER@" value="0000"/> + <echo message="PROMOTED_BUILD_NUMBER=0"/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@PROMOTED_BUILD_NUMBER@" value="0"/> + </target> + + <target name="replaceReleaseVersion"> + <echo message="RELEASE_VERSION=${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"/> + <replace file="${dst.versioninfo}/${file.versioninfo}" token="@RAW_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"/> + <!--<replace file="javafx.pom" token="@VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"/>--> + <replace file="pom.xml" token="@RELEASE_VERSION@" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"/> + <replace dir="modules" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"> + <include name="**/pom.xml"/> + <replacetoken>@RELEASE_VERSION@</replacetoken> + </replace> + <replace dir="shade" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"> + <include name="**/pom.xml"/> + <replacetoken>@RELEASE_VERSION@</replacetoken> + </replace> + <replace dir="buildSrc" value="${jfx.release.major.version}.${jfx.release.minor.version}.${jfx.release.micro.version}"> + <include name="**/pom.xml"/> + <replacetoken>@RELEASE_VERSION@</replacetoken> + </replace> + </target> + + <target name="prepare"> + <copy file="${src.versioninfo}/${file.versioninfo}" tofile="${dst.versioninfo}/${file.versioninfo}"/> + </target> + + +</project> diff --git a/buildSrc.xml b/buildSrc.xml new file mode 100644 index 0000000..ec74c1c --- /dev/null +++ b/buildSrc.xml @@ -0,0 +1,97 @@ +<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>buildSrc</name> + <packaging>jar</packaging> + <artifactId>buildSrc</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr-runtime</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>ST4</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>stringtemplate</artifactId> + </dependency> + <!--<dependency> + <groupId>org.codehaus.groovy</groupId> + <artifactId>groovy-all</artifactId> + </dependency>--> + </dependencies> + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.antlr</groupId> + <artifactId>antlr3-maven-plugin</artifactId> + <configuration> + <sourceDirectory>src/main/antlr</sourceDirectory> + <!--<outputDirectory>../build/gensrc/antlr</outputDirectory>--> + </configuration> + <executions> + <execution> + <id>antlr</id> + <goals> + <goal>antlr</goal> + </goals> + </execution> + </executions> + </plugin> + <!--<plugin> + <groupId>org.codehaus.gmavenplus</groupId> + <artifactId>gmavenplus-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>addSources</goal> + <goal>generateStubs</goal> + <goal>compile</goal> + <goal>removeStubs</goal> + </goals> + <configuration> + <source>src/main/groovy/CCTask.groovy</source> + <source>src/main/groovy/CompileHLSLTask.groovy</source> + <source>src/main/groovy/CompileResourceTask.groovy</source> + <source>src/main/groovy/ExportedSymbolsTask.groovy</source> + <source>src/main/groovy/JavaHeaderTask.groovy</source> + <source>src/main/groovy/LinkTask.groovy</source> + <source>src/main/groovy/LipoTask.groovy</source> + <source>src/main/groovy/NativeCompileTask.groovy</source> + </configuration> + </execution> + </executions> + </plugin>--> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + </plugin> + </plugins> + </build> + +</project> diff --git a/fxpackager-native.xml b/fxpackager-native.xml new file mode 100644 index 0000000..0798e41 --- /dev/null +++ b/fxpackager-native.xml @@ -0,0 +1,48 @@ +<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>fxpackager</name> + <packaging>uexe</packaging> + <artifactId>JavaAppLauncher</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fstack-protector -DJAVAARCH="amd64"</commonCompilerOptions> + <native.source.dir>../src/main/native/launcher/linux</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>-lstdc++</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-ldl</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> + +</project> 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> diff --git a/openjfx8.spec b/openjfx8.spec new file mode 100644 index 0000000..4df9a5b --- /dev/null +++ b/openjfx8.spec @@ -0,0 +1,373 @@ +%global openjfxdir %{_jvmdir}/%{name} + +Name: openjfx8 +Version: 8.0.202 +Release: 26.b07%{?dist} +Summary: Rich client application platform for Java + +#fxpackager is BSD +License: GPL v2 with exceptions and BSD +URL: http://openjdk.java.net/projects/openjfx/ + +Source0: http://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-b07.tar.bz2 +Source1: README.fedora +Source2: pom-base.xml +Source3: pom-builders.xml +Source4: pom-controls.xml +Source5: pom-fxml.xml +Source6: pom-fxpackager.xml +Source7: pom-graphics.xml +Source8: pom-graphics_compileDecoraCompilers.xml +Source9: pom-graphics_compileDecoraJavaShaders.xml +Source10: pom-graphics_compileJava.xml +Source11: pom-graphics_compilePrismCompilers.xml +Source12: pom-graphics_compilePrismJavaShaders.xml +Source13: pom-graphics_libdecora.xml +Source14: pom-graphics_libglass.xml +Source15: pom-graphics_libglassgtk2.xml +Source16: pom-graphics_libglassgtk3.xml +Source17: pom-graphics_libjavafx_font.xml +Source18: pom-graphics_libjavafx_font_freetype.xml +Source19: pom-graphics_libjavafx_font_pango.xml +Source20: pom-graphics_libjavafx_iio.xml +Source21: pom-graphics_libprism_common.xml +Source22: pom-graphics_libprism_es2.xml +Source23: pom-graphics_libprism_sw.xml +Source24: pom-jmx.xml +Source25: pom-media.xml +Source26: pom-openjfx.xml +Source27: pom-swing.xml +Source28: pom-swt.xml +Source29: pom-web.xml +Source30: shade.xml +Source31: build.xml +Source32: buildSrc.xml +Source33: fxpackager-native.xml +Source34: fxpackager-so.xml +Source35: build-sources.xml + +Patch0: 0000-Fix-wait-call-in-PosixPlatform.patch +Patch1: 0003-fix-cast-between-incompatible-function-types.patch +Patch2: 0004-Fix-Compilation-Flags.patch +Patch3: 0005-fxpackager-extract-jre-accept-symlink.patch + +ExclusiveArch: x86_64 + +Requires: java-1.8.0-openjdk + +#BuildRequires: java-1.8.0-openjdk-devel +BuildRequires: maven-local-openjdk8 +BuildRequires: ant +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: libstdc++-static +BuildRequires: jakarta-annotations +BuildRequires: mvn(org.eclipse.swt:swt) +BuildRequires: mvn(antlr:antlr) +BuildRequires: mvn(org.antlr:antlr) +BuildRequires: mvn(org.antlr:stringtemplate) +BuildRequires: mvn(org.apache.ant:ant) +BuildRequires: mvn(org.codehaus.mojo:native-maven-plugin) +BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) + +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(gthread-2.0) +BuildRequires: pkgconfig(xtst) +BuildRequires: pkgconfig(libjpeg) +BuildRequires: pkgconfig(xxf86vm) +BuildRequires: pkgconfig(gl) + +Provides: openjfx = 2:%{version}-%{release} +Obsoletes: openjfx <= 2:8.0.202-13 + +%description +JavaFX/OpenJFX is a set of graphics and media APIs that enables Java +developers to design, create, test, debug, and deploy rich client +applications that operate consistently across diverse platforms. + +The media and web module have been removed due to missing dependencies. + +%package devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: java-devel +Summary: OpenJFX development tools and libraries + +%description devel +%{summary}. + +%package src +Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: OpenJFX Source Bundle + +%description src +%{summary}. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%global debug_package %{nil} + +%prep +%setup -q -n rt-8u202-b07 +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 + +cp %{SOURCE1} . + +#Drop *src/test folders +rm -rf modules/{base,builders,controls,fxml,fxpackager,graphics,jmx,media,swing,swt,web}/src/test/ +rm -rf buildSrc/src/test/ + +#prep for graphics +##cp -a modules/javafx.graphics/src/jslc/antlr modules/javafx.graphics/src/main/antlr3 +cp -a modules/graphics/src/main/resources/com/sun/javafx/tk/quantum/*.properties modules/graphics/src/main/java/com/sun/javafx/tk/quantum + +#prep for base +cp -a modules/base/src/main/java8/javafx modules/base/src/main/java + +#prep for swt +cp -a modules/builders/src/main/java/javafx/embed/swt/CustomTransferBuilder.java modules/swt/src/main/java/javafx/embed/swt + +find -name '*.class' -delete +find -name '*.jar' -delete + +#copy maven files +cp -a %{_sourcedir}/pom-*.xml . +mv pom-openjfx.xml pom.xml + +for MODULE in base graphics controls swing swt fxml media web builders fxpackager jmx +do + mv pom-$MODULE.xml ./modules/$MODULE/pom.xml +done + +#shade +mkdir shade +cp -a %{_sourcedir}/shade.xml ./shade/pom.xml + +#fxpackager native exe +mkdir ./modules/fxpackager/native +cp -a %{_sourcedir}/fxpackager-native.xml ./modules/fxpackager/native/pom.xml +#fxpackager libpackager.so +mkdir ./modules/fxpackager/so +cp -a %{_sourcedir}/fxpackager-so.xml ./modules/fxpackager/so/pom.xml + +cp -a %{_sourcedir}/buildSrc.xml ./buildSrc/pom.xml + +mkdir ./modules/graphics/{compileJava,compilePrismCompilers,compilePrismJavaShaders,compileDecoraCompilers,compileDecoraJavaShaders,libdecora,libjavafx_font,libjavafx_font_freetype,libjavafx_font_pango,libglass,libglassgtk2,libglassgtk3,libjavafx_iio,libprism_common,libprism_es2,libprism_sw} +for GRAPHMOD in compileJava compilePrismCompilers compilePrismJavaShaders compileDecoraCompilers compileDecoraJavaShaders libdecora libjavafx_font libjavafx_font_freetype libjavafx_font_pango libglass libglassgtk2 libglassgtk3 libjavafx_iio libprism_common libprism_es2 libprism_sw +do + mv pom-graphics_$GRAPHMOD.xml ./modules/graphics/$GRAPHMOD/pom.xml +done + +#set VersionInfo +cp -a %{_sourcedir}/build.xml . +ant -f build.xml + +cp -a %{_sourcedir}/build-sources.xml . + +%build + +#set openjdk8 for build +#export JAVA_HOME=%{_jvmdir}/java-1.8.0-openjdk +%mvn_build -f --xmvn-javadoc + +ant -f build-sources.xml + +%install +install -d -m 755 %{buildroot}%{openjfxdir} +mkdir -p %{buildroot}%{openjfxdir}/bin +mkdir -p %{buildroot}%{openjfxdir}/lib +mkdir -p %{buildroot}%{openjfxdir}/rt/lib/{amd64,ext} + +cp -a shade/target/jfxrt.jar %{buildroot}%{openjfxdir}/rt/lib/ext +cp -a modules/swt/target/jfxswt.jar %{buildroot}%{openjfxdir}/rt/lib +cp -a modules/graphics/libdecora/target/libdecora_sse.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libglass/target/libglass.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libglassgtk2/target/libglassgtk2.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libglassgtk3/target/libglassgtk3.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libjavafx_font/target/libjavafx_font.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libjavafx_font_freetype/target/libjavafx_font_freetype.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libjavafx_font_pango/target/libjavafx_font_pango.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libjavafx_iio/target/libjavafx_iio.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libprism_common/target/libprism_common.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libprism_es2/target/libprism_es2.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/graphics/libprism_sw/target/libprism_sw.so %{buildroot}%{openjfxdir}/rt/lib/amd64 +cp -a modules/jmx/target/javafx-mx.jar %{buildroot}%{openjfxdir}/lib +cp -a modules/fxpackager/target/fxpackager-ant-javafx.jar %{buildroot}%{openjfxdir}/lib/ant-javafx.jar +cp -a modules/fxpackager/target/fxpackager-packager.jar %{buildroot}%{openjfxdir}/lib/packager.jar +cp -a modules/fxpackager/src/main/native/javapackager/shell/javapackager %{buildroot}%{openjfxdir}/bin +cp -a modules/fxpackager/src/main/native/javapackager/shell/javapackager %{buildroot}%{openjfxdir}/bin/javafxpackager + +install -d -m 755 %{buildroot}%{_mandir}/man1 +install -m 644 modules/fxpackager/src/main/man/man1/* %{buildroot}%{_mandir}/man1 + +install -d -m 755 %{buildroot}%{_mandir}/ja_JP/man1 +install -m 644 modules/fxpackager/src/main/man/ja_JP.UTF-8/man1/* %{buildroot}%{_mandir}/ja_JP/man1 + +install -m 644 javafx-src.zip %{buildroot}%{openjfxdir}/javafx-src.zip + +install -d 755 %{buildroot}%{_javadocdir}/%{name} +cp -a target/xmvn-apidocs/. %{buildroot}%{_javadocdir}/%{name} + +mkdir -p %{buildroot}%{_bindir} +ln -s %{openjfxdir}/bin/javafxpackager %{buildroot}%{_bindir} +ln -s %{openjfxdir}/bin/javapackager %{buildroot}%{_bindir} + +%files +%dir %{openjfxdir} +%{openjfxdir}/rt +%license LICENSE +%doc README +%doc README.fedora + +%files devel +%{openjfxdir}/lib +%{openjfxdir}/bin +%{_bindir}/javafxpackager +%{_bindir}/javapackager +%{_mandir}/man1/javafxpackager.1* +%{_mandir}/man1/javapackager.1* +%{_mandir}/ja_JP/man1/javafxpackager.1* +%{_mandir}/ja_JP/man1/javapackager.1* +%license LICENSE +%doc README +%doc README.fedora + +%files src +%{openjfxdir}/javafx-src.zip + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE + +%changelog +* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-26.b07 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Oct 23 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-25.b07 +- Add package migration from previous openjfx to openjfx8 (see bug 1890805) + +* Tue Aug 04 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-24.b07 +- Fix FTBFS in Fedora rawhide see bug 1865157 + +* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-23.b07 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-22.b07 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jun 04 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-21.b07 +- Added openjfx-src package (see bug 1836908) + +* Tue May 12 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-20.b07 +- renaming package from openjfx to openjfx8 + +* Tue May 12 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-11.b07 +- wrong value returned by javafx.runtime.version + +* Wed Feb 12 2020 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-10.b07 +- Replace gradle build with maven build + +* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-9.b07 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 31 2019 Nicolas De Amicis - 8.0.202-8.b07 +- fxpackager extracts jre with symlinks (see bug 1700884) + drop SWT support for + 32 bits architectures (FTBFS in Fedora rawhide see bug 1736382) + +* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-7.b07 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Mar 26 2019 Nicolas De Amicis - 8.0.202-6.b07 +- Remove orphaned dependency (javapackages-tools) + +* Mon Feb 04 2019 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-5.b07 +- Fix compilation flags (see bug 1667675) + +* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.202-4.b07 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jan 18 2019 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-3.b07 +- Update to upstream version 8.0.202b07 and adding gtk3 support + (libglassgtk3.so) + +* Tue Nov 27 2018 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.202-2.b02 +- Update to upstream version 8.0.202b02 + +* Mon Nov 12 2018 Nicolas De Amicis <deamicis@bluewin.ch> - 8.0.152-19.b05 +- Fix missing java packages in openjfx + +* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.152-18.b05 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 21 2018 Mat Booth <mat.booth@redhat.com> - 8.0.152-17.b05 +- Fix failure to build from source + +* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.152-16.b05 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.152-15.b05 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.152-14.b05 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jul 02 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-13.b05 +- Update to upstream version 8.0.152b05 + +* Thu Jun 15 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-12.b04 +- Removed BuildArch: noarch for subpackages that requires the parent package + +* Thu Jun 15 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-11.b04 +- Build on i686 too + +* Wed May 31 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-10.b04 +- Update to upstream version 8.0.152b04 + +* Wed May 31 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-9.b03 +- Added requires on java and java-devel +- Updated license + +* Thu May 18 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-8.b03 +- Added requires on javapackages-tools +- Added requires on parent package for subpackages devel and src + +* Fri May 12 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-7.b03 +- Introduce sub-package devel + +* Mon May 08 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-6.b03 +- Update to upstream version 8.0.152b03 + +* Mon May 01 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-5.b02 +- Update to upstream version 8.0.152b02 + +* Wed Apr 05 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-4.b00 +- Only build for x86 and x86_64, will fail to build on other platforms + +* Thu Jan 19 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-3.b00 +- Include javadoc sub-package + +* Tue Jan 17 2017 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-2.b00 +- Include src sub-package + +* Fri Dec 30 2016 Jonny Heggheim <hegjon@gmail.com> - 8.0.152-1.b00 +- Update to upstream version 8.0.152b00 + +* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.91-1 +- Update to upstream version 8.0.91 + +* Tue Apr 26 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.60-1 +- Update to upstream version 8.0.60 + +* Mon Jul 6 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 8.0.40-1 +- Initial packaging diff --git a/pom-base.xml b/pom-base.xml new file mode 100644 index 0000000..a7bb01e --- /dev/null +++ b/pom-base.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>javafx.base</name> + <packaging>jar</packaging> + <artifactId>javafx.base</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.base</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-builders.xml b/pom-builders.xml new file mode 100644 index 0000000..6d7abf6 --- /dev/null +++ b/pom-builders.xml @@ -0,0 +1,97 @@ +<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>javafx.builders</name> + <packaging>jar</packaging> + <artifactId>javafx.builders</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.controls</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.fxml</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.media</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.swing</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.swt</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.web</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.7</source> + <target>1.7</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.builders</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-controls.xml b/pom-controls.xml new file mode 100644 index 0000000..9d640af --- /dev/null +++ b/pom-controls.xml @@ -0,0 +1,283 @@ +<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>javafx.controls</name> + <packaging>jar</packaging> + <artifactId>javafx.controls</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.controls</finalName> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>caspian-no-transparency</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/caspian-no-transparency.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>caspian</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/caspian.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>embedded-qvga</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/embedded-qvga.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>embedded</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/embedded.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>fxvk</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/fxvk.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>highcontrast</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/highcontrast.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>caspian-two-level-focus</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/caspian/two-level-focus.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>blackOnWhite</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/blackOnWhite.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>modena-embedded-performance</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/modena-embedded-performance.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>modena-no-transparency</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/modena-no-transparency.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>modena</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/modena.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>touch</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/touch.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>modena-two-level-focus</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/two-level-focus.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>whiteOnBlack</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/whiteOnBlack.css</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>yellowOnBlack</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>com.sun.javafx.css.parser.Css2Bin</mainClass> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>${project.basedir}/target/classes/com/sun/javafx/scene/control/skin/modena/yellowOnBlack.css</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-fxml.xml b/pom-fxml.xml new file mode 100644 index 0000000..08f61a7 --- /dev/null +++ b/pom-fxml.xml @@ -0,0 +1,72 @@ +<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>javafx.fxml</name> + <packaging>jar</packaging> + <artifactId>javafx.fxml</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.controls</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.fxml</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-fxpackager.xml b/pom-fxpackager.xml new file mode 100644 index 0000000..62eaa42 --- /dev/null +++ b/pom-fxpackager.xml @@ -0,0 +1,94 @@ +<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>javafx.fxpackager</name> + <packaging>jar</packaging> + <artifactId>javafx.fxpackager</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant-launcher</artifactId> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <executions> + <execution> + <id>ant-javafx</id> + <goals> + <goal>jar</goal> + </goals> + <phase>package</phase> + <configuration> + <finalName>fxpackager</finalName> + <classifier>ant-javafx</classifier> + </configuration> + </execution> + <execution> + <id>packager</id> + <goals> + <goal>jar</goal> + </goals> + <phase>package</phase> + <configuration> + <finalName>fxpackager</finalName> + <classifier>packager</classifier> + <includes> + <include>**/jdk/**</include> + </includes> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>prepare-package</phase> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + <configuration> + <target> + <move todir="target/classes/resources/classes/com/javafx/main"> + <fileset dir="target/classes/com/javafx/main"/> + </move> + <delete dir="target/classes/com/javafx" /> + <copy todir="target/classes/com/oracle/tools/packager/linux"> + <fileset dir="native/target"/> + <globmapper from="JavaAppLauncher.uexe" to="JavaAppLauncher"/> + </copy> + </target> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics.xml b/pom-graphics.xml new file mode 100644 index 0000000..626095b --- /dev/null +++ b/pom-graphics.xml @@ -0,0 +1,32 @@ +<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>javafx.graphics</name> + <packaging>pom</packaging> + <artifactId>javafx.graphics-aggregator</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <modules> + <module>compileJava</module> + <module>compilePrismCompilers</module> + <module>compilePrismJavaShaders</module> + <module>compileDecoraCompilers</module> + <module>compileDecoraJavaShaders</module> + <module>libdecora</module> + <module>libjavafx_font</module> + <module>libjavafx_font_freetype</module> + <module>libjavafx_font_pango</module> + <module>libglass</module> + <module>libglassgtk2</module> + <module>libglassgtk3</module> + <module>libjavafx_iio</module> + <module>libprism_common</module> + <module>libprism_es2</module> + <module>libprism_sw</module> + </modules> + +</project> diff --git a/pom-graphics_compileDecoraCompilers.xml b/pom-graphics_compileDecoraCompilers.xml new file mode 100644 index 0000000..d6f784c --- /dev/null +++ b/pom-graphics_compileDecoraCompilers.xml @@ -0,0 +1,329 @@ +<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>javafx.graphics-decora</name> + <packaging>jar</packaging> + <artifactId>javafx.graphics-decora</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr-runtime</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>ST4</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>stringtemplate</artifactId> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <sourceDirectory>${project.basedir}/../src/main/jsl-decora</sourceDirectory> + <outputDirectory>${project.basedir}/../build/classes/jsl-compilers/decora</outputDirectory> + <resources> + <resource> + <directory>${project.basedir}/../src/main/jsl-decora</directory> + <excludes> + <exclude>**/*.java</exclude> + <exclude>**/*.jsl</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-nowarn</arg> + <arg>-g:source,lines,vars</arg> + <arg>-proc:none</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-implicit:none</arg> + <arg>-XDignore.symbol.file</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>ColorAdjust</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora/</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>ColorAdjust</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>Brightpass</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>Brightpass</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>SepiaTone</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>SepiaTone</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PerspectiveTransform</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>PerspectiveTransform</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>DisplacementMap</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>DisplacementMap</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>InvertMask</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>InvertMask</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>Blend</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileBlend</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>Blend</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PhongLighting</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompilePhong</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-all</argument> + <argument>PhongLighting</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>LinearConvolve</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileLinearConvolve</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-hw</argument> + <argument>LinearConvolve</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>LinearConvolveShadow</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileLinearConvolve</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>${project.basedir}/../src/main/jsl-decora</argument> + <argument>-o</argument> + <argument>${project.basedir}/../build/gensrc/jsl-decora</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/scenario/effect</argument> + <argument>-hw</argument> + <argument>LinearConvolveShadow</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics_compileDecoraJavaShaders.xml b/pom-graphics_compileDecoraJavaShaders.xml new file mode 100644 index 0000000..035f7ce --- /dev/null +++ b/pom-graphics_compileDecoraJavaShaders.xml @@ -0,0 +1,61 @@ +<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>javafx.graphics-decora-shaders</name> + <packaging>jar</packaging> + <artifactId>javafx.graphics-decora-shaders</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <sourceDirectory>${project.basedir}/../build/gensrc/jsl-decora</sourceDirectory> + <resources> + <resource> + <directory>${project.basedir}/../build/gensrc/jsl-decora</directory> + <excludes> + <exclude>**/*.rc</exclude> + <exclude>**/*.tokens</exclude> + <exclude>**/*.hlsl</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-g:source,lines,vars</arg> + <arg>-proc:none</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-nowarn</arg> + <arg>-implicit:none</arg> + <arg>-h</arg> + <arg>${project.basedir}/../build/gensrc/headers/</arg> + </compilerArgs> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics_compileJava.xml b/pom-graphics_compileJava.xml new file mode 100644 index 0000000..c35c16e --- /dev/null +++ b/pom-graphics_compileJava.xml @@ -0,0 +1,112 @@ +<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>javafx.graphics</name> + <packaging>jar</packaging> + <artifactId>javafx.graphics</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.swt</groupId> + <artifactId>swt</artifactId> + </dependency> + </dependencies> + <build> + <sourceDirectory>${project.basedir}/../src/main/java</sourceDirectory> + <resources> + <resource> + <directory>${project.basedir}/../src/main/java</directory> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + <arg>-h</arg> + <arg>../build/gensrc/headers/</arg> + </compilerArgs> + <excludes> + <exclude>**/d3d/*.java</exclude> + <exclude>**/mac/*.java</exclude> + <exclude>**/ios/*.java</exclude> + <exclude>**/android/*.java</exclude> + <exclude>**/win/*.java</exclude> + </excludes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-classes</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <exportAntProperties>true</exportAntProperties> + <target> + <property name="runtime_classpath" refid="maven.compile.classpath"/> + <exec executable="/usr/lib/jvm/java-1.8.0-openjdk/jre/../bin/javah"> + <arg value="-cp"/> + <arg value="${runtime_classpath}"/> + <arg value="-d"/> + <arg value="${project.build.directory}/../../build/gensrc/headers/"/> + <arg value="com.sun.glass.ui.Application"/> + <arg value="com.sun.glass.ui.Cursor"/> + <arg value="com.sun.glass.ui.Window"/> + <arg value="com.sun.glass.ui.View"/> + <arg value="com.sun.glass.events.WindowEvent"/> + <arg value="com.sun.glass.events.MouseEvent"/> + <arg value="com.sun.glass.events.ViewEvent"/> + <arg value="com.sun.glass.events.KeyEvent"/> + <arg value="com.sun.glass.events.DndEvent"/> + <arg value="com.sun.prism.es2.GLDrawable"/> + <arg value="com.sun.prism.es2.GLPixelFormat"/> + <arg value="com.sun.pisces.RendererBase"/> + </exec> + </target> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.graphics</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics_compilePrismCompilers.xml b/pom-graphics_compilePrismCompilers.xml new file mode 100644 index 0000000..a5a7301 --- /dev/null +++ b/pom-graphics_compilePrismCompilers.xml @@ -0,0 +1,885 @@ +<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>javafx.graphics-prism</name> + <packaging>jar</packaging> + <artifactId>javafx.graphics-prism</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>antlr-runtime</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>ST4</artifactId> + </dependency> + <dependency> + <groupId>org.antlr</groupId> + <artifactId>stringtemplate</artifactId> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <sourceDirectory>${project.basedir}/../src/main/jsl-prism</sourceDirectory> + <outputDirectory>${project.basedir}/../build/classes/jsl-compilers/prism</outputDirectory> + <resources> + <resource> + <directory>${project.basedir}/../src/main/jsl-prism</directory> + <excludes> + <exclude>**/*.java</exclude> + <exclude>**/*.jsl</exclude> + <exclude>**/*.stg</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-nowarn</arg> + <arg>-g:source,lines,vars</arg> + <arg>-proc:none</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-implicit:none</arg> + <arg>-XDignore.symbol.file</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <id>MaskAlphaOne</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskAlphaOne.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskAlphaTexture</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskAlphaTexture.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskAlphaTextureDifference</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskAlphaTextureDifference.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskDrawCircle</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskDrawCircle.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskDrawEllipse</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskDrawEllipse.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskDrawPgram</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskDrawPgram.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskDrawRoundRect</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskDrawRoundRect.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskDrawSemiRoundRect</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskDrawSemiRoundRect.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskFillCircle</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskFillCircle.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskFillEllipse</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskFillEllipse.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskFillPgram</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskFillPgram.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskFillRoundRect</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskFillRoundRect.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskSolid</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskSolid.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>MaskTexture</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/MaskTexture.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintAlphaTextureImagePattern</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintAlphaTextureImagePattern.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintAlphaTextureLinearGradient</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintAlphaTextureLinearGradient.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintAlphaTextureRadialGradient</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintAlphaTextureRadialGradient.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintColor</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintColor.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintImagePattern</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintImagePattern.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintLinearGradient</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintLinearGradient.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintMaskTextureRGB</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintMaskTextureRGB.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintMaskTextureSuper</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintMaskTextureSuper.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintMultiGradient</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintMultiGradient.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintRadialGradient</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintRadialGradient.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureFirstPassLCD</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureFirstPassLCD.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureRGB</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureRGB.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureSecondPassLCD</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureSecondPassLCD.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureYUV422</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureYUV422.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureYUV444</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureYUV444.jsl</argument> + </arguments> + </configuration> + </execution> + <execution> + <id>PaintTextureYV12</id> + <phase>compile</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>CompileJSL</mainClass> + <additionalClasspathElements> + <additionalClasspathElement>../src/jslc/resources</additionalClasspathElement> + </additionalClasspathElements> + <addResourcesToClasspath>true</addResourcesToClasspath> + <arguments> + <argument>-i</argument> + <argument>modules/graphics/src/main/jsl-prism</argument> + <argument>-o</argument> + <argument>modules/graphics/build/gensrc/jsl-prism</argument> + <argument>-t</argument> + <argument>-pkg</argument> + <argument>com/sun/prism</argument> + <argument>-d3d</argument> + <argument>-es2</argument> + <argument>-name</argument> + <argument>modules/graphics/src/main/jsl-prism/PaintTextureYV12.jsl</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics_compilePrismJavaShaders.xml b/pom-graphics_compilePrismJavaShaders.xml new file mode 100644 index 0000000..d77d289 --- /dev/null +++ b/pom-graphics_compilePrismJavaShaders.xml @@ -0,0 +1,60 @@ +<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>javafx.graphics-prism-shaders</name> + <packaging>jar</packaging> + <artifactId>javafx.graphics-prism-shaders</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <sourceDirectory>${project.basedir}/../build/gensrc/jsl-prism</sourceDirectory> + <resources> + <resource> + <directory>${project.basedir}/../build/gensrc/jsl-prism</directory> + <excludes> + <exclude>**/*.rc</exclude> + <exclude>**/*.tokens</exclude> + <exclude>**/*.hlsl</exclude> + </excludes> + </resource> + </resources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-g:source,lines,vars</arg> + <arg>-proc:none</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-nowarn</arg> + <arg>-implicit:none</arg> + <arg>-h</arg> + <arg>../build/gensrc/headers/</arg> + </compilerArgs> + <excludes> + <exclude>**/mac/*.java</exclude> + <exclude>**/ios/*.java</exclude> + <exclude>**/android/*.java</exclude> + <exclude>**/win/*.java</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-graphics_libdecora.xml b/pom-graphics_libdecora.xml new file mode 100644 index 0000000..84e8da1 --- /dev/null +++ b/pom-graphics_libdecora.xml @@ -0,0 +1,73 @@ +<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>libdecora_sse</name> + <packaging>so</packaging> + <artifactId>libdecora_sse</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -ffast-math</commonCompilerOptions> + <native.gen.dir>../build/gensrc/jsl-decora</native.gen.dir> + <native.source.dir>../src/main/native-decora</native.source.dir> + </properties> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>native-maven-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <compilerProvider>generic-classic</compilerProvider> + <compilerExecutable>gcc</compilerExecutable> + <compilerStartOptions> + <compilerStartOption>${commonCompilerOptions}</compilerStartOption> + </compilerStartOptions> + <sources> + <source> + <directory>${native.source.dir}</directory> + <includes> + <include>**/*.cc</include> + </includes> + </source> + <source> + <directory>${native.gen.dir}</directory> + <includes> + <include>**/*.cc</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>../src/main/native-decora</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libglass.xml b/pom-graphics_libglass.xml new file mode 100644 index 0000000..508ae3a --- /dev/null +++ b/pom-graphics_libglass.xml @@ -0,0 +1,111 @@ +<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>libglass</name> + <packaging>so</packaging> + <artifactId>libglass</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-DJFXFONT_PLUS -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -pthread -Werror</commonCompilerOptions> + <native.source.dir>../src/main/native-glass</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>**/gtk/launcher.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>/usr/include/freetype2</directory> + </source> + <source> + <directory>/usr/include/libpng16</directory> + </source> + <source> + <directory>/usr/include/pango-1.0</directory> + </source> + <source> + <directory>/usr/include/glib-2.0</directory> + </source> + <source> + <directory>/usr/lib64/glib-2.0/include</directory> + </source> + <source> + <directory>/usr/include/fribidi</directory> + </source> + <source> + <directory>/usr/include/harfbuzz</directory> + </source> + <source> + <directory>/usr/include/cairo</directory> + </source> + <source> + <directory>/usr/include/pixman-1</directory> + </source> + <source> + <directory>/usr/include/gtk-2.0</directory> + </source> + <source> + <directory>/usr/lib64/gtk-2.0/include</directory> + </source> + <source> + <directory>/usr/include/gdk-pixbuf-2.0</directory> + </source> + <source> + <directory>/usr/include/libmount</directory> + </source> + <source> + <directory>/usr/include/blkid</directory> + </source> + <source> + <directory>/usr/include/uuid</directory> + </source> + <source> + <directory>/usr/include/atk-1.0</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lX11</linkerStartOption> + <linkerStartOption>-ldl</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libglassgtk2.xml b/pom-graphics_libglassgtk2.xml new file mode 100644 index 0000000..85d4aa1 --- /dev/null +++ b/pom-graphics_libglassgtk2.xml @@ -0,0 +1,126 @@ +<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>libglassgtk2</name> + <packaging>so</packaging> + <artifactId>libglassgtk2</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -pthread -Werror -DGLIB_DISABLE_DEPRECATION_WARNINGS</commonCompilerOptions> + <native.source.dir>../src/main/native-glass</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>**/gtk/wrapped.c</include> + <include>**/gtk/*.cpp</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>/usr/include/freetype2</directory> + </source> + <source> + <directory>/usr/include/libpng16</directory> + </source> + <source> + <directory>/usr/include/pango-1.0</directory> + </source> + <source> + <directory>/usr/include/glib-2.0</directory> + </source> + <source> + <directory>/usr/lib64/glib-2.0/include</directory> + </source> + <source> + <directory>/usr/include/fribidi</directory> + </source> + <source> + <directory>/usr/include/harfbuzz</directory> + </source> + <source> + <directory>/usr/include/cairo</directory> + </source> + <source> + <directory>/usr/include/pixman-1</directory> + </source> + <source> + <directory>/usr/include/gtk-2.0</directory> + </source> + <source> + <directory>/usr/lib64/gtk-2.0/include</directory> + </source> + <source> + <directory>/usr/include/gdk-pixbuf-2.0</directory> + </source> + <source> + <directory>/usr/include/libmount</directory> + </source> + <source> + <directory>/usr/include/blkid</directory> + </source> + <source> + <directory>/usr/include/uuid</directory> + </source> + <source> + <directory>/usr/include/atk-1.0</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lgtk-x11-2.0</linkerStartOption> + <linkerStartOption>-lgdk-x11-2.0</linkerStartOption> + <linkerStartOption>-lpangocairo-1.0</linkerStartOption> + <linkerStartOption>-latk-1.0</linkerStartOption> + <linkerStartOption>-lcairo</linkerStartOption> + <linkerStartOption>-lgdk_pixbuf-2.0</linkerStartOption> + <linkerStartOption>-lgio-2.0</linkerStartOption> + <linkerStartOption>-lpangoft2-1.0</linkerStartOption> + <linkerStartOption>-lpango-1.0</linkerStartOption> + <linkerStartOption>-lgobject-2.0</linkerStartOption> + <linkerStartOption>-lfontconfig</linkerStartOption> + <linkerStartOption>-lfreetype</linkerStartOption> + <linkerStartOption>-pthread</linkerStartOption> + <linkerStartOption>-lgthread-2.0</linkerStartOption> + <linkerStartOption>-lglib-2.0</linkerStartOption> + <linkerStartOption>-lXtst</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libglassgtk3.xml b/pom-graphics_libglassgtk3.xml new file mode 100644 index 0000000..e603b4e --- /dev/null +++ b/pom-graphics_libglassgtk3.xml @@ -0,0 +1,134 @@ +<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>libglassgtk3</name> + <packaging>so</packaging> + <artifactId>libglassgtk3</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -Wno-deprecated-declarations -pthread -Werror</commonCompilerOptions> + <native.source.dir>../src/main/native-glass</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>**/gtk/wrapped.c</include> + <include>**/gtk/*.cpp</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>/usr/include/freetype2</directory> + </source> + <source> + <directory>/usr/include/libpng16</directory> + </source> + <source> + <directory>/usr/include/pango-1.0</directory> + </source> + <source> + <directory>/usr/include/glib-2.0</directory> + </source> + <source> + <directory>/usr/lib64/glib-2.0/include</directory> + </source> + <source> + <directory>/usr/include/fribidi</directory> + </source> + <source> + <directory>/usr/include/harfbuzz</directory> + </source> + <source> + <directory>/usr/include/cairo</directory> + </source> + <source> + <directory>/usr/include/gtk-3.0</directory> + </source> + <source> + <directory>/usr/include/gdk-pixbuf-2.0</directory> + </source> + <source> + <directory>/usr/include/libmount</directory> + </source> + <source> + <directory>/usr/include/blkid</directory> + </source> + <source> + <directory>/usr/include/atk-1.0</directory> + </source> + <source> + <directory>/usr/include/at-spi2-atk/2.0</directory> + </source> + <source> + <directory>/usr/include/at-spi-2.0</directory> + </source> + <source> + <directory>/usr/include/libdrm</directory> + </source> + <source> + <directory>/usr/include/gio-unix-2.0</directory> + </source> + <source> + <directory>/usr/include/dbus-1.0</directory> + </source> + <source> + <directory>/usr/lib64/dbus-1.0/include</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lgtk-3</linkerStartOption> + <linkerStartOption>-lgdk-3</linkerStartOption> + <linkerStartOption>-lpangocairo-1.0</linkerStartOption> + <linkerStartOption>-latk-1.0</linkerStartOption> + <linkerStartOption>-lcairo</linkerStartOption> + <linkerStartOption>-lgdk_pixbuf-2.0</linkerStartOption> + <linkerStartOption>-lgio-2.0</linkerStartOption> + <linkerStartOption>-lpango-1.0</linkerStartOption> + <linkerStartOption>-lgobject-2.0</linkerStartOption> + <linkerStartOption>-lfreetype</linkerStartOption> + <linkerStartOption>-pthread</linkerStartOption> + <linkerStartOption>-lgthread-2.0</linkerStartOption> + <linkerStartOption>-lglib-2.0</linkerStartOption> + <linkerStartOption>-lXtst</linkerStartOption> + <linkerStartOption>-lcairo-gobject</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libjavafx_font.xml b/pom-graphics_libjavafx_font.xml new file mode 100644 index 0000000..12f91c0 --- /dev/null +++ b/pom-graphics_libjavafx_font.xml @@ -0,0 +1,62 @@ +<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>libjavafx_font</name> + <packaging>so</packaging> + <artifactId>libjavafx_font</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-DJFXFONT_PLUS -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG</commonCompilerOptions> + <native.source.dir>../src/main/native-font</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>**/*.c</include> + <include>**/*.cpp</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libjavafx_font_freetype.xml b/pom-graphics_libjavafx_font_freetype.xml new file mode 100644 index 0000000..7fd374d --- /dev/null +++ b/pom-graphics_libjavafx_font_freetype.xml @@ -0,0 +1,68 @@ +<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>libjavafx_font_freetype</name> + <packaging>so</packaging> + <artifactId>libjavafx_font_freetype</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-DJFXFONT_PLUS -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -D_ENABLE_PANGO</commonCompilerOptions> + <native.source.dir>../src/main/native-font</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>**/freetype.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>/usr/include/freetype2</directory> + </source> + <source> + <directory>/usr/include/libpng16</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lfreetype</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libjavafx_font_pango.xml b/pom-graphics_libjavafx_font_pango.xml new file mode 100644 index 0000000..c7ffb36 --- /dev/null +++ b/pom-graphics_libjavafx_font_pango.xml @@ -0,0 +1,94 @@ +<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>libjavafx_font_pango</name> + <packaging>so</packaging> + <artifactId>libjavafx_font_pango</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-DJFXFONT_PLUS -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -D_ENABLE_PANGO</commonCompilerOptions> + <native.source.dir>../src/main/native-font</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>**/pango.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>/usr/include/freetype2</directory> + </source> + <source> + <directory>/usr/include/libpng16</directory> + </source> + <source> + <directory>/usr/include/pango-1.0</directory> + </source> + <source> + <directory>/usr/include/glib-2.0</directory> + </source> + <source> + <directory>/usr/lib64/glib-2.0/include</directory> + </source> + <source> + <directory>/usr/include/fribidi</directory> + </source> + <source> + <directory>/usr/include/harfbuzz</directory> + </source> + <source> + <directory>/usr/include/cairo</directory> + </source> + <source> + <directory>/usr/include/pixman-1</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lfreetype</linkerStartOption> + <linkerStartOption>-lpangoft2-1.0</linkerStartOption> + <linkerStartOption>-lpango-1.0</linkerStartOption> + <linkerStartOption>-lgobject-2.0</linkerStartOption> + <linkerStartOption>-lglib-2.0</linkerStartOption> + <linkerStartOption>-lfontconfig</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libjavafx_iio.xml b/pom-graphics_libjavafx_iio.xml new file mode 100644 index 0000000..2edba03 --- /dev/null +++ b/pom-graphics_libjavafx_iio.xml @@ -0,0 +1,62 @@ +<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>libjavafx_iio</name> + <packaging>so</packaging> + <artifactId>libjavafx_iio</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG</commonCompilerOptions> + <native.source.dir>../src/main/native-iio</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>**/jpegloader.c</include> + <include>**/libjpeg/*.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libprism_common.xml b/pom-graphics_libprism_common.xml new file mode 100644 index 0000000..0909040 --- /dev/null +++ b/pom-graphics_libprism_common.xml @@ -0,0 +1,61 @@ +<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>libprism_common</name> + <packaging>so</packaging> + <artifactId>libprism_common</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -DINLINE=inline</commonCompilerOptions> + <native.source.dir>../src/main/native-prism</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>**/*.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libprism_es2.xml b/pom-graphics_libprism_es2.xml new file mode 100644 index 0000000..7339e08 --- /dev/null +++ b/pom-graphics_libprism_es2.xml @@ -0,0 +1,71 @@ +<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>libprism_es2</name> + <packaging>so</packaging> + <artifactId>libprism_es2</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-DLINUX -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG</commonCompilerOptions> + <native.source.dir>../src/main/native-prism-es2</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>*.c</include> + <include>x11/X11GLDrawable.c</include> + <include>x11/X11GLContext.c</include> + <include>x11/X11GLPixelFormat.c</include> + <include>x11/X11GLFactory.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + <source> + <directory>${native.source.dir}/GL</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + <linkerStartOption>-lX11</linkerStartOption> + <linkerStartOption>-lXxf86vm</linkerStartOption> + <linkerStartOption>-lGL</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-graphics_libprism_sw.xml b/pom-graphics_libprism_sw.xml new file mode 100644 index 0000000..84eee97 --- /dev/null +++ b/pom-graphics_libprism_sw.xml @@ -0,0 +1,61 @@ +<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>libprism_sw</name> + <packaging>so</packaging> + <artifactId>libprism_sw</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <properties> + <commonCompilerOptions>-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -c -ffunction-sections -fdata-sections -O2 -DNDEBUG -DINLINE=inline</commonCompilerOptions> + <native.source.dir>../src/main/native-prism-sw</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>**/*.c</include> + </includes> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include</directory> + </source> + <source> + <directory>/usr/lib/jvm/java-1.8.0-openjdk/include/linux</directory> + </source> + <source> + <directory>../build/gensrc/headers</directory> + </source> + </sources> + <linkerStartOptions> + <linkerStartOption>-static-libgcc</linkerStartOption> + <linkerStartOption>-static-libstdc++</linkerStartOption> + <linkerStartOption>-shared</linkerStartOption> + <linkerStartOption>-fno-strict-aliasing</linkerStartOption> + <linkerStartOption>-fPIC</linkerStartOption> + <linkerStartOption>-fno-omit-frame-pointer</linkerStartOption> + <linkerStartOption>-fstack-protector</linkerStartOption> + <linkerStartOption>-Wextra</linkerStartOption> + <linkerStartOption>-Wall</linkerStartOption> + <linkerStartOption>-Wformat-security</linkerStartOption> + <linkerStartOption>-Wno-unused</linkerStartOption> + <linkerStartOption>-Wno-parentheses</linkerStartOption> + <linkerStartOption>-z</linkerStartOption> + <linkerStartOption>relro</linkerStartOption> + <linkerStartOption>-Wl,--gc-sections</linkerStartOption> + </linkerStartOptions> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/pom-jmx.xml b/pom-jmx.xml new file mode 100644 index 0000000..8b3490c --- /dev/null +++ b/pom-jmx.xml @@ -0,0 +1,60 @@ +<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>jmx</name> + <packaging>jar</packaging> + <artifactId>jmx</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.media</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.swing</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx-mx</finalName> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-media.xml b/pom-media.xml new file mode 100644 index 0000000..c1c881f --- /dev/null +++ b/pom-media.xml @@ -0,0 +1,71 @@ +<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>javafx.media</name> + <packaging>jar</packaging> + <artifactId>javafx.media</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.media</finalName> + <excludes> + <exclude>**/platform/osx/*.class</exclude> + <exclude>**/platform/ios/*.class</exclude> + </excludes> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-openjfx.xml b/pom-openjfx.xml new file mode 100644 index 0000000..c2b0786 --- /dev/null +++ b/pom-openjfx.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <name>openjfx</name> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <description>OpenJFX JavaFX</description> + <packaging>pom</packaging> + <version>@RELEASE_VERSION@</version> + <modules> + <module>buildSrc</module> + <module>modules/base</module> + <module>modules/graphics</module> + <module>modules/controls</module> + <module>modules/swing</module> + <module>modules/swt</module> + <module>modules/fxml</module> + <module>modules/media</module> + <module>modules/web</module> + <module>modules/builders</module> + <module>modules/fxpackager/native</module> + <module>modules/fxpackager</module> + <module>modules/fxpackager/so</module> + <module>modules/jmx</module> + <module>shade</module> + </modules> + +</project> diff --git a/pom-swing.xml b/pom-swing.xml new file mode 100644 index 0000000..c3fd806 --- /dev/null +++ b/pom-swing.xml @@ -0,0 +1,69 @@ +<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>javafx.swing</name> + <packaging>jar</packaging> + <artifactId>javafx.swing</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-nowarn</arg> + <arg>-g:source,lines,vars</arg> + <arg>-proc:none</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-implicit:none</arg> + <arg>-XDignore.symbol.file</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.swing</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-swt.xml b/pom-swt.xml new file mode 100644 index 0000000..a24297d --- /dev/null +++ b/pom-swt.xml @@ -0,0 +1,71 @@ +<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>javafx.swt</name> + <packaging>jar</packaging> + <artifactId>javafx.swt</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.eclipse.swt</groupId> + <artifactId>swt</artifactId> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>jfxswt</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/pom-web.xml b/pom-web.xml new file mode 100644 index 0000000..8ca328d --- /dev/null +++ b/pom-web.xml @@ -0,0 +1,95 @@ +<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>javafx.web</name> + <packaging>jar</packaging> + <artifactId>javafx.web</artifactId> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>buildSrc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.media</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.controls</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.8</source> + <target>1.8</target> + <compilerArgs> + <arg>-bootclasspath</arg> + <arg>/usr/lib/jvm/java-1.8.0-openjdk/jre/lib/rt.jar</arg> + <arg>-XDignore.symbol.file</arg> + <arg>-XDuseUnsharedTable=true</arg> + <arg>-proc:none</arg> + <arg>-g:source,lines,vars</arg> + </compilerArgs> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>javafx.web</finalName> + </configuration> + </plugin> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <phase>process-resources</phase> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + <configuration> + <target> + <copy todir="src/main/java"> + <fileset dir="src/main/native/Source/WebCore/bindings/java/dom3/java"/> + </copy> + </target> + </configuration> + </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> diff --git a/shade.xml b/shade.xml new file mode 100644 index 0000000..ee40e4c --- /dev/null +++ b/shade.xml @@ -0,0 +1,127 @@ +<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>shade</name> + <artifactId>shade</artifactId> + <groupId>org.openjfx</groupId> + <version>@RELEASE_VERSION@</version> + <parent> + <groupId>org.openjfx</groupId> + <artifactId>javafx</artifactId> + <version>@RELEASE_VERSION@</version> + <relativePath>../pom.xml</relativePath> + </parent> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.base</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics-prism-shaders</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.graphics-decora-shaders</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.controls</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.swing</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.fxml</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.media</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.web</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>javafx.builders</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-shade-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>shade</goal> + </goals> + <configuration> + <artifactSet> + <includes> + <include>org.openjfx:javafx.base</include> + <include>org.openjfx:javafx.graphics</include> + <include>org.openjfx:javafx.graphics-prism-shaders</include> + <include>org.openjfx:javafx.graphics-decora-shaders</include> + <include>org.openjfx:javafx.controls</include> + <include>org.openjfx:javafx.swing</include> + <include>org.openjfx:javafx.fxml</include> + <include>org.openjfx:javafx.media</include> + <include>org.openjfx:javafx.web</include> + <include>org.openjfx:javafx.builders</include> + </includes> + </artifactSet> + <filters> + <filter> + <artifact>org.openjfx:javafx.graphics-prism-shaders</artifact> + <excludes> + <exclude>**/*.java</exclude> + <exclude>**/*.cc</exclude> + </excludes> + </filter> + <filter> + <artifact>org.openjfx:*</artifact> + <excludes> + <exclude>**/*.java</exclude> + <exclude>**/*.cc</exclude> + </excludes> + </filter> + <filter> + <artifact>org.openjfx:javafx.builders</artifact> + <excludes> + <exclude>**/CustomTransferBuilder.*</exclude> + </excludes> + </filter> + </filters> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>jfxrt</finalName> + </configuration> + </plugin> + </plugins> + </build> + +</project> @@ -0,0 +1 @@ +SHA512 (8u202-b07.tar.bz2) = 79a3cd939a9bbdee2614ebb148a50f1407376823db8662c180a5497e67a324e8500a5ca89575927f5232d206d5d2e3fa74aa624ae6bc63c96a06b136e06046c8 |