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.X86EGL = [:] 27 28 def sdk 29 def compilerHome 30 def compilerPrefix 31 def pkgconfig 32 def jniPlatform 33 if (IS_MAC) { 34 jniPlatform="darwin" 35 fetchExternalTools('X86EGL', [ "x86egl-01.tgz" ], 36 rootProject.CROSS_TOOLS_DIR, rootProject.IS_IMPORT_CROSS_TOOLS) 37 sdk=file("${rootProject.CROSS_TOOLS_DIR}/x86egl-01") 38 pkgconfig="${sdk}/bin/pkg-config" 39 } else { 40 jniPlatform="linux" 41 sdk="" 42 pkgconfig="pkg-config" 43 } 44 45 if (rootProject.hasProperty("X86EGL_COMPILER")) { 46 logger.quiet "Using alternate X86EGL_COMPILER $rootProject.X86EGL_COMPILER" 47 compilerHome=file(rootProject.X86EGL_COMPILER); 48 } else { 49 compilerHome=file("/usr"); 50 } 51 if (rootProject.hasProperty("X86EGL_COMPILER_PREFIX")) { 52 logger.quiet "Using alternate X86EGL_COMPILER_PREFIX $rootProject.X86EGL_COMPILER_PREFIX" 53 compilerPrefix="${rootProject.X86EGL_COMPILER_PREFIX}" 54 } else { 55 compilerPrefix="" 56 } 57 58 // Declare whether this particular target file applies to the current system 59 X86EGL.canBuild = (IS_LINUX || IS_MAC) && compilerHome.exists() 60 if (!X86EGL.canBuild) { 61 return; 62 } 63 64 // Lambda for naming the generated libs 65 X86EGL.library = { name -> return "lib${name}.so" as String } 66 67 X86EGL.compileSwing = false; 68 X86EGL.compileSWT = false; 69 X86EGL.compileFXPackager = false; 70 X86EGL.compileDesignTime = false; 71 X86EGL.compileWebnodeNative = false; 72 X86EGL.compileMediaNative = false; 73 74 X86EGL.includeLens = true 75 X86EGL.includeNull3d = true 76 X86EGL.includeEGL = true 77 X86EGL.includeSwing = false 78 X86EGL.includeSWT = false 79 X86EGL.includeGTK = true 80 81 // Libraries end up in the sdk/rt/lib/[i386|amd46] directory depending on machine arch 82 if (rootProject.hasProperty("X86EGL_ARCH")) { 83 X86EGL.arch = X86EGL_ARCH 84 X86EGL.libDest = "lib/${X86EGL_ARCH}" 85 } else { 86 X86EGL.arch = OS_ARCH 87 X86EGL.libDest = "lib/${OS_ARCH}" 88 } 89 90 def commonFlags = [ 91 "-fno-strict-aliasing", "-fPIC", "-fno-omit-frame-pointer", // optimization flags 92 "-W", "-Wall", "-Wno-unused", "-Wno-parentheses", "-Werror=implicit-function-declaration"] // warning flags 93 // Specify the compilation parameters and link parameters 94 def ccFlags = [ 95 commonFlags, 96 "-I$JDK_HOME/include", "-I$JDK_HOME/include/${jniPlatform}", "-c", 97 IS_DEBUG_NATIVE ? ["-ggdb", "-DVERBOSE"] : ["-O2", "-DNDEBUG"]].flatten() 98 //ccFlags.addAll(["-Wnon-virtual-dtor", "-Woverloaded-virtual", "-std=c++0x"]) 99 def linkFlags = ["-shared", commonFlags].flatten() 100 101 // Specify the compilation parameters and link parameters 102 def extraCFlags = [ 103 "-I", "-L", 104 ccFlags, 105 "-I$sdk/usr/include", 106 "-DEGL_X11_FB_CONTAINER"].flatten(); 107 def extraLFlags = [ 108 "-I", "-L", 109 "-L$sdk/usr/lib", 110 "-L$sdk/usr/lib/i386-linux-gnu", 111 linkFlags].flatten() 112 113 def lensLFlags = [extraLFlags, "-lpthread", "-ludev", "-ldl", "-lm"].flatten() 114 def monocleCFlags = [ 115 extraCFlags, 116 "-Werror", 117 "-I", file("modules/graphics/src/main/native-glass/monocle/")].flatten(); 118 def monocleLFlags = [extraLFlags, "-ldl", "-lm"].flatten() 119 120 def fontCFlags = [extraCFlags].flatten() 121 def fontLFlags = [extraLFlags].flatten() 122 123 def iioCFlags = [extraCFlags].flatten() 124 def iioLFlags = [extraLFlags].flatten() 125 126 def es2EglfbCFlags = [extraCFlags, "-DIS_EGLFB", "-DLINUX", "-ffast-math" ].flatten() 127 def es2EglfbLFlags = [extraLFlags].flatten() 128 129 def es2X11CFlags = [extraCFlags, "-DUSE_XSHM", "-DDEBUG", "-DIS_EGLX11", "-DLINUX"].flatten() 130 def es2X11LFlags = [extraLFlags, "-lX11", "-lXext", "-lXdmcp", "-lXau"].flatten() 131 132 def mediaCFlags = [extraCFlags, 133 "-I${sdk}/usr/include/gstreamer-0.10", 134 "-I${sdk}/usr/include/glib-2.0", 135 "-DENABLE.nativeSource=1", "-DENABLE_GST_FFMPEG=1"].flatten() 136 def mediaLFlags = [extraLFlags, "-lgstreamer-0.10", "-lgstapp-0.10", 137 "-lgstbase-0.10", "-lglib-2.0", "-lgobject-2.0", "-lgmodule-2.0", "-lgthread-2.0"].flatten() 138 139 def webCFlags = [extraCFlags].flatten() 140 def webLFlags = [extraLFlags].flatten() 141 142 def gtkCFlags = [extraCFlags].flatten() 143 def gtkLFlags = [extraLFlags].flatten() 144 // Create $buildDir/x86egl_tools.properties file and load props from it 145 setupTools("x86egl_tools", 146 { propFile -> 147 ByteArrayOutputStream results = new ByteArrayOutputStream(); 148 149 exec { 150 commandLine("$pkgconfig", "--cflags", "gtk+-2.0", 151 "gthread-2.0", "xtst"); 152 setStandardOutput(results); 153 } 154 propFile << "cflags=" << results.toString().trim() << "\n"; 155 156 results = new ByteArrayOutputStream(); 157 exec { 158 commandLine "$pkgconfig", "--libs", "gtk+-2.0", 159 "gthread-2.0", "xtst" 160 standardOutput = results 161 } 162 propFile << "libs=" << results.toString().trim(); 163 }, 164 { properties -> 165 gtkCFlags.addAll(properties.getProperty("cflags").split(" ")) 166 gtkLFlags.addAll(properties.getProperty("libs").split(" ")) 167 } 168 ) 169 170 X86EGL.javafxPlatformProperties ="""javafx.platform=monocle 171 directfb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true 172 directfb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true 173 directfb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true 174 directfb.glass.platform=Lens 175 directfb.glass.lens=dfb 176 directfb.prism.order=sw 177 directfb.com.sun.javafx.isEmbedded=true 178 directfb.com.sun.javafx.scene.control.skin.FXVK.cache=true 179 directfb.com.sun.javafx.gestures.zoom=true 180 directfb.com.sun.javafx.gestures.rotate=true 181 directfb.com.sun.javafx.gestures.scroll=true 182 eglfb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true 183 eglfb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true 184 eglfb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true 185 eglfb.glass.platform=Lens 186 eglfb.glass.lens=eglfb 187 eglfb.prism.order=es2 188 eglfb.prism.eglfb=true 189 eglfb.prism.lcdtext=false 190 eglfb.use.egl=true 191 eglfb.use.gles2=true 192 eglfb.embedded=eglfb 193 eglfb.com.sun.javafx.isEmbedded=true 194 eglfb.doNativeComposite=true 195 eglfb.com.sun.javafx.scene.control.skin.FXVK.cache=true 196 eglfb.com.sun.javafx.gestures.zoom=true 197 eglfb.com.sun.javafx.gestures.rotate=true 198 eglfb.com.sun.javafx.gestures.scroll=true 199 fb.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true 200 fb.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true 201 fb.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true 202 fb.glass.platform=Lens 203 fb.glass.lens=fb 204 fb.prism.order=sw 205 fb.com.sun.javafx.isEmbedded=true 206 fb.glass.restrictWindowToScreen=true 207 fb.com.sun.javafx.scene.control.skin.FXVK.cache=true 208 fb.com.sun.javafx.gestures.zoom=true 209 fb.com.sun.javafx.gestures.rotate=true 210 fb.com.sun.javafx.gestures.scroll=true 211 monocle.glass.platform=Monocle 212 monocle.prism.order=es2,sw 213 monocle.prism.eglfb=true 214 monocle.prism.lcdtext=false 215 monocle.prism.maxvram=128m 216 monocle.prism.targetvram=112m 217 monocle.use.egl=true 218 monocle.use.gles2=true 219 monocle.embedded=monocle 220 monocle.com.sun.javafx.isEmbedded=true 221 monocle.doNativeComposite=true 222 monocle.com.sun.javafx.scene.control.skin.FXVK.cache=true 223 monocle.com.sun.javafx.gestures.zoom=true 224 monocle.com.sun.javafx.gestures.rotate=true 225 monocle.com.sun.javafx.gestures.scroll=true 226 monocle.prism.glDepthSize=0 227 eglx11.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true 228 eglx11.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true 229 eglx11.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true 230 eglx11.glass.platform=Lens 231 eglx11.glass.lens=eglx11 232 eglx11.prism.order=es2 233 eglx11.prism.eglx11=true 234 eglx11.prism.lcdtext=false 235 eglx11.use.egl=true 236 eglx11.use.gles2=true 237 eglx11.embedded=eglx11 238 eglx11.com.sun.javafx.isEmbedded=true 239 eglx11.com.sun.javafx.scene.control.skin.FXVK.cache=true 240 eglx11.com.sun.javafx.gestures.zoom=true 241 eglx11.com.sun.javafx.gestures.rotate=true 242 eglx11.com.sun.javafx.gestures.scroll=true 243 gtk.com.sun.javafx.scene.control.skin.ListViewSkin.pannable=true 244 gtk.com.sun.javafx.scene.control.skin.TreeViewSkin.pannable=true 245 gtk.com.sun.javafx.scene.control.skin.TableViewSkin.pannable=true 246 gtk.glass.platform=gtk 247 gtk.prism.order=sw 248 gtk.com.sun.javafx.isEmbedded=true 249 gtk.com.sun.javafx.scene.control.skin.FXVK.cache=true 250 gtk.com.sun.javafx.gestures.zoom=true 251 gtk.com.sun.javafx.gestures.rotate=true 252 gtk.com.sun.javafx.gestures.scroll=true""" 253 254 def pangoCCFlags = ["-D_ENABLE_PANGO"]; 255 def pangoLinkFlags = []; 256 setupTools("x86egl_pango_tools", 257 { propFile -> 258 ByteArrayOutputStream results = new ByteArrayOutputStream(); 259 exec { 260 commandLine "$pkgconfig", "--cflags", "pangoft2" 261 standardOutput = results 262 } 263 propFile << "cflags=" << results.toString().trim() << "\n"; 264 265 results = new ByteArrayOutputStream(); 266 exec { 267 commandLine "$pkgconfig", "--libs", "pangoft2" 268 standardOutput = results 269 } 270 propFile << "libs=" << results.toString().trim(); 271 }, 272 { properties -> 273 pangoCCFlags.addAll(properties.getProperty("cflags").split(" ")) 274 pangoLinkFlags.addAll(properties.getProperty("libs").split(" ")) 275 } 276 ) 277 278 def freetypeCCFlags = [ext.IS_COMPILE_PANGO ? "-D_ENABLE_PANGO" : 279 ext.IS_COMPILE_HARFBUZZ ? "-D_ENABLE_HARFBUZZ" : ""] 280 def freetypeLinkFlags = [] 281 setupTools("x86egl_freetype_tools", 282 { propFile -> 283 ByteArrayOutputStream results = new ByteArrayOutputStream(); 284 exec { 285 commandLine "pkg-config", "--cflags", "freetype2" 286 standardOutput = results 287 } 288 propFile << "cflags=" << results.toString().trim() << "\n"; 289 290 results = new ByteArrayOutputStream(); 291 exec { 292 commandLine "pkg-config", "--libs", "freetype2" 293 standardOutput = results 294 } 295 propFile << "libs=" << results.toString().trim(); 296 }, 297 { properties -> 298 freetypeCCFlags.addAll(properties.getProperty("cflags").split(" ")) 299 freetypeLinkFlags.addAll(properties.getProperty("libs").split(" ")) 300 } 301 ) 302 303 def compiler = file("$compilerHome/bin/${compilerPrefix}gcc").getAbsolutePath() 304 def linker = file("$compilerHome/bin/${compilerPrefix}g++").getAbsolutePath() 305 306 X86EGL.glass = [:] 307 X86EGL.glass.variants = ["eglfb", "directfb", "fb", "gtk", "lensport", "monocle", "monocle_x11"] 308 X86EGL.glass.javahInclude = [ 309 "com/sun/glass/events/**", 310 "com/sun/glass/ui/*", 311 "com/sun/glass/ui/lens/*", 312 "com/sun/glass/ui/monocle/*", 313 "com/sun/glass/ui/monocle/linux/*", 314 "com/sun/glass/ui/monocle/util/*", 315 "com/sun/glass/ui/monocle/x11/*", 316 "com/sun/glass/ui/gtk/*"] 317 X86EGL.glass.lib = "glass" 318 319 X86EGL.glass.monocle = [:] 320 X86EGL.glass.monocle.nativeSource = [ 321 file("modules/graphics/src/main/native-glass/monocle"), 322 file("modules/graphics/src/main/native-glass/monocle/linux"), 323 file("modules/graphics/src/main/native-glass/monocle/util") ] 324 X86EGL.glass.monocle.compiler = compiler 325 X86EGL.glass.monocle.ccFlags = monocleCFlags 326 X86EGL.glass.monocle.linker = linker 327 X86EGL.glass.monocle.linkFlags = monocleLFlags 328 X86EGL.glass.monocle.lib = "glass_monocle" 329 330 X86EGL.glass.monocle_x11 = [:] 331 X86EGL.glass.monocle_x11.nativeSource = [ 332 file("modules/graphics/src/main/native-glass/monocle/util"), 333 file("modules/graphics/src/main/native-glass/monocle/x11") ] 334 X86EGL.glass.monocle_x11.compiler = compiler 335 X86EGL.glass.monocle_x11.ccFlags = monocleCFlags 336 X86EGL.glass.monocle_x11.linker = linker 337 X86EGL.glass.monocle_x11.linkFlags = [ monocleLFlags, "-lX11" ].flatten() 338 X86EGL.glass.monocle_x11.lib = "glass_monocle_x11" 339 340 X86EGL.glass.lensport = [:] 341 X86EGL.glass.lensport.nativeSource = [ 342 file("modules/graphics/src/main/native-glass/lens/lensport") ] 343 X86EGL.glass.lensport.compiler = compiler 344 X86EGL.glass.lensport.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX", "-DISEGLFB", 345 "-DLENSPORT", "-I", file("modules/graphics/src/main/native-glass/lens/") ].flatten() 346 X86EGL.glass.lensport.linker = linker 347 X86EGL.glass.lensport.linkFlags = [lensLFlags].flatten() 348 X86EGL.glass.lensport.lib = "lens_porting" 349 350 X86EGL.glass.eglfb = [:] 351 // TODO when building headless, use lens/cursor/nullcursor/ 352 // otherwise we use lens/cursor/fbCursor/ and lens/input/udev 353 354 // TODO when USE_RFB is specified use lens/rfb 355 356 // TODO use /headless/headlessScreen when using headless 357 X86EGL.glass.eglfb.nativeSource = [ 358 file("modules/graphics/src/main/native-glass/lens"), 359 file("modules/graphics/src/main/native-glass/lens/wm"), 360 file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"), 361 file("modules/graphics/src/main/native-glass/lens/input/udev"), 362 file("modules/graphics/src/main/native-glass/lens/wm/screen/x11ContainerScreen.c") ] 363 //file("modules/graphics/src/main/native-glass/lens/wm/screen")] 364 X86EGL.glass.eglfb.compiler = compiler 365 X86EGL.glass.eglfb.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten() 366 X86EGL.glass.eglfb.linker = linker 367 X86EGL.glass.eglfb.linkFlags = [lensLFlags].flatten() 368 X86EGL.glass.eglfb.lib = "glass_lens_eglfb" 369 370 X86EGL.glass.directfb = [:] 371 X86EGL.glass.directfb.nativeSource = [ 372 file("modules/graphics/src/main/native-glass/lens"), 373 file("modules/graphics/src/main/native-glass/lens/wm"), 374 file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"), 375 file("modules/graphics/src/main/native-glass/lens/input/udev"), 376 file("modules/graphics/src/main/native-glass/lens/wm/screen/dfbScreen.c"), 377 file("modules/graphics/src/main/native-glass/lens/lensport") ] 378 //file("modules/graphics/src/main/native-glass/lens/wm/screen")] 379 X86EGL.glass.directfb.compiler = compiler 380 X86EGL.glass.directfb.ccFlags = ["-ffast-math", extraCFlags, 381 "-I${sdk}/usr/include/directfb", "-DLINUX"].flatten() 382 X86EGL.glass.directfb.linker = linker 383 X86EGL.glass.directfb.linkFlags = [lensLFlags].flatten() 384 X86EGL.glass.directfb.lib = "glass_lens_dfb" 385 386 X86EGL.glass.fb = [:] 387 X86EGL.glass.fb.nativeSource = [ 388 file("modules/graphics/src/main/native-glass/lens"), 389 file("modules/graphics/src/main/native-glass/lens/wm"), 390 file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"), 391 file("modules/graphics/src/main/native-glass/lens/input/udev"), 392 file("modules/graphics/src/main/native-glass/lens/wm/screen/fbdevScreen.c"), 393 file("modules/graphics/src/main/native-glass/lens/lensport") ] 394 //file("modules/graphics/src/main/native-glass/lens/wm/screen")] 395 X86EGL.glass.fb.compiler = compiler 396 X86EGL.glass.fb.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten() 397 X86EGL.glass.fb.linker = linker 398 X86EGL.glass.fb.linkFlags = [lensLFlags].flatten() 399 X86EGL.glass.fb.lib = "glass_lens_fb" 400 401 X86EGL.glass.eglx11 = [:] 402 X86EGL.glass.eglx11.nativeSource = [ 403 file("modules/graphics/src/main/native-glass/lens"), 404 file("modules/graphics/src/main/native-glass/lens/wm"), 405 file("modules/graphics/src/main/native-glass/lens/cursor/fbCursor"), 406 file("modules/graphics/src/main/native-glass/lens/input/udev"), 407 file("modules/graphics/src/main/native-glass/lens/wm/screen/x11ContainerScreen.c")] 408 //file("modules/graphics/src/main/native-glass/lens/wm/screen")] 409 X86EGL.glass.eglx11.compiler = compiler 410 X86EGL.glass.eglx11.ccFlags = ["-ffast-math", extraCFlags, "-DLINUX"].flatten() 411 X86EGL.glass.eglx11.linker = linker 412 X86EGL.glass.eglx11.linkFlags = [lensLFlags].flatten() 413 X86EGL.glass.eglx11.lib = "glass_lens_eglx11" 414 415 X86EGL.glass.gtk = [:] 416 X86EGL.glass.gtk.nativeSource = file("modules/graphics/src/main/native-glass/gtk") 417 X86EGL.glass.gtk.compiler = compiler 418 X86EGL.glass.gtk.ccFlags = ["-ffast-math", gtkCFlags, "-DLINUX"].flatten() 419 X86EGL.glass.gtk.linker = linker 420 X86EGL.glass.gtk.linkFlags = [gtkLFlags, "-lstdc++"].flatten() 421 X86EGL.glass.gtk.lib = "glass" 422 423 X86EGL.decora = [:] 424 X86EGL.decora.compiler = compiler 425 X86EGL.decora.ccFlags = extraCFlags 426 X86EGL.decora.linker = linker 427 X86EGL.decora.linkFlags = extraLFlags 428 X86EGL.decora.lib = "decora_sse" 429 430 X86EGL.prism = [:] 431 X86EGL.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"] 432 X86EGL.prism.nativeSource = file("modules/graphics/src/main/native-prism") 433 X86EGL.prism.compiler = compiler 434 X86EGL.prism.ccFlags = [extraCFlags].flatten() 435 X86EGL.prism.linker = linker 436 X86EGL.prism.linkFlags = [extraLFlags, "-lX11", "-lXext", "-lXdmcp", "-lXau"].flatten() 437 X86EGL.prism.lib = "prism_common" 438 439 X86EGL.prismSW = [:] 440 X86EGL.prismSW.javahInclude = ["com/sun/pisces/**/*"] 441 X86EGL.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw") 442 X86EGL.prismSW.compiler = compiler 443 X86EGL.prismSW.ccFlags = [extraCFlags].flatten() 444 X86EGL.prismSW.linker = linker 445 X86EGL.prismSW.linkFlags = [extraLFlags].flatten() 446 X86EGL.prismSW.lib = "prism_sw" 447 448 X86EGL.iio = [:] 449 X86EGL.iio.javahInclude = ["com/sun/javafx/iio/**/*"] 450 X86EGL.iio.nativeSource = [ 451 file("modules/graphics/src/main/native-iio"), 452 file("modules/graphics/src/main/native-iio/libjpeg7")] 453 X86EGL.iio.compiler = compiler 454 X86EGL.iio.ccFlags = iioCFlags 455 X86EGL.iio.linker = linker 456 X86EGL.iio.linkFlags = iioLFlags 457 X86EGL.iio.lib = "javafx_iio" 458 459 X86EGL.prismES2 = [:] 460 X86EGL.prismES2.variants = ["eglfb", "monocle"] 461 X86EGL.prismES2.javahInclude = ["com/sun/prism/es2/**/*"] 462 463 X86EGL.prismES2.eglfb = [:] 464 X86EGL.prismES2.eglfb.nativeSource = [ 465 file("modules/graphics/src/main/native-prism-es2"), 466 file("modules/graphics/src/main/native-prism-es2/GL"), 467 file("modules/graphics/src/main/native-prism-es2/eglfb") 468 ] 469 X86EGL.prismES2.eglfb.compiler = compiler 470 X86EGL.prismES2.eglfb.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten() 471 X86EGL.prismES2.eglfb.linker = linker 472 X86EGL.prismES2.eglfb.linkFlags = es2EglfbLFlags 473 X86EGL.prismES2.eglfb.lib = "prism_es2_eglfb" 474 475 X86EGL.prismES2.eglx11 = [:] 476 X86EGL.prismES2.eglx11.nativeSource = [ 477 file("modules/graphics/src/main/native-prism-es2"), 478 file("modules/graphics/src/main/native-prism-es2/GL"), 479 file("modules/graphics/src/main/native-prism-es2/eglx11") 480 ] 481 X86EGL.prismES2.eglx11.compiler = compiler 482 X86EGL.prismES2.eglx11.ccFlags = es2X11CFlags 483 X86EGL.prismES2.eglx11.linker = linker 484 X86EGL.prismES2.eglx11.linkFlags = es2X11LFlags 485 X86EGL.prismES2.eglx11.lib = "prism_es2_eglx11" 486 487 X86EGL.prismES2.monocle= [:] 488 X86EGL.prismES2.monocle.nativeSource = [ 489 file("modules/graphics/src/main/native-prism-es2"), 490 file("modules/graphics/src/main/native-prism-es2/GL"), 491 file("modules/graphics/src/main/native-prism-es2/monocle") 492 ] 493 X86EGL.prismES2.monocle.compiler = compiler 494 X86EGL.prismES2.monocle.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten() 495 X86EGL.prismES2.monocle.linker = linker 496 X86EGL.prismES2.monocle.linkFlags = es2EglfbLFlags 497 X86EGL.prismES2.monocle.lib = "prism_es2_monocle" 498 499 def closedDir = file("$projectDir/../rt-closed") 500 X86EGL.font = [:] 501 X86EGL.font.javahInclude = [ 502 "com/sun/javafx/font/**/*", 503 "com/sun/javafx/text/**/*"] 504 X86EGL.font.nativeSource = [file("modules/graphics/src/main/native-font")] 505 X86EGL.font.compiler = compiler 506 X86EGL.font.ccFlags = fontCFlags 507 X86EGL.font.linker = linker 508 X86EGL.font.linkFlags = fontLFlags 509 X86EGL.font.lib = "javafx_font" 510 511 X86EGL.fontT2K = [:] 512 X86EGL.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"] 513 X86EGL.fontT2K.nativeSource = [ 514 file("$closedDir/javafx-font-t2k-native/src"), 515 file("$closedDir/javafx-font-t2k-native/src/layout")] 516 X86EGL.fontT2K.compiler = compiler 517 X86EGL.fontT2K.ccFlags = [fontCFlags, "-DLE_STANDALONE"].flatten() 518 X86EGL.fontT2K.linker = linker 519 X86EGL.fontT2K.linkFlags = fontLFlags 520 X86EGL.fontT2K.lib = "javafx_font_t2k" 521 522 X86EGL.fontFreetype = [:] 523 X86EGL.fontFreetype.javahInclude = ["com/sun/javafx/font/freetype/OSFreetype.class"] 524 X86EGL.fontFreetype.nativeSource = ["src/main/native-font/freetype.c"] 525 X86EGL.fontFreetype.compiler = compiler 526 X86EGL.fontFreetype.ccFlags = ["-DJFXFONT_PLUS", ccFlags, freetypeCCFlags].flatten() 527 X86EGL.fontFreetype.linker = linker 528 X86EGL.fontFreetype.linkFlags = [linkFlags, freetypeLinkFlags].flatten() 529 X86EGL.fontFreetype.lib = "javafx_font_freetype" 530 531 X86EGL.fontPango = [:] 532 X86EGL.fontPango.javahInclude = ["com/sun/javafx/font/freetype/OSPango.class"] 533 X86EGL.fontPango.nativeSource = ["src/main/native-font/pango.c"] 534 X86EGL.fontPango.compiler = compiler 535 X86EGL.fontPango.ccFlags = ["-DJFXFONT_PLUS", ccFlags, pangoCCFlags].flatten() 536 X86EGL.fontPango.linker = linker 537 X86EGL.fontPango.linkFlags = [linkFlags, pangoLinkFlags].flatten() 538 X86EGL.fontPango.lib = "javafx_font_pango" 539 540 X86EGL.disableMedia = true 541 X86EGL.media =[:] 542 X86EGL.media.compiler = compiler 543 X86EGL.media.linker = linker 544 X86EGL.media.lib = "ar" 545 546 X86EGL.deploy = [:] 547 X86EGL.deploy.publicLibraryFilter = [ 548 "fxavcodecplugin-52.so", 549 "fxavcodecplugin-53.so", 550 "fxplugins.so", 551 "libjfxwebkit.so", 552 "libgstplugins-lite.so", 553 "libgstreamer-lite.so", 554 "libprism_es2_eglx11.so", 555 "libglass_lens_fb.so" 556 ] 557 X86EGL.deploy.compressBigJar=true