blob: 94d198783ac9543d12ac7501c23ace87714901ce [file] [log] [blame]
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
ext.ARMV7HF = [:]
// Define the location of the sdk and toolchain
def crossLibsPackage="armv6hf-02"
def sdk=file("${rootProject.CROSS_TOOLS_DIR}/$crossLibsPackage")
def compilerHome=file("${rootProject.CROSS_TOOLS_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux")
def compilerPrefix
def jniPlatform
if (IS_LINUX) {
fetchExternalTools('ARMV7HF',
["${crossLibsPackage}.tgz",
"gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux.tgz" ],
rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS)
compilerHome=file("${rootProject.CROSS_TOOLS_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux")
compilerPrefix="arm-linux-gnueabihf-"
jniPlatform="linux"
} else if (IS_MAC) {
fetchExternalTools('ARMV7HF',
["${crossLibsPackage}.tgz"],
rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS)
compilerHome=file("/usr/local/arm-linux")
compilerPrefix="arm-linux-"
jniPlatform="darwin"
} else {
fail("armv7hf Cannot build on this platform")
}
if (rootProject.hasProperty("ARMV7HF_COMPILER")) {
logger.quiet "Using alternate ARMV7HF_COMPILER $rootProject.ARMV7HF_COMPILER"
compilerHome=file(rootProject.ARMV7HF_COMPILER);
}
if (rootProject.hasProperty("ARMV7HF_COMPILER_PREFIX")) {
logger.quiet "Using alternate ARMV7HF_COMPILER_PREFIX $rootProject.ARMV7HF_COMPILER_PREFIX"
compilerPrefix="${rootProject.ARMV7HF_COMPILER_PREFIX}"
}
def compiler = file("$compilerHome/bin/${compilerPrefix}gcc").getAbsolutePath()
def linker = file("$compilerHome/bin/${compilerPrefix}g++").getAbsolutePath()
// Declare whether this particular target file applies to the current system
ARMV7HF.canBuild = (IS_LINUX || IS_MAC) && compilerHome.exists() && sdk.exists()
if (!ARMV7HF.canBuild) {
if (!compilerHome.exists()) println "ERROR: Missing compiler $compilerHome"
if (!sdk.exists()) println "ERROR: Missing sdk $sdk"
fail("armv7hf missing required tools")
}
// Lambda for naming the generated libs
ARMV7HF.library = { name -> return "lib${name}.so" as String }
ARMV7HF.compileSwing = false;
ARMV7HF.compileSWT = false;
ARMV7HF.compileFXPackager = false;
ARMV7HF.compileWebnodeNative = false;
ARMV7HF.compileMediaNative = false;
ARMV7HF.includeLens = false
ARMV7HF.includeMonocle = true
ARMV7HF.includeNull3d = true
ARMV7HF.includeEGL = true
ARMV7HF.includeSwing = false
ARMV7HF.includeSWT = false
ARMV7HF.includeGTK = true
ARMV7HF.javafxPlatformDefault="monocle"
// Libraries end up in the sdk/rt/lib/arm directory for arm builds
ARMV7HF.arch = "arm"
ARMV7HF.libDest = "lib/arm"
def commonFlags = [
"-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
"-W", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
// Specify the compilation parameters and link parameters
def ccFlags = [
commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/$jniPlatform", "-c",
IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten()
//ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"])
def linkFlags = ["-shared", commonFlags].flatten()
// Specify the compilation parameters and link parameters
def extraCFlags = [
ccFlags,
"-mthumb", "-march=armv7-a", "-mfloat-abi=hard", "-mfpu=vfp",
"-I$sdk/usr/include",
"-I$sdk/opt/vc/include",
"-I$sdk/opt/vc/include/interface/vcos/pthreads",
"-I$sdk/opt/vc/include/interface/vmcs_host/linux",
"-DOMAP3", "-DUSE_DISPMAN"].flatten();
//See if we should build for imx6
def imxHeader=file("$sdk/usr/include/linux/mxcfb.h")
if (imxHeader.exists()) {
extraCFlags = [extraCFlags,"-DIMX6_PLATFORM"].flatten();
}
def extraLFlags = [
linkFlags,
"-L$sdk/lib/arm-linux-gnueabihf",
"-L$sdk/usr/lib",
"-L$sdk/usr/lib/arm-linux-gnueabihf",
"-L$sdk/opt/vc/lib"].flatten()
def lensLFlags = [extraLFlags, "-lpthread", "-ludev", "-ldl", "-lm"].flatten()
def monocleCFlags = [
extraCFlags,
"-Werror",
"-I", file("modules/graphics/src/main/native-glass/monocle/")].flatten();
def monocleLFlags = [extraLFlags, "-ldl", "-lm"].flatten()
def fontCFlags = [extraCFlags].flatten()
def fontLFlags = [extraLFlags, "-ldl"].flatten()
def iioCFlags = [extraCFlags,
"-Wno-main" // suppress warnings about using main as a variable, 3rd party code
].flatten()
def iioLFlags = [extraLFlags].flatten()
def es2EglfbCFlags = [extraCFlags, "-DIS_EGLFB", "-DLINUX"].flatten()
def es2EglfbLFlags = [extraLFlags].flatten()
def es2MonocleCFlags = [extraCFlags, "-DIS_EGLFB", "-DLINUX"].flatten()
def es2MonocleLFlags = [extraLFlags].flatten()
def es2X11CFlags = [extraCFlags, "-DUSE_XSHM", "-DDEBUG", "-DIS_EGLX11", "-DLINUX"].flatten()
def es2X11LFlags = [extraLFlags, "-lX11", "-lXext", "-lXdmcp", "-lXau"].flatten()
def mediaCFlags = [extraCFlags,
"-I$sdk/usr/include/gstreamer-0.10",
"-I$sdk/usr/include/glib-2.0",
"-I$sdk/usr/lib/arm-linux-gnueabihf/glib-2.0/include",
"-DENABLE_NATIVE_SOURCE=1", "-DENABLE_GST_FFMPEG=1"].flatten()
def mediaLFlags = [extraLFlags, "-lgstreamer-0.10", "-lgstapp-0.10",
"-lgstbase-0.10", "-lglib-2.0", "-lgobject-2.0", "-lgmodule-2.0", "-lgthread-2.0"].flatten()
def webCFlags = [extraCFlags].flatten()
def webLFlags = [extraLFlags].flatten()
def gtkCFlags = [extraCFlags].flatten()
def gtkLFlags = [extraLFlags].flatten()
def gtkCFlags_pkgconfig = "-pthread -I${sdk}/usr/include/gtk-2.0 -I${sdk}/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I${sdk}/usr/include/atk-1.0 -I${sdk}/usr/include/cairo -I${sdk}/usr/include/gdk-pixbuf-2.0 -I${sdk}/usr/include/pango-1.0 -I${sdk}/usr/include/gio-unix-2.0/ -I${sdk}/usr/include -I${sdk}/usr/include/glib-2.0 -I${sdk}/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I${sdk}/usr/include/pixman-1 -I${sdk}/usr/include/freetype2 -I${sdk}/usr/include/libpng12"
def gtkLFlags_pkgconfig = "-pthread -L${sdk}/usr/lib/arm-linux-gnueabihf -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lXtst"
gtkCFlags.addAll(gtkCFlags_pkgconfig.split(" "))
gtkLFlags.addAll(gtkLFlags_pkgconfig.split(" "))
def monoclePlatformAdditions = """
monocle.glass.platform=Monocle
monocle.prism.order=es2,sw
monocle.prism.eglfb=true
monocle.prism.lcdtext=false
monocle.prism.maxvram=128m
monocle.prism.targetvram=112m
monocle.use.egl=true
monocle.use.gles2=true
monocle.embedded=monocle
monocle.com.sun.javafx.isEmbedded=true
monocle.doNativeComposite=true
monocle.com.sun.javafx.scene.control.skin.FXVK.cache=true
monocle.prism.glDepthSize=0
monocle.com.sun.javafx.gestures.zoom=true
monocle.com.sun.javafx.gestures.rotate=true
monocle.com.sun.javafx.gestures.scroll=true"""
def lensPlatformAdditions = """
directfb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
directfb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
directfb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
directfb.glass.platform=Lens
directfb.glass.lens=dfb
directfb.prism.order=sw
directfb.com.sun.javafx.isEmbedded=true
directfb.com.sun.javafx.scene.control.skin.FXVK.cache=true
directfb.com.sun.javafx.gestures.zoom=true
directfb.com.sun.javafx.gestures.rotate=true
directfb.com.sun.javafx.gestures.scroll=true
eglfb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
eglfb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
eglfb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
eglfb.glass.platform=Lens
eglfb.glass.lens=eglfb
eglfb.prism.order=es2
eglfb.prism.eglfb=true
eglfb.prism.lcdtext=false
eglfb.prism.maxvram=128m
eglfb.prism.targetvram=112m
eglfb.use.egl=true
eglfb.use.gles2=true
eglfb.embedded=eglfb
eglfb.com.sun.javafx.isEmbedded=true
eglfb.doNativeComposite=true
eglfb.com.sun.javafx.scene.control.skin.FXVK.cache=true
eglfb.prism.glDepthSize=0
eglfb.com.sun.javafx.gestures.zoom=true
eglfb.com.sun.javafx.gestures.rotate=true
eglfb.com.sun.javafx.gestures.scroll=true
fb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
fb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
fb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
fb.glass.platform=Lens
fb.glass.lens=fb
fb.prism.order=sw
fb.com.sun.javafx.isEmbedded=true
fb.glass.restrictWindowToScreen=true
fb.com.sun.javafx.scene.control.skin.FXVK.cache=true
fb.com.sun.javafx.gestures.zoom=true
fb.com.sun.javafx.gestures.rotate=true
fb.com.sun.javafx.gestures.scroll=true
eglx11.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
eglx11.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
eglx11.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
eglx11.glass.platform=Lens
eglx11.glass.lens=eglx11
eglx11.prism.order=es2
eglx11.prism.eglx11=true
eglx11.prism.lcdtext=false
eglx11.prism.maxvram=128m
eglx11.prism.targetvram=112m
eglx11.use.egl=true
eglx11.use.gles2=true
eglx11.embedded=eglx11
eglx11.com.sun.javafx.isEmbedded=true
eglx11.com.sun.javafx.scene.control.skin.FXVK.cache=true
eglx11.prism.glDepthSize=0
eglx11.com.sun.javafx.gestures.zoom=true
eglx11.com.sun.javafx.gestures.rotate=true
eglx11.com.sun.javafx.gestures.scroll=true"""
def gtkPlatformAdditions = """
gtk.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
gtk.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
gtk.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
gtk.glass.platform=gtk
gtk.prism.order=sw
gtk.com.sun.javafx.isEmbedded=true
gtk.com.sun.javafx.scene.control.skin.FXVK.cache=true
gtk.com.sun.javafx.gestures.zoom=true
gtk.com.sun.javafx.gestures.rotate=true
gtk.com.sun.javafx.gestures.scroll=true"""
def pangoCCFlags = [extraCFlags, "-D_ENABLE_PANGO"];
def pangoLinkFlags = [extraLFlags];
def pangoCFlags_pkgconfig = "-pthread -I${sdk}/usr/include/pango-1.0 -I${sdk}/usr/include/freetype2 -I${sdk}/usr/include -I${sdk}/usr/include/glib-2.0 -I${sdk}/usr/lib/arm-linux-gnueabihf/glib-2.0/include"
def pangoLFlags_pkgconfig = "-L${sdk}/usr/lib/arm-linux-gnueabihf -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0"
pangoCCFlags.addAll(pangoCFlags_pkgconfig.split(" "))
pangoLinkFlags.addAll(pangoLFlags_pkgconfig.split(" "))
def freetypeCCFlags = [ext.IS_COMPILE_PANGO ? "-D_ENABLE_PANGO" :
ext.IS_COMPILE_HARFBUZZ ? "-D_ENABLE_HARFBUZZ" : ""]
def freetypeLinkFlags = []
def freetypeCFlags_pkgconfig = "-I${sdk}/usr/include/freetype2 -I${sdk}/usr/include"
def freetypeLFlags_pkgconfig = "-L${sdk}/usr/lib/arm-linux-gnueabihf -lfreetype"
freetypeCCFlags.addAll(freetypeCFlags_pkgconfig.split(" "))
freetypeLinkFlags.addAll(freetypeLFlags_pkgconfig.split(" "))
ARMV7HF.javafxPlatformProperties = "javafx.platform=${ARMV7HF.javafxPlatformDefault}"
ARMV7HF.glass = [:]
ARMV7HF.glass.javahInclude = [
"com/sun/glass/events/**",
"com/sun/glass/ui/*"]
ARMV7HF.glass.variants = [ ]
if (ARMV7HF.includeLens) {
ARMV7HF.glass.variants.addAll("eglfb", "directfb", "fb", "lensport" );
ARMV7HF.glass.javahInclude.addAll("com/sun/glass/ui/lens/*");
ARMV7HF.javafxPlatformProperties = ARMV7HF.javafxPlatformProperties + lensPlatformAdditions
}
if (ARMV7HF.includeMonocle) {
ARMV7HF.glass.variants.addAll("monocle", "monocle_x11");
ARMV7HF.glass.javahInclude.addAll(
"com/sun/glass/ui/monocle/*",
"com/sun/glass/ui/monocle/dispman/*",
"com/sun/glass/ui/monocle/mx6/*",
"com/sun/glass/ui/monocle/linux/*",
"com/sun/glass/ui/monocle/util/*",
"com/sun/glass/ui/monocle/x11/*");
ARMV7HF.javafxPlatformProperties = ARMV7HF.javafxPlatformProperties + monoclePlatformAdditions
}
if (ARMV7HF.includeGTK) {
ARMV7HF.glass.variants.addAll("gtk");
ARMV7HF.glass.javahInclude.addAll("com/sun/glass/ui/gtk/*");
ARMV7HF.javafxPlatformProperties = ARMV7HF.javafxPlatformProperties + gtkPlatformAdditions
}
ARMV7HF.glass.lib = "glass"
ARMV7HF.glass.lensport = [:]
ARMV7HF.glass.lensport.nativeSource = [
file("modules/graphics/src/main/native-glass/lens/lensport") ]
ARMV7HF.glass.lensport.compiler = compiler
ARMV7HF.glass.lensport.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX", "-DISEGLFB",
"-DLENSPORT", "-I", file("modules/graphics/src/main/native-glass/lens/") ].flatten()
ARMV7HF.glass.lensport.linker = linker
ARMV7HF.glass.lensport.linkFlags = [lensLFlags].flatten()
ARMV7HF.glass.lensport.lib = "lens_porting"
ARMV7HF.glass.monocle = [:]
ARMV7HF.glass.monocle.nativeSource = [
file("modules/graphics/src/main/native-glass/monocle"),
file("modules/graphics/src/main/native-glass/monocle/dispman"),
file("modules/graphics/src/main/native-glass/monocle/mx6"),
file("modules/graphics/src/main/native-glass/monocle/linux"),
file("modules/graphics/src/main/native-glass/monocle/util") ]
ARMV7HF.glass.monocle.compiler = compiler
ARMV7HF.glass.monocle.ccFlags = monocleCFlags
ARMV7HF.glass.monocle.linker = linker
ARMV7HF.glass.monocle.linkFlags = monocleLFlags
ARMV7HF.glass.monocle.lib = "glass_monocle"
ARMV7HF.glass.monocle_x11 = [:]
ARMV7HF.glass.monocle_x11.nativeSource = [
file("modules/graphics/src/main/native-glass/monocle/util"),
file("modules/graphics/src/main/native-glass/monocle/x11") ]
ARMV7HF.glass.monocle_x11.compiler = compiler
ARMV7HF.glass.monocle_x11.ccFlags = monocleCFlags
ARMV7HF.glass.monocle_x11.linker = linker
ARMV7HF.glass.monocle_x11.linkFlags = [ monocleLFlags, "-lX11" ].flatten()
ARMV7HF.glass.monocle_x11.lib = "glass_monocle_x11"
ARMV7HF.glass.eglfb = [:]
// TODO when building headless, use lens/cursor/nullcursor/
// otherwise we use lens/cursor/fbCursor/ and lens/input/udev
// TODO when USE_RFB is specified use lens/rfb
// TODO use /eglfb/x11ContainerScreen when using eglfb and EGL_X11_FB_CONTAINER
// TODO use /headless/headlessScreen when using headless
ARMV7HF.glass.eglfb.nativeSource = [
file("modules/graphics/src/main/native-glass/lens"),
file("modules/graphics/src/main/native-glass/lens/wm"),
file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
file("modules/graphics/src/main/native-glass/lens/input/udev"),
file("modules/graphics/src/main/native-glass/lens/wm/screen/fbdevScreen.c") ]
ARMV7HF.glass.eglfb.compiler = compiler
ARMV7HF.glass.eglfb.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX", "-DISEGLFB"].flatten()
ARMV7HF.glass.eglfb.linker = linker
ARMV7HF.glass.eglfb.linkFlags = [lensLFlags].flatten()
ARMV7HF.glass.eglfb.lib = "glass_lens_eglfb"
ARMV7HF.glass.directfb = [:]
ARMV7HF.glass.directfb.nativeSource = [
file("modules/graphics/src/main/native-glass/lens"),
file("modules/graphics/src/main/native-glass/lens/wm"),
file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
file("modules/graphics/src/main/native-glass/lens/input/udev"),
file("modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c") ]
ARMV7HF.glass.directfb.compiler = compiler
ARMV7HF.glass.directfb.ccFlags = ["-ffast-math", extraCFlags, "-I$sdk/usr/include/directfb", "-DLINUX"].flatten()
ARMV7HF.glass.directfb.linker = linker
ARMV7HF.glass.directfb.linkFlags = [lensLFlags].flatten()
ARMV7HF.glass.directfb.lib = "glass_lens_dfb"
ARMV7HF.glass.fb = [:]
ARMV7HF.glass.fb.nativeSource = [
file("modules/graphics/src/main/native-glass/lens"),
file("modules/graphics/src/main/native-glass/lens/wm"),
file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
file("modules/graphics/src/main/native-glass/lens/input/udev"),
file("modules/graphics/src/main/native-glass/lens/wm/screen/fbdevScreen.c") ]
ARMV7HF.glass.fb.compiler = compiler
ARMV7HF.glass.fb.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten()
ARMV7HF.glass.fb.linker = linker
ARMV7HF.glass.fb.linkFlags = [lensLFlags].flatten()
ARMV7HF.glass.fb.lib = "glass_lens_fb"
ARMV7HF.glass.eglx11 = [:]
ARMV7HF.glass.eglx11.nativeSource = [
file("modules/graphics/src/main/native-glass/lens"),
file("modules/graphics/src/main/native-glass/lens/wm"),
file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
file("modules/graphics/src/main/native-glass/lens/input/udev"),
file("modules/graphics/src/main/native-glass/lens/wm/screen/x11ContainerScreen.c")]
//file("modules/graphics/src/main/native-glass/lens/wm/screen")]
ARMV7HF.glass.eglx11.compiler = compiler
ARMV7HF.glass.eglx11.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten()
ARMV7HF.glass.eglx11.linker = linker
ARMV7HF.glass.eglx11.linkFlags = [lensLFlags].flatten()
ARMV7HF.glass.eglx11.lib = "glass_lens_eglx11"
ARMV7HF.glass.gtk = [:]
ARMV7HF.glass.gtk.nativeSource = file("modules/graphics/src/main/native-glass/gtk")
ARMV7HF.glass.gtk.compiler = compiler
ARMV7HF.glass.gtk.ccFlags = ["-ffast-math", gtkCFlags, "-DLINUX"].flatten()
ARMV7HF.glass.gtk.linker = linker
ARMV7HF.glass.gtk.linkFlags = [gtkLFlags, "-lstdc++"].flatten()
ARMV7HF.glass.gtk.lib = "glass"
ARMV7HF.decora = [:]
ARMV7HF.decora.compiler = compiler
ARMV7HF.decora.ccFlags = extraCFlags
ARMV7HF.decora.linker = linker
ARMV7HF.decora.linkFlags = extraLFlags
ARMV7HF.decora.lib = "decora_sse"
ARMV7HF.prism = [:]
ARMV7HF.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
ARMV7HF.prism.nativeSource = file("modules/graphics/src/main/native-prism")
ARMV7HF.prism.compiler = compiler
ARMV7HF.prism.ccFlags = [extraCFlags].flatten()
ARMV7HF.prism.linker = linker
ARMV7HF.prism.linkFlags = [extraLFlags].flatten()
ARMV7HF.prism.lib = "prism_common"
ARMV7HF.prismSW = [:]
ARMV7HF.prismSW.javahInclude = ["com/sun/pisces/**/*"]
ARMV7HF.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw")
ARMV7HF.prismSW.compiler = compiler
ARMV7HF.prismSW.ccFlags = [extraCFlags].flatten()
ARMV7HF.prismSW.linker = linker
ARMV7HF.prismSW.linkFlags = [extraLFlags].flatten()
ARMV7HF.prismSW.lib = "prism_sw"
ARMV7HF.iio = [:]
ARMV7HF.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
ARMV7HF.iio.nativeSource = [
file("modules/graphics/src/main/native-iio"),
file("modules/graphics/src/main/native-iio/libjpeg7")]
ARMV7HF.iio.compiler = compiler
ARMV7HF.iio.ccFlags = iioCFlags
ARMV7HF.iio.linker = linker
ARMV7HF.iio.linkFlags = iioLFlags
ARMV7HF.iio.lib = "javafx_iio"
ARMV7HF.prismES2 = [:]
ARMV7HF.prismES2.variants = ["eglfb", "monocle"]
ARMV7HF.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
ARMV7HF.prismES2.eglfb = [:]
ARMV7HF.prismES2.eglfb.nativeSource = [
file("modules/graphics/src/main/native-prism-es2"),
file("modules/graphics/src/main/native-prism-es2/GL"),
file("modules/graphics/src/main/native-prism-es2/eglWrapper"),
file("modules/graphics/src/main/native-prism-es2/eglfb")
]
ARMV7HF.prismES2.eglfb.compiler = compiler
ARMV7HF.prismES2.eglfb.ccFlags = [ es2EglfbCFlags, "-I", ARMV7HF.glass.lensport.nativeSource ].flatten()
ARMV7HF.prismES2.eglfb.linker = linker
ARMV7HF.prismES2.eglfb.linkFlags = [ es2EglfbLFlags, "-dl" ] .flatten()
ARMV7HF.prismES2.eglfb.lib = "prism_es2_eglfb"
ARMV7HF.prismES2.monocle= [:]
ARMV7HF.prismES2.monocle.nativeSource = [
file("modules/graphics/src/main/native-prism-es2"),
file("modules/graphics/src/main/native-prism-es2/GL"),
file("modules/graphics/src/main/native-prism-es2/monocle")
]
ARMV7HF.prismES2.monocle.compiler = compiler
ARMV7HF.prismES2.monocle.ccFlags = [ es2EglfbCFlags, "-I", ARMV7HF.glass.lensport.nativeSource ].flatten()
ARMV7HF.prismES2.monocle.linker = linker
ARMV7HF.prismES2.monocle.linkFlags =[ es2EglfbLFlags, "-ldl" ].flatten()
ARMV7HF.prismES2.monocle.lib = "prism_es2_monocle"
ARMV7HF.prismES2.eglx11 = [:]
ARMV7HF.prismES2.eglx11.nativeSource = [
file("modules/graphics/src/main/native-prism-es2"),
file("modules/graphics/src/main/native-prism-es2/GL"),
file("modules/graphics/src/main/native-prism-es2/eglx11")
]
ARMV7HF.prismES2.eglx11.compiler = compiler
ARMV7HF.prismES2.eglx11.ccFlags = es2X11CFlags
ARMV7HF.prismES2.eglx11.linker = linker
ARMV7HF.prismES2.eglx11.linkFlags = es2X11LFlags
ARMV7HF.prismES2.eglx11.lib = "prism_es2_eglx11"
def closedDir = file("$projectDir/../rt-closed")
ARMV7HF.font = [:]
ARMV7HF.font.javahInclude = [
"com/sun/javafx/font/**/*",
"com/sun/javafx/text/**/*"]
ARMV7HF.font.nativeSource = [file("modules/graphics/src/main/native-font")]
ARMV7HF.font.compiler = compiler
ARMV7HF.font.ccFlags = fontCFlags
ARMV7HF.font.linker = linker
ARMV7HF.font.linkFlags = fontLFlags
ARMV7HF.font.lib = "javafx_font"
ARMV7HF.fontT2K = [:]
ARMV7HF.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
ARMV7HF.fontT2K.nativeSource = [
file("$closedDir/javafx-font-t2k-native/src"),
file("$closedDir/javafx-font-t2k-native/src/layout")]
ARMV7HF.fontT2K.compiler = compiler
ARMV7HF.fontT2K.ccFlags = [fontCFlags, "-DLE_STANDALONE"].flatten()
ARMV7HF.fontT2K.linker = linker
ARMV7HF.fontT2K.linkFlags = fontLFlags
ARMV7HF.fontT2K.lib = "javafx_font_t2k"
ARMV7HF.fontFreetype = [:]
ARMV7HF.fontFreetype.javahInclude = ["com/sun/javafx/font/freetype/OSFreetype.class*"]
ARMV7HF.fontFreetype.nativeSource = ["src/main/native-font/freetype.c"]
ARMV7HF.fontFreetype.compiler = compiler
ARMV7HF.fontFreetype.ccFlags = ["-DJFXFONT_PLUS", ccFlags, fontCFlags, freetypeCCFlags].flatten()
ARMV7HF.fontFreetype.linker = linker
ARMV7HF.fontFreetype.linkFlags = [linkFlags, fontLFlags, freetypeLinkFlags, "-ldl"].flatten()
ARMV7HF.fontFreetype.lib = "javafx_font_freetype"
ARMV7HF.fontPango = [:]
ARMV7HF.fontPango.javahInclude = ["com/sun/javafx/font/freetype/OSPango.class"]
ARMV7HF.fontPango.nativeSource = ["src/main/native-font/pango.c"]
ARMV7HF.fontPango.compiler = compiler
ARMV7HF.fontPango.ccFlags = ["-DJFXFONT_PLUS", ccFlags, pangoCCFlags].flatten()
ARMV7HF.fontPango.linker = linker
ARMV7HF.fontPango.linkFlags = [linkFlags, pangoLinkFlags].flatten()
ARMV7HF.fontPango.lib = "javafx_font_pango"
ARMV7HF.webkit = [:]
ARMV7HF.webkit.binDir = "$compilerHome/bin"
ARMV7HF.webkit.compiler = compiler
ARMV7HF.webkit.linker = linker
ARMV7HF.webkit.ar = file("$compilerHome/bin/${compilerPrefix}ar").getAbsolutePath()
ARMV7HF.webkit.objcopy = file("$compilerHome/bin/${compilerPrefix}objcopy").getAbsolutePath()
ARMV7HF.webkit.strip = file("$compilerHome/bin/${compilerPrefix}strip").getAbsolutePath()
ARMV7HF.webkit.ccFlags = extraCFlags.join(' ')
ARMV7HF.webkit.linkFlags = extraLFlags.join(' ')
ARMV7HF.disableMedia = true
ARMV7HF.media = [:]
ARMV7HF.media.compiler = compiler
ARMV7HF.media.linker = linker
ARMV7HF.media.extra_cflags = mediaCFlags.join(' ')
ARMV7HF.media.extra_ldflags = mediaLFlags.join(' ')
ARMV7HF.deploy = [:]
ARMV7HF.deploy.publicLibraryFilter = [
"fxavcodecplugin-52.so",
"fxavcodecplugin-53.so",
"fxplugins.so",
"libjfxwebkit.so",
"libgstplugins-lite.so",
"libgstreamer-lite.so",
"libprism_es2_eglx11.so",
"libglass_lens_fb.so"
]
ARMV7HF.deploy.compressBigJar=true