1 /*
   2  * Copyright (c) 2013, 2017, 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.ARMV6HF = [:]
  27 
  28 // Define the location of the sdk and toolchain
  29 def crossLibsPackage="armv6hf-02"
  30 def sdk=file("${rootProject.CROSS_TOOLS_DIR}/$crossLibsPackage")
  31 def compilerHome=file("${rootProject.CROSS_TOOLS_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux")
  32 def compilerPrefix
  33 def jniPlatform
  34 if (IS_LINUX) {
  35     fetchExternalTools('ARMV6HF',
  36             ["${crossLibsPackage}.tgz",
  37              "gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux.tgz" ],
  38             rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS)
  39 
  40     compilerHome=file("${rootProject.CROSS_TOOLS_DIR}/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux")
  41     compilerPrefix="arm-linux-gnueabihf-"
  42     jniPlatform="linux"
  43 } else if (IS_MAC) {
  44     fetchExternalTools('ARMV6HF',
  45             ["${crossLibsPackage}.tgz"],
  46             rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS)
  47 
  48     compilerHome=file("/usr/local/arm-linux")
  49     compilerPrefix="arm-linux-"
  50     jniPlatform="darwin"
  51 } else {
  52     fail("armv6hf Cannot build on this platform")
  53 }
  54 
  55 if (rootProject.hasProperty("ARMV6HF_COMPILER")) {
  56     logger.quiet "Using alternate ARMV6HF_COMPILER $rootProject.ARMV6HF_COMPILER"
  57     compilerHome=file(rootProject.ARMV6HF_COMPILER);
  58 }
  59 if (rootProject.hasProperty("ARMV6HF_COMPILER_PREFIX")) {
  60     logger.quiet "Using alternate ARMV6HF_COMPILER_PREFIX $rootProject.ARMV6HF_COMPILER_PREFIX"
  61     compilerPrefix="${rootProject.ARMV6HF_COMPILER_PREFIX}"
  62 }
  63 
  64 def compiler = file("$compilerHome/bin/${compilerPrefix}gcc").getAbsolutePath()
  65 def linker = file("$compilerHome/bin/${compilerPrefix}g++").getAbsolutePath()
  66 
  67 // Declare whether this particular target file applies to the current system
  68 ARMV6HF.canBuild = (IS_LINUX || IS_MAC) && compilerHome.exists() && sdk.exists()
  69 if (!ARMV6HF.canBuild) {
  70     if (!compilerHome.exists()) println "ERROR: Missing compiler $compilerHome"
  71     if (!sdk.exists()) println "ERROR: Missing sdk $sdk"
  72     fail("armv6hf missing required tools")
  73 }
  74 
  75 // Lambda for naming the generated libs
  76 ARMV6HF.library = { name -> return "lib${name}.so" as String }
  77 
  78 ARMV6HF.compileSwing = false;
  79 ARMV6HF.compileSWT = false;
  80 ARMV6HF.compileFXPackager = false;
  81 ARMV6HF.compileWebnodeNative = false;
  82 ARMV6HF.compileMediaNative = false;
  83 
  84 ARMV6HF.includeMonocle = true
  85 ARMV6HF.includeNull3d = true
  86 ARMV6HF.includeEGL = true
  87 ARMV6HF.includeSwing = false
  88 ARMV6HF.includeSWT = false
  89 ARMV6HF.includeGTK = true
  90 
  91 ARMV6HF.javafxPlatformDefault="monocle"
  92 
  93 // Libraries end up in the sdk/lib/arm directory for arm builds
  94 ARMV6HF.arch = "arm"
  95 ARMV6HF.libDest = "lib"
  96 
  97 def commonFlags = [
  98         "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags
  99         "-Wextra", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags
 100 // Specify the compilation parameters and link parameters
 101 def ccFlags = [
 102         commonFlags, "-I$JDK_HOME/include", "-I$JDK_HOME/include/$jniPlatform", "-c",
 103         IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten()
 104 //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"])
 105 def linkFlags = ["-shared", commonFlags].flatten()
 106 
 107 // Specify the compilation parameters and link parameters
 108 def extraCFlags = [
 109         ccFlags,
 110         "-marm", "-mfloat-abi=hard", "-mfpu=vfp",
 111         "-I$sdk/usr/include",
 112         "-I$sdk/opt/vc/include",
 113         "-I$sdk/opt/vc/include/interface/vcos/pthreads",
 114         "-I$sdk/opt/vc/include/interface/vmcs_host/linux",
 115         "-DOMAP3", "-DUSE_DISPMAN"].flatten();
 116 
 117 //See if we should build for imx6
 118 def imxHeader=file("$sdk/usr/include/linux/mxcfb.h")
 119 if (imxHeader.exists()) {
 120         extraCFlags = [extraCFlags,"-DIMX6_PLATFORM"].flatten();
 121 }
 122 
 123 def extraLFlags = [
 124         linkFlags,
 125         "-L$sdk/lib/arm-linux-gnueabihf",
 126         "-L$sdk/usr/lib",
 127         "-L$sdk/usr/lib/arm-linux-gnueabihf",
 128         "-L$sdk/opt/vc/lib"].flatten()
 129 
 130 def monocleCFlags = [
 131         extraCFlags,
 132         "-Werror",
 133         "-I", file("${project("graphics").projectDir}/src/main/native-glass/monocle/")].flatten();
 134 def monocleLFlags = [extraLFlags, "-ldl", "-lm"].flatten()
 135 
 136 def fontCFlags = [extraCFlags].flatten()
 137 def fontLFlags = [extraLFlags, "-ldl"].flatten()
 138 
 139 def iioCFlags = [extraCFlags,
 140          "-Wno-main" // suppress warnings about using main as a variable, 3rd party code
 141          ].flatten()
 142 def iioLFlags = [extraLFlags].flatten()
 143 
 144 def es2EglfbCFlags = [extraCFlags, "-DIS_EGLFB", "-DLINUX"].flatten()
 145 def es2EglfbLFlags = [extraLFlags].flatten()
 146 def es2MonocleCFlags = [extraCFlags, "-DIS_EGLFB", "-DLINUX"].flatten()
 147 def es2MonocleLFlags = [extraLFlags].flatten()
 148 
 149 def es2X11CFlags = [extraCFlags, "-DUSE_XSHM", "-DDEBUG", "-DIS_EGLX11", "-DLINUX"].flatten()
 150 def es2X11LFlags = [extraLFlags, "-lX11", "-lXext", "-lXdmcp", "-lXau"].flatten()
 151 
 152 def mediaCFlags = [extraCFlags,
 153     "-I$sdk/usr/include/gstreamer-0.10",
 154     "-I$sdk/usr/include/glib-2.0",
 155     "-I$sdk/usr/lib/arm-linux-gnueabihf/glib-2.0/include",
 156     "-DENABLE_NATIVE_SOURCE=1", "-DENABLE_GST_FFMPEG=1"].flatten()
 157 def mediaLFlags = [extraLFlags, "-lgstreamer-0.10", "-lgstapp-0.10",
 158     "-lgstbase-0.10", "-lglib-2.0", "-lgobject-2.0", "-lgmodule-2.0", "-lgthread-2.0"].flatten()
 159 
 160 def webCFlags = [extraCFlags].flatten()
 161 def webLFlags = [extraLFlags].flatten()
 162 
 163 def gtkCFlags = [extraCFlags].flatten()
 164 def gtkLFlags = [extraLFlags].flatten()
 165 
 166 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"
 167 
 168 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"
 169 
 170 gtkCFlags.addAll(gtkCFlags_pkgconfig.split(" "))
 171 gtkLFlags.addAll(gtkLFlags_pkgconfig.split(" "))
 172 
 173 def monoclePlatformAdditions = """
 174 monocle.glass.platform=Monocle
 175 monocle.prism.order=es2,sw
 176 monocle.prism.eglfb=true
 177 monocle.prism.lcdtext=false
 178 monocle.prism.maxvram=128m
 179 monocle.prism.targetvram=112m
 180 monocle.use.egl=true
 181 monocle.use.gles2=true
 182 monocle.embedded=monocle
 183 monocle.com.sun.javafx.isEmbedded=true
 184 monocle.doNativeComposite=true
 185 monocle.com.sun.javafx.scene.control.skin.FXVK.cache=true
 186 monocle.prism.glDepthSize=0
 187 monocle.com.sun.javafx.gestures.zoom=true
 188 monocle.com.sun.javafx.gestures.rotate=true
 189 monocle.com.sun.javafx.gestures.scroll=true"""
 190 
 191 def gtkPlatformAdditions = """
 192 gtk.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true
 193 gtk.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true
 194 gtk.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true
 195 gtk.glass.platform=gtk
 196 gtk.prism.order=sw
 197 gtk.com.sun.javafx.isEmbedded=true
 198 gtk.com.sun.javafx.scene.control.skin.FXVK.cache=true
 199 gtk.com.sun.javafx.gestures.zoom=true
 200 gtk.com.sun.javafx.gestures.rotate=true
 201 gtk.com.sun.javafx.gestures.scroll=true"""
 202 
 203 def pangoCCFlags = [extraCFlags, "-D_ENABLE_PANGO"];
 204 def pangoLinkFlags = [extraLFlags];
 205 
 206 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"
 207 
 208 def pangoLFlags_pkgconfig = "-L${sdk}/usr/lib/arm-linux-gnueabihf -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0"
 209 
 210 pangoCCFlags.addAll(pangoCFlags_pkgconfig.split(" "))
 211 pangoLinkFlags.addAll(pangoLFlags_pkgconfig.split(" "))
 212 
 213 def freetypeCCFlags = [ext.IS_COMPILE_PANGO ? "-D_ENABLE_PANGO" :
 214                        ext.IS_COMPILE_HARFBUZZ ? "-D_ENABLE_HARFBUZZ" : ""]
 215 def freetypeLinkFlags = []
 216 
 217 def freetypeCFlags_pkgconfig = "-I${sdk}/usr/include/freetype2 -I${sdk}/usr/include"
 218 def freetypeLFlags_pkgconfig = "-L${sdk}/usr/lib/arm-linux-gnueabihf -lfreetype"
 219 
 220 freetypeCCFlags.addAll(freetypeCFlags_pkgconfig.split(" "))
 221 freetypeLinkFlags.addAll(freetypeLFlags_pkgconfig.split(" "))
 222 
 223 ARMV6HF.javafxPlatformProperties = "javafx.platform=${ARMV6HF.javafxPlatformDefault}"
 224 
 225 ARMV6HF.glass = [:]
 226 ARMV6HF.glass.javahInclude = [
 227     "com/sun/glass/events/**",
 228     "com/sun/glass/ui/*"]
 229 ARMV6HF.glass.variants = [ ]
 230 if (ARMV6HF.includeMonocle) {
 231     ARMV6HF.glass.variants.addAll("monocle", "monocle_x11");
 232     ARMV6HF.glass.javahInclude.addAll(
 233         "com/sun/glass/ui/monocle/*",
 234         "com/sun/glass/ui/monocle/dispman/*",
 235         "com/sun/glass/ui/monocle/mx6/*",
 236         "com/sun/glass/ui/monocle/linux/*",
 237         "com/sun/glass/ui/monocle/util/*",
 238         "com/sun/glass/ui/monocle/x11/*");
 239     ARMV6HF.javafxPlatformProperties = ARMV6HF.javafxPlatformProperties + monoclePlatformAdditions
 240 }
 241 if (ARMV6HF.includeGTK) {
 242     ARMV6HF.glass.variants.addAll("gtk");
 243     ARMV6HF.glass.javahInclude.addAll("com/sun/glass/ui/gtk/*");
 244     ARMV6HF.javafxPlatformProperties = ARMV6HF.javafxPlatformProperties + gtkPlatformAdditions
 245 }
 246 
 247 ARMV6HF.glass.lib = "glass"
 248 
 249 ARMV6HF.glass.monocle = [:]
 250 ARMV6HF.glass.monocle.nativeSource = [
 251         file("${project("graphics").projectDir}/src/main/native-glass/monocle"),
 252         file("${project("graphics").projectDir}/src/main/native-glass/monocle/dispman"),
 253         file("${project("graphics").projectDir}/src/main/native-glass/monocle/mx6"),
 254         file("${project("graphics").projectDir}/src/main/native-glass/monocle/linux"),
 255         file("${project("graphics").projectDir}/src/main/native-glass/monocle/util") ]
 256 ARMV6HF.glass.monocle.compiler = compiler
 257 ARMV6HF.glass.monocle.ccFlags = monocleCFlags
 258 ARMV6HF.glass.monocle.linker = linker
 259 ARMV6HF.glass.monocle.linkFlags = monocleLFlags
 260 ARMV6HF.glass.monocle.lib = "glass_monocle"
 261 
 262 ARMV6HF.glass.monocle_x11 = [:]
 263 ARMV6HF.glass.monocle_x11.nativeSource = [
 264         file("${project("graphics").projectDir}/src/main/native-glass/monocle/util"),
 265         file("${project("graphics").projectDir}/src/main/native-glass/monocle/x11") ]
 266 ARMV6HF.glass.monocle_x11.compiler = compiler
 267 ARMV6HF.glass.monocle_x11.ccFlags = monocleCFlags
 268 ARMV6HF.glass.monocle_x11.linker = linker
 269 ARMV6HF.glass.monocle_x11.linkFlags = [ monocleLFlags, "-lX11" ].flatten()
 270 ARMV6HF.glass.monocle_x11.lib = "glass_monocle_x11"
 271 
 272 FileTree ft_gtk = fileTree("${project(":graphics").projectDir}/src/main/native-glass/gtk/") {
 273     exclude("**/launcher.c")
 274 }
 275 File gen_headers = new File("${project(":graphics").buildDir}/gensrc/headers/javafx.graphics")
 276 
 277 ARMV6HF.glass.gtk = [:]
 278 ARMV6HF.glass.gtk.nativeSource = ft_gtk.getFiles()
 279 ARMV6HF.glass.gtk.compiler = compiler
 280 ARMV6HF.glass.gtk.ccFlags = ["-ffast-math", gtkCFlags, "-DLINUX", "-I${gen_headers}"].flatten()
 281 ARMV6HF.glass.gtk.linker = linker
 282 ARMV6HF.glass.gtk.linkFlags = [gtkLFlags, "-lstdc++"].flatten()
 283 ARMV6HF.glass.gtk.lib = "glass"
 284 
 285 ARMV6HF.decora = [:]
 286 ARMV6HF.decora.compiler = compiler
 287 ARMV6HF.decora.ccFlags = extraCFlags
 288 ARMV6HF.decora.linker = linker
 289 ARMV6HF.decora.linkFlags = extraLFlags
 290 ARMV6HF.decora.lib = "decora_sse"
 291 
 292 ARMV6HF.prism = [:]
 293 ARMV6HF.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
 294 ARMV6HF.prism.nativeSource = file("${project("graphics").projectDir}/src/main/native-prism")
 295 ARMV6HF.prism.compiler = compiler
 296 ARMV6HF.prism.ccFlags = [extraCFlags].flatten()
 297 ARMV6HF.prism.linker = linker
 298 ARMV6HF.prism.linkFlags = [extraLFlags].flatten()
 299 ARMV6HF.prism.lib = "prism_common"
 300 
 301 ARMV6HF.prismSW = [:]
 302 ARMV6HF.prismSW.javahInclude = ["com/sun/pisces/**/*"]
 303 ARMV6HF.prismSW.nativeSource = file("${project("graphics").projectDir}/src/main/native-prism-sw")
 304 ARMV6HF.prismSW.compiler = compiler
 305 ARMV6HF.prismSW.ccFlags = [extraCFlags].flatten()
 306 ARMV6HF.prismSW.linker = linker
 307 ARMV6HF.prismSW.linkFlags = [extraLFlags].flatten()
 308 ARMV6HF.prismSW.lib = "prism_sw"
 309 
 310 ARMV6HF.iio = [:]
 311 ARMV6HF.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 312 ARMV6HF.iio.nativeSource = [
 313     file("${project("graphics").projectDir}/src/main/native-iio"),
 314     file("${project("graphics").projectDir}/src/main/native-iio/libjpeg7")]
 315 ARMV6HF.iio.compiler = compiler
 316 ARMV6HF.iio.ccFlags = iioCFlags
 317 ARMV6HF.iio.linker = linker
 318 ARMV6HF.iio.linkFlags = iioLFlags
 319 ARMV6HF.iio.lib = "javafx_iio"
 320 
 321 ARMV6HF.prismES2 = [:]
 322 ARMV6HF.prismES2.variants = ["monocle"]
 323 ARMV6HF.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 324 
 325 ARMV6HF.prismES2.monocle= [:]
 326 ARMV6HF.prismES2.monocle.nativeSource = [
 327     file("${project("graphics").projectDir}/src/main/native-prism-es2"),
 328     file("${project("graphics").projectDir}/src/main/native-prism-es2/GL"),
 329     file("${project("graphics").projectDir}/src/main/native-prism-es2/monocle")
 330 ]
 331 ARMV6HF.prismES2.monocle.compiler = compiler
 332 ARMV6HF.prismES2.monocle.ccFlags = [ es2EglfbCFlags, "-I", "-I${gen_headers}" ].flatten()
 333 ARMV6HF.prismES2.monocle.linker = linker
 334 ARMV6HF.prismES2.monocle.linkFlags =[  es2EglfbLFlags, "-ldl" ].flatten()
 335 ARMV6HF.prismES2.monocle.lib = "prism_es2_monocle"
 336 
 337 def closedDir = file("$projectDir/../rt-closed")
 338 ARMV6HF.font = [:]
 339 ARMV6HF.font.javahInclude = [
 340     "com/sun/javafx/font/**/*",
 341     "com/sun/javafx/text/**/*"]
 342 ARMV6HF.font.nativeSource = [file("${project("graphics").projectDir}/src/main/native-font")]
 343 ARMV6HF.font.compiler = compiler
 344 ARMV6HF.font.ccFlags = fontCFlags
 345 ARMV6HF.font.linker = linker
 346 ARMV6HF.font.linkFlags = fontLFlags
 347 ARMV6HF.font.lib = "javafx_font"
 348 
 349 ARMV6HF.fontFreetype = [:]
 350 ARMV6HF.fontFreetype.javahInclude = ["com/sun/javafx/font/freetype/OSFreetype.class*"]
 351 ARMV6HF.fontFreetype.nativeSource = ["src/main/native-font/freetype.c"]
 352 ARMV6HF.fontFreetype.compiler = compiler
 353 ARMV6HF.fontFreetype.ccFlags = ["-DJFXFONT_PLUS", ccFlags, fontCFlags, freetypeCCFlags].flatten()
 354 ARMV6HF.fontFreetype.linker = linker
 355 ARMV6HF.fontFreetype.linkFlags = [linkFlags, fontLFlags, freetypeLinkFlags, "-ldl"].flatten()
 356 ARMV6HF.fontFreetype.lib = "javafx_font_freetype"
 357 
 358 ARMV6HF.fontPango = [:]
 359 ARMV6HF.fontPango.javahInclude = ["com/sun/javafx/font/freetype/OSPango.class"]
 360 ARMV6HF.fontPango.nativeSource = ["src/main/native-font/pango.c"]
 361 ARMV6HF.fontPango.compiler = compiler
 362 ARMV6HF.fontPango.ccFlags = ["-DJFXFONT_PLUS", ccFlags, pangoCCFlags].flatten()
 363 ARMV6HF.fontPango.linker = linker
 364 ARMV6HF.fontPango.linkFlags = [linkFlags, pangoLinkFlags].flatten()
 365 ARMV6HF.fontPango.lib = "javafx_font_pango"
 366 
 367 ARMV6HF.webkit = [:]
 368 ARMV6HF.webkit.binDir   = "$compilerHome/bin"
 369 ARMV6HF.webkit.compiler = compiler
 370 ARMV6HF.webkit.linker   = linker
 371 ARMV6HF.webkit.ar       = file("$compilerHome/bin/${compilerPrefix}ar").getAbsolutePath()
 372 ARMV6HF.webkit.objcopy  = file("$compilerHome/bin/${compilerPrefix}objcopy").getAbsolutePath()
 373 ARMV6HF.webkit.strip    = file("$compilerHome/bin/${compilerPrefix}strip").getAbsolutePath()
 374 ARMV6HF.webkit.ccFlags  = extraCFlags.join(' ')
 375 ARMV6HF.webkit.linkFlags = extraLFlags.join(' ')
 376 
 377 ARMV6HF.disableMedia = true
 378 ARMV6HF.media = [:]
 379 ARMV6HF.media.compiler = compiler
 380 ARMV6HF.media.linker = linker
 381 ARMV6HF.media.extra_cflags = mediaCFlags.join(' ')
 382 ARMV6HF.media.extra_ldflags = mediaLFlags.join(' ')
 383 
 384 ARMV6HF.deploy = [:]
 385 ARMV6HF.deploy.publicLibraryFilter = [
 386   "fxavcodecplugin-52.so",
 387   "fxavcodecplugin-53.so",
 388   "fxplugins.so",
 389   "libjfxwebkit.so",
 390   "libgstplugins-lite.so",
 391   "libgstreamer-lite.so",
 392   "libprism_es2_eglx11.so",
 393 ]
 394 ARMV6HF.deploy.compressBigJar=true