buildSrc/x86egl.gradle

Print this page
rev 6856 : RT-36822 [Monocle] X11 framebuffer container doesn't work any more


 281                 commandLine "$pkgconfig", "--libs", "pangoft2"
 282                 standardOutput = results
 283             }
 284             propFile << "libs=" << results.toString().trim();
 285         },
 286         { properties ->
 287             pangoCCFlags.addAll(properties.getProperty("cflags").split(" "))
 288             pangoLinkFlags.addAll(properties.getProperty("libs").split(" "))
 289         }
 290 )
 291 
 292 def compiler = file("$compilerHome/bin/${compilerPrefix}gcc").getAbsolutePath()
 293 def linker = file("$compilerHome/bin/${compilerPrefix}g++").getAbsolutePath()
 294 
 295 X86EGL.glass = [:]
 296 X86EGL.glass.variants = ["eglfb", "directfb", "fb", "gtk", "lensport", "monocle", "monocle_x11"]
 297 X86EGL.glass.javahInclude = [
 298     "com/sun/glass/events/**",
 299     "com/sun/glass/ui/*",
 300     "com/sun/glass/ui/lens/*",

 301     "com/sun/glass/ui/monocle/linux/*",
 302     "com/sun/glass/ui/monocle/util/*",
 303     "com/sun/glass/ui/monocle/x11/*",
 304     "com/sun/glass/ui/gtk/*"]
 305 X86EGL.glass.lib = "glass"
 306 
 307 X86EGL.glass.monocle = [:]
 308 X86EGL.glass.monocle.nativeSource = [

 309         file("modules/graphics/src/main/native-glass/monocle/linux"),
 310         file("modules/graphics/src/main/native-glass/monocle/util") ]
 311 X86EGL.glass.monocle.compiler = compiler
 312 X86EGL.glass.monocle.ccFlags = monocleCFlags
 313 X86EGL.glass.monocle.linker = linker
 314 X86EGL.glass.monocle.linkFlags = monocleLFlags
 315 X86EGL.glass.monocle.lib = "glass_monocle"
 316 
 317 X86EGL.glass.monocle_x11 = [:]
 318 X86EGL.glass.monocle_x11.nativeSource = [
 319         file("modules/graphics/src/main/native-glass/monocle/util"),
 320         file("modules/graphics/src/main/native-glass/monocle/x11") ]
 321 X86EGL.glass.monocle_x11.compiler = compiler
 322 X86EGL.glass.monocle_x11.ccFlags = monocleCFlags
 323 X86EGL.glass.monocle_x11.linker = linker
 324 X86EGL.glass.monocle_x11.linkFlags = [ monocleLFlags, "-lX11" ].flatten()
 325 X86EGL.glass.monocle_x11.lib = "glass_monocle_x11"
 326 
 327 X86EGL.glass.lensport = [:]
 328 X86EGL.glass.lensport.nativeSource = [


 427 X86EGL.prismSW.javahInclude = ["com/sun/pisces/**/*"]
 428 X86EGL.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw")
 429 X86EGL.prismSW.compiler = compiler
 430 X86EGL.prismSW.ccFlags = [extraCFlags].flatten()
 431 X86EGL.prismSW.linker = linker
 432 X86EGL.prismSW.linkFlags = [extraLFlags].flatten()
 433 X86EGL.prismSW.lib = "prism_sw"
 434 
 435 X86EGL.iio = [:]
 436 X86EGL.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 437 X86EGL.iio.nativeSource = [
 438     file("modules/graphics/src/main/native-iio"),
 439     file("modules/graphics/src/main/native-iio/libjpeg7")]
 440 X86EGL.iio.compiler = compiler
 441 X86EGL.iio.ccFlags = iioCFlags
 442 X86EGL.iio.linker = linker
 443 X86EGL.iio.linkFlags = iioLFlags
 444 X86EGL.iio.lib = "javafx_iio"
 445 
 446 X86EGL.prismES2 = [:]
 447 X86EGL.prismES2.variants = ["eglfb"]
 448 X86EGL.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 449 
 450 X86EGL.prismES2.eglfb = [:]
 451 X86EGL.prismES2.eglfb.nativeSource = [
 452     file("modules/graphics/src/main/native-prism-es2"),
 453     file("modules/graphics/src/main/native-prism-es2/GL"),
 454     file("modules/graphics/src/main/native-prism-es2/eglfb")
 455 ]
 456 X86EGL.prismES2.eglfb.compiler = compiler
 457 X86EGL.prismES2.eglfb.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten()
 458 X86EGL.prismES2.eglfb.linker = linker
 459 X86EGL.prismES2.eglfb.linkFlags = es2EglfbLFlags
 460 X86EGL.prismES2.eglfb.lib = "prism_es2_eglfb"
 461 
 462 X86EGL.prismES2.eglx11 = [:]
 463 X86EGL.prismES2.eglx11.nativeSource = [
 464     file("modules/graphics/src/main/native-prism-es2"),
 465     file("modules/graphics/src/main/native-prism-es2/GL"),
 466     file("modules/graphics/src/main/native-prism-es2/eglx11")
 467 ]
 468 X86EGL.prismES2.eglx11.compiler = compiler
 469 X86EGL.prismES2.eglx11.ccFlags = es2X11CFlags
 470 X86EGL.prismES2.eglx11.linker = linker
 471 X86EGL.prismES2.eglx11.linkFlags = es2X11LFlags
 472 X86EGL.prismES2.eglx11.lib = "prism_es2_eglx11"
 473 












 474 def closedDir = file("$projectDir/../rt-closed")
 475 X86EGL.font = [:]
 476 X86EGL.font.javahInclude = [
 477     "com/sun/javafx/font/**/*",
 478     "com/sun/javafx/text/**/*"]
 479 X86EGL.font.nativeSource = [file("modules/graphics/src/main/native-font")]
 480 X86EGL.font.compiler = compiler
 481 X86EGL.font.ccFlags = fontCFlags
 482 X86EGL.font.linker = linker
 483 X86EGL.font.linkFlags = fontLFlags
 484 X86EGL.font.lib = "javafx_font"
 485 
 486 X86EGL.fontT2K = [:]
 487 X86EGL.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
 488 X86EGL.fontT2K.nativeSource = [
 489         file("$closedDir/javafx-font-t2k-native/src"),
 490         file("$closedDir/javafx-font-t2k-native/src/layout")]
 491 X86EGL.fontT2K.compiler = compiler
 492 X86EGL.fontT2K.ccFlags = [fontCFlags, "-DLE_STANDALONE"].flatten()
 493 X86EGL.fontT2K.linker = linker


 281                 commandLine "$pkgconfig", "--libs", "pangoft2"
 282                 standardOutput = results
 283             }
 284             propFile << "libs=" << results.toString().trim();
 285         },
 286         { properties ->
 287             pangoCCFlags.addAll(properties.getProperty("cflags").split(" "))
 288             pangoLinkFlags.addAll(properties.getProperty("libs").split(" "))
 289         }
 290 )
 291 
 292 def compiler = file("$compilerHome/bin/${compilerPrefix}gcc").getAbsolutePath()
 293 def linker = file("$compilerHome/bin/${compilerPrefix}g++").getAbsolutePath()
 294 
 295 X86EGL.glass = [:]
 296 X86EGL.glass.variants = ["eglfb", "directfb", "fb", "gtk", "lensport", "monocle", "monocle_x11"]
 297 X86EGL.glass.javahInclude = [
 298     "com/sun/glass/events/**",
 299     "com/sun/glass/ui/*",
 300     "com/sun/glass/ui/lens/*",
 301     "com/sun/glass/ui/monocle/*",
 302     "com/sun/glass/ui/monocle/linux/*",
 303     "com/sun/glass/ui/monocle/util/*",
 304     "com/sun/glass/ui/monocle/x11/*",
 305     "com/sun/glass/ui/gtk/*"]
 306 X86EGL.glass.lib = "glass"
 307 
 308 X86EGL.glass.monocle = [:]
 309 X86EGL.glass.monocle.nativeSource = [
 310         file("modules/graphics/src/main/native-glass/monocle"),
 311         file("modules/graphics/src/main/native-glass/monocle/linux"),
 312         file("modules/graphics/src/main/native-glass/monocle/util") ]
 313 X86EGL.glass.monocle.compiler = compiler
 314 X86EGL.glass.monocle.ccFlags = monocleCFlags
 315 X86EGL.glass.monocle.linker = linker
 316 X86EGL.glass.monocle.linkFlags = monocleLFlags
 317 X86EGL.glass.monocle.lib = "glass_monocle"
 318 
 319 X86EGL.glass.monocle_x11 = [:]
 320 X86EGL.glass.monocle_x11.nativeSource = [
 321         file("modules/graphics/src/main/native-glass/monocle/util"),
 322         file("modules/graphics/src/main/native-glass/monocle/x11") ]
 323 X86EGL.glass.monocle_x11.compiler = compiler
 324 X86EGL.glass.monocle_x11.ccFlags = monocleCFlags
 325 X86EGL.glass.monocle_x11.linker = linker
 326 X86EGL.glass.monocle_x11.linkFlags = [ monocleLFlags, "-lX11" ].flatten()
 327 X86EGL.glass.monocle_x11.lib = "glass_monocle_x11"
 328 
 329 X86EGL.glass.lensport = [:]
 330 X86EGL.glass.lensport.nativeSource = [


 429 X86EGL.prismSW.javahInclude = ["com/sun/pisces/**/*"]
 430 X86EGL.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw")
 431 X86EGL.prismSW.compiler = compiler
 432 X86EGL.prismSW.ccFlags = [extraCFlags].flatten()
 433 X86EGL.prismSW.linker = linker
 434 X86EGL.prismSW.linkFlags = [extraLFlags].flatten()
 435 X86EGL.prismSW.lib = "prism_sw"
 436 
 437 X86EGL.iio = [:]
 438 X86EGL.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 439 X86EGL.iio.nativeSource = [
 440     file("modules/graphics/src/main/native-iio"),
 441     file("modules/graphics/src/main/native-iio/libjpeg7")]
 442 X86EGL.iio.compiler = compiler
 443 X86EGL.iio.ccFlags = iioCFlags
 444 X86EGL.iio.linker = linker
 445 X86EGL.iio.linkFlags = iioLFlags
 446 X86EGL.iio.lib = "javafx_iio"
 447 
 448 X86EGL.prismES2 = [:]
 449 X86EGL.prismES2.variants = ["eglfb", "monocle"]
 450 X86EGL.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 451 
 452 X86EGL.prismES2.eglfb = [:]
 453 X86EGL.prismES2.eglfb.nativeSource = [
 454     file("modules/graphics/src/main/native-prism-es2"),
 455     file("modules/graphics/src/main/native-prism-es2/GL"),
 456     file("modules/graphics/src/main/native-prism-es2/eglfb")
 457 ]
 458 X86EGL.prismES2.eglfb.compiler = compiler
 459 X86EGL.prismES2.eglfb.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten()
 460 X86EGL.prismES2.eglfb.linker = linker
 461 X86EGL.prismES2.eglfb.linkFlags = es2EglfbLFlags
 462 X86EGL.prismES2.eglfb.lib = "prism_es2_eglfb"
 463 
 464 X86EGL.prismES2.eglx11 = [:]
 465 X86EGL.prismES2.eglx11.nativeSource = [
 466     file("modules/graphics/src/main/native-prism-es2"),
 467     file("modules/graphics/src/main/native-prism-es2/GL"),
 468     file("modules/graphics/src/main/native-prism-es2/eglx11")
 469 ]
 470 X86EGL.prismES2.eglx11.compiler = compiler
 471 X86EGL.prismES2.eglx11.ccFlags = es2X11CFlags
 472 X86EGL.prismES2.eglx11.linker = linker
 473 X86EGL.prismES2.eglx11.linkFlags = es2X11LFlags
 474 X86EGL.prismES2.eglx11.lib = "prism_es2_eglx11"
 475 
 476 X86EGL.prismES2.monocle= [:]
 477 X86EGL.prismES2.monocle.nativeSource = [
 478         file("modules/graphics/src/main/native-prism-es2"),
 479         file("modules/graphics/src/main/native-prism-es2/GL"),
 480         file("modules/graphics/src/main/native-prism-es2/monocle")
 481 ]
 482 X86EGL.prismES2.monocle.compiler = compiler
 483 X86EGL.prismES2.monocle.ccFlags = [ es2EglfbCFlags, "-I", X86EGL.glass.lensport.nativeSource ].flatten()
 484 X86EGL.prismES2.monocle.linker = linker
 485 X86EGL.prismES2.monocle.linkFlags = es2EglfbLFlags
 486 X86EGL.prismES2.monocle.lib = "prism_es2_monocle"
 487 
 488 def closedDir = file("$projectDir/../rt-closed")
 489 X86EGL.font = [:]
 490 X86EGL.font.javahInclude = [
 491     "com/sun/javafx/font/**/*",
 492     "com/sun/javafx/text/**/*"]
 493 X86EGL.font.nativeSource = [file("modules/graphics/src/main/native-font")]
 494 X86EGL.font.compiler = compiler
 495 X86EGL.font.ccFlags = fontCFlags
 496 X86EGL.font.linker = linker
 497 X86EGL.font.linkFlags = fontLFlags
 498 X86EGL.font.lib = "javafx_font"
 499 
 500 X86EGL.fontT2K = [:]
 501 X86EGL.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
 502 X86EGL.fontT2K.nativeSource = [
 503         file("$closedDir/javafx-font-t2k-native/src"),
 504         file("$closedDir/javafx-font-t2k-native/src/layout")]
 505 X86EGL.fontT2K.compiler = compiler
 506 X86EGL.fontT2K.ccFlags = [fontCFlags, "-DLE_STANDALONE"].flatten()
 507 X86EGL.fontT2K.linker = linker