1 /*
   2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 ext.ARMV6SF = [:]
  27 
  28 fetchExternalTools('ARMV6SF', [ "armv6-vfp-04.tgz" ], 
  29   rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS)
  30 
  31 // Define the location of the sdk and toolchain
  32 def sdk=file("${rootProject.CROSS_TOOLS_DIR}/armv6-vfp-04")
  33 
  34 def compilerHome=file("/opt/arm-linaro-4.7")
  35 if (rootProject.hasProperty("ARMV6SF_COMPILER")) {
  36     logger.quiet "Using alternate ARMV6SF_COMPILER $rootProject.ARMV6SF_COMPILER"
  37     compilerHome=file(rootProject.ARMV6SF_COMPILER);
  38 }
  39 
  40 // Declare whether this particular target file applies to the current system
  41 ARMV6SF.canBuild = IS_LINUX && compilerHome.exists() && sdk.exists()
  42 if (!ARMV6SF.canBuild) {
  43     if (!compilerHome.exists()) println "ERROR: Mising compiler $compilerHome"
  44     if (!sdk.exists()) println "ERROR: Mising sdk $sdk"
  45     return;
  46 }
  47 
  48 // Lambda for naming the generated libs
  49 ARMV6SF.library = { name -> return "lib${name}.so" as String }
  50 
  51 // alias for this platform in legacy artifacts
  52 ARMV6SF.artifactsName = "armv6-vfp"
  53 
  54 ARMV6SF.compileSwing = false;
  55 ARMV6SF.compileSWT = false;
  56 ARMV6SF.compileFXPackager = false;
  57 ARMV6SF.compileDesignTime = false;
  58 
  59 // Libraries end up in the sdk/rt/lib/arm directory for arm builds
  60 ARMV6SF.libDest = "lib/arm"
  61 
  62 // TODO this is garbage. Each target file should define what it includes,
  63 // not what it excludes.
  64 ARMV6SF.jfxrtJarExcludes = [
  65     "**/*.hlsl",
  66     "com/sun/glass/ui/win",
  67     "com/sun/glass/ui/accessible/win",
  68     "com/sun/prism/d3d",
  69     "com/sun/prism/es2/gl/win",
  70     //"com/sun/prism/null3d",
  71     "com/sun/scenario/effect/impl/hw/d3d",
  72     
  73     "com/sun/glass/events/mac",
  74     "com/sun/glass/ui/mac",
  75     "com/sun/glass/ui/accessible/mac",
  76     "com/sun/prism/es2/gl/mac",
  77         
  78     "com/sun/glass/ui/android",
  79     
  80     "com/sun/glass/ui/ios",
  81     
  82     "com/sun/glass/ui/swt", // SWT glass
  83     
  84     "javafx/embed/swing", // Swing Interop
  85     
  86     "javafx/embed/swt", // SWT Interop
  87 
  88     "com/sun/prism/es2/MacGL*",
  89     "com/sun/prism/es2/IOSGL*",
  90     "com/sun/prism/es2/WinGL*",
  91 ]
  92 
  93 def commonFlags = [
  94         "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
  95         "-W", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
  96 // Specify the compilation parameters and link parameters
  97 def ccFlags = [
  98         commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/linux", "-c",
  99         IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : "-O2"].flatten()
 100 //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"])
 101 def linkFlags = ["-shared", commonFlags].flatten()
 102 
 103 // Specify the compilation parameters and link parameters
 104 def extraCFlags = [
 105         "-I", "-L",
 106         ccFlags,
 107         "-march=armv6", "-mfloat-abi=softfp", "-mfpu=vfp",
 108         "-I$sdk/usr/include",
 109         "-D_GNU_SOURCE", "-DOMAP3"].flatten();
 110 
 111 //See if we should build for imx6
 112 def imxHeader=file("$sdk/usr/include/linux/mxcfb.h")
 113 if (imxHeader.exists()) {
 114         extraCFlags = [extraCFlags,"-DIMX6_PLATFORM"].flatten();
 115 }
 116 
 117 def extraLFlags = [
 118         "-I", "-L",
 119         linkFlags,
 120         "-Wl,-rpath-link", "$sdk/usr/lib",
 121         "-L$sdk/usr/lib"].flatten()
 122 
 123 def x11CFlags = [extraCFlags, "-DUSE_XSHM"].flatten()
 124 def x11LFlags = [extraLFlags, "-lX11", "-lXext"].flatten()
 125 def eglCFlags = [extraCFlags].flatten()
 126 def eglLFlags = [extraLFlags].flatten()
 127 def dfbCFlags = ["-I$sdk/usr/include/directfb"]
 128 def dfbLFlags = ["-ldl"]
 129 // TODO dfb.args=disable-module=ps2mouse,disable-module=keyboard
 130 
 131 def lensLFlags = [extraLFlags, "-lpthread", "-ludev", "-ldl", "-lm"].flatten()
 132 def glassCFlags = ["-ffast-math"]
 133 def glassLFlags = []
 134 
 135 def fontCFlags = [extraCFlags].flatten()
 136 def fontLFlags = [extraLFlags].flatten()
 137 
 138 def iioCFlags = [extraCFlags].flatten()
 139 def iioLFlags = [extraLFlags].flatten()
 140 
 141 def es2CFlags = [extraCFlags].flatten()
 142 def es2LFlags = [extraLFlags, x11LFlags, eglLFlags].flatten()
 143 
 144 def es2EglfbCFlags = [extraCFlags, eglCFlags, "-DIS_EGLFB", "-DLINUX"].flatten()
 145 def es2EglfbLFlags = [extraLFlags, eglLFlags].flatten()
 146 
 147 def es2X11CFlags = [extraCFlags, eglCFlags, x11CFlags, "-DDEBUG", "-DIS_EGLX11", "-DLINUX"].flatten()
 148 def es2X11LFlags = [extraLFlags, x11LFlags, eglLFlags, "-lXdmcp", "-lXau"].flatten()
 149 
 150 def prismSWCFlags = [extraCFlags].flatten()
 151 def prismSWLFlags = [extraLFlags].flatten()
 152 
 153 def mediaCFlags = [extraCFlags,
 154     "-I$sdk/usr/include/gstreamer-0.10",
 155     "-I$sdk/usr/include/glib-2.0",
 156     "-I$sdk/usr/lib/glib-2.0/include",
 157     "-DENABLE_NATIVE_SOURCE=1", "-DENABLE_GST_FFMPEG=1"].flatten()
 158 def mediaLFlags = [extraLFlags, "-lgstreamer-0.10", "-lgstapp-0.10",
 159     "-lgstbase-0.10", "-lglib-2.0", "-lgobject-2.0", "-lgmodule-2.0", "-lgthread-2.0"].flatten()
 160 
 161 def webCFlags = [extraCFlags].flatten()
 162 def webLFlags = [extraLFlags].flatten()
 163 
 164 // libraries to remove from the sdk
 165 //deploy.trim.public.library.filter= \
 166 //  fxavcodecplugin-52.so \
 167 //  fxavcodecplugin-53.so \
 168 //  fxplugins.so \
 169 //  libjfxwebkit.so \
 170 //  libgstplugins-lite.so \
 171 //  libgstreamer-lite.so \
 172 //  libprism-es2-eglx11.so \
 173 //  libglass-lens-fb.so \
 174 
 175 //defineProperty("CC", "gcc");
 176 //defineProperty("PRISM_CC", "cc");
 177 //defineProperty("PRISM_SW_CC", "cc");
 178 
 179 def gtkCFlags = [extraCFlags].flatten()
 180 def gtkLFlags = [extraLFlags].flatten()
 181 setupTools("armv6sf_tools",
 182     { propFile ->
 183         ByteArrayOutputStream results = new ByteArrayOutputStream();
 184         exec {
 185             commandLine("$sdk/bin/pkg-config", "--cflags", "gtk+-2.0", "gthread-2.0", "xtst");
 186             setStandardOutput(results);
 187         }
 188         propFile << "cflags=" << results.toString().trim() << "\n";
 189 
 190         results = new ByteArrayOutputStream();
 191         exec {
 192             commandLine "$sdk/bin/pkg-config", "--libs", "gtk+-2.0", "gthread-2.0", "xtst"
 193             standardOutput = results
 194         }
 195         propFile << "libs=" << results.toString().trim();
 196     },
 197     { properties ->
 198         gtkCFlags.addAll(properties.getProperty("cflags").split(" "))
 199         gtkLFlags.addAll(properties.getProperty("libs").split(" "))
 200     }
 201 )
 202 
 203 ARMV6SF.javafxPlatformProperties = """javafx.platform=eglfb
 204 directfb.glass.platform=Lens
 205 directfb.glass.lens=dfb
 206 directfb.prism.order=sw
 207 directfb.com.sun.javafx.isEmbedded=true
 208 directfb.com.sun.javafx.scene.control.skin.FXVK.cache=true
 209 eglfb.maxTextureSize=2048
 210 eglfb.glass.platform=Lens
 211 eglfb.glass.lens=eglfb
 212 eglfb.prism.order=es2
 213 eglfb.prism.eglfb=true
 214 eglfb.prism.lcdtext=false
 215 eglfb.use.egl=true
 216 eglfb.doNativeComposite=true
 217 eglfb.use.gles2=true
 218 eglfb.embedded=eglfb
 219 eglfb.com.sun.javafx.isEmbedded=true
 220 eglfb.com.sun.javafx.scene.control.skin.FXVK.cache=true
 221 eglfb.prism.glDepthSize=0
 222 fb.glass.platform=Lens
 223 fb.glass.lens=fb
 224 fb.prism.order=sw
 225 fb.com.sun.javafx.isEmbedded=true
 226 fb.glass.restrictWindowToScreen=true
 227 fb.com.sun.javafx.scene.control.skin.FXVK.cache=true
 228 eglx11.glass.platform=Lens
 229 eglx11.glass.lens=eglx11
 230 eglx11.prism.order=es2
 231 eglx11.prism.eglx11=true
 232 eglx11.prism.lcdtext=false
 233 eglx11.use.egl=true
 234 eglx11.use.gles2=true
 235 eglx11.embedded=eglx11
 236 eglx11.com.sun.javafx.isEmbedded=true
 237 eglx11.com.sun.javafx.scene.control.skin.FXVK.cache=true
 238 eglx11.prism.glDepthSize=0
 239 gtk.glass.platform=gtk
 240 gtk.prism.order=sw
 241 gtk.com.sun.javafx.isEmbedded=true
 242 gtk.com.sun.javafx.scene.control.skin.FXVK.cache=true"""
 243 
 244 def pangoCCFlags = [extraCFlags, "-D_ENABLE_PANGO"];
 245 def pangoLinkFlags = [extraLFlags];
 246 setupTools("armv6sf_pango_tools",
 247     { propFile ->
 248         ByteArrayOutputStream results = new ByteArrayOutputStream();
 249         exec {
 250             commandLine "$sdk/bin/pkg-config", "--cflags", "pangoft2"
 251             standardOutput = results
 252         }
 253         propFile << "cflags=" << results.toString().trim() << "\n";
 254 
 255         results = new ByteArrayOutputStream();
 256         exec {
 257             commandLine "$sdk/bin/pkg-config", "--libs", "pangoft2"
 258             standardOutput = results
 259         }
 260         propFile << "libs=" << results.toString().trim();
 261     },
 262     { properties ->
 263         pangoCCFlags.addAll(properties.getProperty("cflags").split(" "))
 264         pangoLinkFlags.addAll(properties.getProperty("libs").split(" "))
 265     }
 266 )
 267 
 268 def freetypeCCFlags = [ext.COMPILE_PANGO ? "-D_ENABLE_PANGO" : 
 269                        ext.COMPILE_HARFBUZZ ? "-D_ENABLE_HARFBUZZ" : ""]
 270 def freetypeLinkFlags = []
 271 setupTools("armv6sf_freetype_tools",
 272     { propFile ->
 273         ByteArrayOutputStream results = new ByteArrayOutputStream();
 274         exec {
 275             commandLine "$sdk/bin/pkg-config", "--cflags", "freetype2"
 276             standardOutput = results
 277         }
 278         propFile << "cflags=" << results.toString().trim() << "\n";
 279 
 280         results = new ByteArrayOutputStream();
 281         exec {
 282             commandLine "$sdk/bin/pkg-config", "--libs", "freetype2"
 283             standardOutput = results
 284         }
 285         propFile << "libs=" << results.toString().trim();
 286     },
 287     { properties ->
 288         freetypeCCFlags.addAll(properties.getProperty("cflags").split(" "))
 289         freetypeLinkFlags.addAll(properties.getProperty("libs").split(" "))
 290     }
 291 )
 292 
 293 def compiler = file("$compilerHome/bin/arm-linux-gnueabi-gcc").getAbsolutePath()
 294 def linker = file("$compilerHome/bin/arm-linux-gnueabi-g++").getAbsolutePath()
 295 
 296 ARMV6SF.glass = [:]
 297 ARMV6SF.glass.variants = ["eglfb", "directfb", "fb", "gtk", "lensport" ]
 298 ARMV6SF.glass.javahInclude = [
 299     "com/sun/glass/events/**",
 300     "com/sun/glass/ui/*",
 301     "com/sun/glass/ui/lens/*",
 302     "com/sun/glass/ui/gtk/*",
 303     "com/sun/glass/ui/accessible/gtk/*"]
 304 ARMV6SF.glass.lib = "glass"
 305 
 306 ARMV6SF.glass.lensport = [:]
 307 ARMV6SF.glass.lensport.nativeSource = [
 308     file("modules/graphics/src/main/native-glass/lens/lensport") ]
 309 ARMV6SF.glass.lensport.compiler = compiler
 310 ARMV6SF.glass.lensport.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX", "-DISEGLFB",
 311     "-DLENSPORT", "-I", file("modules/graphics/src/main/native-glass/lens/")].flatten()
 312 ARMV6SF.glass.lensport.linker = linker
 313 ARMV6SF.glass.lensport.linkFlags = [lensLFlags].flatten()
 314 ARMV6SF.glass.lensport.lib = "lens_porting"
 315 
 316 ARMV6SF.glass.eglfb = [:]
 317 // TODO when building headless, use lens/cursor/nullcursor/
 318 // otherwise we use lens/cursor/fbCursor/ and lens/input/udev
 319 
 320 // TODO when USE_RFB is specified use lens/rfb
 321 
 322 // TODO use /eglfb/x11ContainerScreen when using eglfb and EGL_X11_FB_CONTAINER
 323 // TODO use /headless/headlessScreen when using headless
 324 ARMV6SF.glass.eglfb.nativeSource = [
 325     file("modules/graphics/src/main/native-glass/lens"),
 326     file("modules/graphics/src/main/native-glass/lens/wm"),
 327     file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
 328     file("modules/graphics/src/main/native-glass/lens/input/udev"),
 329     file("modules/graphics/src/main/native-glass/lens/wm/screen/fbdevScreen.c")]
 330 ARMV6SF.glass.eglfb.compiler = compiler
 331 ARMV6SF.glass.eglfb.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX", "-DISEGLFB"].flatten()
 332 ARMV6SF.glass.eglfb.linker = linker
 333 ARMV6SF.glass.eglfb.linkFlags = [lensLFlags].flatten()
 334 ARMV6SF.glass.eglfb.lib = "glass_lens_eglfb"
 335 
 336 ARMV6SF.glass.directfb = [:]
 337 ARMV6SF.glass.directfb.nativeSource = [
 338     file("modules/graphics/src/main/native-glass/lens"),
 339     file("modules/graphics/src/main/native-glass/lens/wm"),
 340     file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
 341     file("modules/graphics/src/main/native-glass/lens/input/udev"),
 342     file("modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c")]
 343 ARMV6SF.glass.directfb.compiler = compiler
 344 ARMV6SF.glass.directfb.ccFlags = ["-ffast-math", extraCFlags, "-I$sdk/usr/include/directfb", "-DLINUX"].flatten()
 345 ARMV6SF.glass.directfb.linker = linker
 346 ARMV6SF.glass.directfb.linkFlags = [lensLFlags].flatten()
 347 ARMV6SF.glass.directfb.lib = "glass_lens_dfb"
 348 
 349 ARMV6SF.glass.fb = [:]
 350 ARMV6SF.glass.fb.nativeSource = [
 351     file("modules/graphics/src/main/native-glass/lens"),
 352     file("modules/graphics/src/main/native-glass/lens/wm"),
 353     file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
 354     file("modules/graphics/src/main/native-glass/lens/input/udev"),
 355     file("modules/graphics/src/main/native-glass/lens/wm/screen/fbdevScreen.c") ]
 356 ARMV6SF.glass.fb.compiler = compiler
 357 ARMV6SF.glass.fb.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten()
 358 ARMV6SF.glass.fb.linker = linker
 359 ARMV6SF.glass.fb.linkFlags = [lensLFlags].flatten()
 360 ARMV6SF.glass.fb.lib = "glass_lens_fb"
 361  
 362 ARMV6SF.glass.eglx11 = [:]
 363 ARMV6SF.glass.eglx11.nativeSource = [
 364     file("modules/graphics/src/main/native-glass/lens"),
 365     file("modules/graphics/src/main/native-glass/lens/wm"),
 366     file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"),
 367     file("modules/graphics/src/main/native-glass/lens/input/udev"),
 368     file("modules/graphics/src/main/native-glass/lens/wm/screen/x11ContainerScreen.c")]
 369 ARMV6SF.glass.eglx11.compiler = compiler
 370 ARMV6SF.glass.eglx11.ccFlags = ["-ffast-math", extraCFlags].flatten()
 371 ARMV6SF.glass.eglx11.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten()
 372 ARMV6SF.glass.eglx11.linker = linker
 373 ARMV6SF.glass.eglx11.linkFlags = [lensLFlags].flatten()
 374 ARMV6SF.glass.eglx11.lib = "glass_lens_eglx11"
 375  
 376 ARMV6SF.glass.gtk = [:]
 377 ARMV6SF.glass.gtk.nativeSource = file("modules/graphics/src/main/native-glass/gtk")
 378 ARMV6SF.glass.gtk.compiler = compiler
 379 ARMV6SF.glass.gtk.ccFlags = ["-ffast-math", gtkCFlags, "-DLINUX"].flatten()
 380 ARMV6SF.glass.gtk.linker = linker
 381 ARMV6SF.glass.gtk.linkFlags = [gtkLFlags, "-lstdc++"].flatten()
 382 ARMV6SF.glass.gtk.lib = "glass"
 383 
 384 ARMV6SF.decora = [:]
 385 ARMV6SF.decora.compiler = compiler
 386 ARMV6SF.decora.ccFlags = extraCFlags
 387 ARMV6SF.decora.linker = linker
 388 ARMV6SF.decora.linkFlags = extraLFlags
 389 ARMV6SF.decora.lib = "decora_sse"
 390 
 391 ARMV6SF.prism = [:]
 392 ARMV6SF.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
 393 ARMV6SF.prism.nativeSource = file("modules/graphics/src/main/native-prism")
 394 ARMV6SF.prism.compiler = compiler
 395 ARMV6SF.prism.ccFlags = es2CFlags
 396 ARMV6SF.prism.linker = linker
 397 ARMV6SF.prism.linkFlags = es2LFlags 
 398 ARMV6SF.prism.lib = "prism_common"
 399 
 400 ARMV6SF.prismSW = [:]
 401 ARMV6SF.prismSW.javahInclude = ["com/sun/pisces/**/*"]
 402 ARMV6SF.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw")
 403 ARMV6SF.prismSW.compiler = compiler
 404 ARMV6SF.prismSW.ccFlags = prismSWCFlags
 405 ARMV6SF.prismSW.linker = linker
 406 ARMV6SF.prismSW.linkFlags = prismSWLFlags
 407 ARMV6SF.prismSW.lib = "prism_sw"
 408 
 409 ARMV6SF.iio = [:]
 410 ARMV6SF.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 411 ARMV6SF.iio.nativeSource = [
 412     file("modules/graphics/src/main/native-iio"),
 413     file("modules/graphics/src/main/native-iio/libjpeg7")]
 414 ARMV6SF.iio.compiler = compiler
 415 ARMV6SF.iio.ccFlags = iioCFlags
 416 ARMV6SF.iio.linker = linker
 417 ARMV6SF.iio.linkFlags = iioLFlags
 418 ARMV6SF.iio.lib = "javafx_iio"
 419 
 420 ARMV6SF.prismES2 = [:]
 421 ARMV6SF.prismES2.variants = ["eglfb"]
 422 ARMV6SF.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 423 
 424 ARMV6SF.prismES2.eglfb = [:]
 425 ARMV6SF.prismES2.eglfb.nativeSource = [
 426     file("modules/graphics/src/main/native-prism-es2"),
 427     file("modules/graphics/src/main/native-prism-es2/GL"),
 428     file("modules/graphics/src/main/native-prism-es2/eglfb")
 429 ]
 430 ARMV6SF.prismES2.eglfb.compiler = compiler
 431 ARMV6SF.prismES2.eglfb.ccFlags = [ es2EglfbCFlags, "-I", ARMV6SF.glass.lensport.nativeSource ].flatten()
 432 ARMV6SF.prismES2.eglfb.linker = linker
 433 ARMV6SF.prismES2.eglfb.linkFlags = es2EglfbLFlags
 434 ARMV6SF.prismES2.eglfb.lib = "prism_es2_eglfb"
 435 
 436 ARMV6SF.prismES2.eglx11 = [:]
 437 ARMV6SF.prismES2.eglx11.nativeSource = [
 438     file("modules/graphics/src/main/native-prism-es2"),
 439     file("modules/graphics/src/main/native-prism-es2/GL"),
 440     file("modules/graphics/src/main/native-prism-es2/eglx11")
 441 ]
 442 ARMV6SF.prismES2.eglx11.compiler = compiler
 443 ARMV6SF.prismES2.eglx11.ccFlags = es2X11CFlags
 444 ARMV6SF.prismES2.eglx11.linker = linker
 445 ARMV6SF.prismES2.eglx11.linkFlags = es2X11LFlags
 446 ARMV6SF.prismES2.eglx11.lib = "prism_es2_eglx11"
 447 
 448 def closedDir = file("$projectDir/../rt-closed")
 449 ARMV6SF.font = [:]
 450 ARMV6SF.font.javahInclude = [
 451     "com/sun/javafx/font/**/*",
 452     "com/sun/javafx/text/**/*"]
 453 ARMV6SF.font.nativeSource = [file("modules/graphics/src/main/native-font")]
 454 ARMV6SF.font.compiler = compiler
 455 ARMV6SF.font.ccFlags = fontCFlags
 456 ARMV6SF.font.linker = linker
 457 ARMV6SF.font.linkFlags = fontLFlags
 458 ARMV6SF.font.lib = "javafx_font"
 459 
 460 ARMV6SF.fontT2K = [:]
 461 ARMV6SF.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
 462 ARMV6SF.fontT2K.nativeSource = [
 463         file("$closedDir/javafx-font-t2k-native/src"),
 464         file("$closedDir/javafx-font-t2k-native/src/layout")]
 465 ARMV6SF.fontT2K.compiler = compiler
 466 ARMV6SF.fontT2K.ccFlags = [fontCFlags, "-DLE_STANDALONE"].flatten()
 467 ARMV6SF.fontT2K.linker = linker
 468 ARMV6SF.fontT2K.linkFlags = fontLFlags
 469 ARMV6SF.fontT2K.lib = "javafx_font_t2k"
 470 
 471 ARMV6SF.fontFreetype = [:]
 472 ARMV6SF.fontFreetype.javahInclude = ["com/sun/javafx/font/freetype/OSFreetype.class"]
 473 ARMV6SF.fontFreetype.nativeSource = ["src/main/native-font/freetype.c"]
 474 ARMV6SF.fontFreetype.compiler = compiler
 475 ARMV6SF.fontFreetype.ccFlags = ["-DJFXFONT_PLUS", ccFlags, fontCFlags, freetypeCCFlags].flatten()
 476 ARMV6SF.fontFreetype.linker = linker
 477 ARMV6SF.fontFreetype.linkFlags = [linkFlags, fontLFlags, freetypeLinkFlags].flatten()
 478 ARMV6SF.fontFreetype.lib = "javafx_font_freetype"
 479 
 480 ARMV6SF.fontPango = [:]
 481 ARMV6SF.fontPango.javahInclude = ["com/sun/javafx/font/freetype/OSPango.class"]
 482 ARMV6SF.fontPango.nativeSource = ["src/main/native-font/pango.c"]
 483 ARMV6SF.fontPango.compiler = compiler
 484 ARMV6SF.fontPango.ccFlags = ["-DJFXFONT_PLUS", ccFlags, pangoCCFlags].flatten()
 485 ARMV6SF.fontPango.linker = linker
 486 ARMV6SF.fontPango.linkFlags = [linkFlags, pangoLinkFlags].flatten()
 487 ARMV6SF.fontPango.lib = "javafx_font_pango"
 488 
 489 ARMV6SF.webkit = [:]
 490 ARMV6SF.webkit.binDir   = "$compilerHome/bin"
 491 ARMV6SF.webkit.compiler = compiler
 492 ARMV6SF.webkit.linker   = linker
 493 ARMV6SF.webkit.ar       = file("$compilerHome/bin/arm-linux-gnueabi-ar").getAbsolutePath()
 494 ARMV6SF.webkit.objcopy  = file("$compilerHome/bin/arm-linux-gnueabi-objcopy").getAbsolutePath()
 495 ARMV6SF.webkit.strip    = file("$compilerHome/bin/arm-linux-gnueabi-strip").getAbsolutePath()
 496 ARMV6SF.webkit.ccFlags  = extraCFlags.join(' ')
 497 ARMV6SF.webkit.linkFlags = extraLFlags.join(' ')
 498 
 499 ARMV6SF.media = [:]
 500 ARMV6SF.media.compiler = compiler
 501 ARMV6SF.media.linker = linker
 502 ARMV6SF.media.extra_cflags = mediaCFlags.join(' ')
 503 ARMV6SF.media.extra_ldflags = mediaLFlags.join(' ')