< prev index next >

buildSrc/android.gradle

Print this page




 334 ANDROID.jfxrtJarExcludes = [
 335     "**/*.hlsl",
 336     "com/sun/glass/ui/win",
 337     "com/sun/prism/d3d",
 338     "com/sun/prism/es2/gl/win",
 339     "com/sun/prism/null3d",
 340     "com/sun/scenario/effect/impl/hw/d3d",
 341     "com/sun/glass/events/mac",
 342     "com/sun/glass/ui/mac",
 343     "com/sun/prism/es2/gl/mac",
 344     "com/sun/glass/ui/gtk",
 345     "com/sun/glass/ui/ios",
 346     "com/sun/prism/es2/gl/eglx11",
 347     "com/sun/prism/es2/gl/x11",
 348     "com/sun/glass/ui/swt", // SWT glass
 349     "javafx/embed/swing", // Swing Interop
 350     "javafx/embed/swt", // SWT Interop
 351     "com/oracle/dalvik"
 352 ]
 353 
 354 def text = (compileNativeText) ? "native" : "t2k"
 355 
 356 ANDROID.javafxPlatformProperties = """
 357 javafx.platform=android
 358 android.glass.platform=Lens
 359 android.glass.lens=eglfb
 360 android.prism.glDepthSize=16
 361 android.prism.lcdtext=false
 362 android.prism.debugfonts=true
 363 android.prism.text=$text
 364 android.embedded=eglfb
 365 android.prism.allowhidpi=false
 366 android.prism.maxTextureSize=2048
 367 android.prism.dirtyopts=true
 368 android.prism.vsync=false
 369 android.log.lens=FINE
 370 android.use.egl=true
 371 android.com.sun.javafx.isEmbedded=true
 372 """
 373 def sysroot = "$ndk/platforms/$ndk_target/arch-arm"
 374 


 548     file("${project("graphics").projectDir}/src/main/native-prism-es2/GL"),
 549     file("${project("graphics").projectDir}/src/main/native-prism-es2/eglfb")]
 550 ANDROID.prismES2.eglfb.compiler = compiler
 551 ANDROID.prismES2.eglfb.ccFlags = [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 552     ccDebugFlags, ccDefaultIncludeFlags, "-DIS_EGLFB"].flatten()
 553 ANDROID.prismES2.eglfb.linker = linker
 554 ANDROID.prismES2.eglfb.linkFlags = [linkFlags, "-ldl", "-llog", "-lGLESv2", "-lEGL"].flatten()
 555 ANDROID.prismES2.eglfb.lib = "prism_es2_eglfb"
 556 
 557 ANDROID.font = [:]
 558 ANDROID.font.javahInclude = [
 559         "com/sun/javafx/font/**/*",
 560         "com/sun/javafx/text/**/*"]
 561 ANDROID.font.nativeSource = [file("$closedDir/javafx-font-native/src")]
 562 ANDROID.font.compiler = compiler
 563 ANDROID.font.ccFlags = [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 564     ccDebugFlags, ccDefaultIncludeFlags].flatten()
 565 ANDROID.font.linker = linker
 566 ANDROID.font.linkFlags = [linkFlags].flatten()
 567 ANDROID.font.lib = "javafx_font"
 568 
 569 if (BUILD_CLOSED) {
 570     ANDROID.fontT2K = [:]
 571     ANDROID.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
 572     ANDROID.fontT2K.nativeSource = [
 573         file("$closedDir/javafx-font-t2k-native/src"),
 574         file("$closedDir/javafx-font-t2k-native/src/layout")]
 575     ANDROID.fontT2K.compiler = compiler
 576     ANDROID.fontT2K.ccFlags = [ccFlags, "-DLE_STANDALONE", "-fno-exceptions", "-fno-rtti", ccWarnFlags,
 577         ccArchFlags, ccOptFlags, ccDebugFlags, ccDefaultIncludeFlags].flatten()
 578     ANDROID.fontT2K.linker = linker
 579     ANDROID.fontT2K.linkFlags = [linkFlags, "-lstdc++"].flatten()
 580     ANDROID.fontT2K.lib = "javafx_font_t2k"
 581 }
 582 
 583 if (compileNativeText) {
 584     ANDROID.fontNativeFreetype = [:]
 585     ANDROID.fontNativeFreetype.javahInclude = [
 586         "com/sun/javafx/font/freetype/OSFreetype.class"
 587     ]
 588     ANDROID.fontNativeFreetype.nativeSource = [
 589         file("${project("graphics").projectDir}/src/main/native-font/freetype.c")
 590     ]
 591     ANDROID.fontNativeFreetype.compiler = compiler
 592     ANDROID.fontNativeFreetype.linker = linker
 593     ANDROID.fontNativeFreetype.lib = "javafx_font_freetype"
 594 
 595     ccFlags += ["-D_ENABLE_HARFBUZZ"]
 596 
 597     ANDROID.fontNativeFreetype.ccFlags =
 598         [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 599         ccDebugFlags, ccDefaultIncludeFlags,
 600         "-I$freetypeDir/include", "-I$freetypeDir/include/freetype2"].flatten()
 601 


 334 ANDROID.jfxrtJarExcludes = [
 335     "**/*.hlsl",
 336     "com/sun/glass/ui/win",
 337     "com/sun/prism/d3d",
 338     "com/sun/prism/es2/gl/win",
 339     "com/sun/prism/null3d",
 340     "com/sun/scenario/effect/impl/hw/d3d",
 341     "com/sun/glass/events/mac",
 342     "com/sun/glass/ui/mac",
 343     "com/sun/prism/es2/gl/mac",
 344     "com/sun/glass/ui/gtk",
 345     "com/sun/glass/ui/ios",
 346     "com/sun/prism/es2/gl/eglx11",
 347     "com/sun/prism/es2/gl/x11",
 348     "com/sun/glass/ui/swt", // SWT glass
 349     "javafx/embed/swing", // Swing Interop
 350     "javafx/embed/swt", // SWT Interop
 351     "com/oracle/dalvik"
 352 ]
 353 
 354 def text = (compileNativeText) ? "native" : ""
 355 
 356 ANDROID.javafxPlatformProperties = """
 357 javafx.platform=android
 358 android.glass.platform=Lens
 359 android.glass.lens=eglfb
 360 android.prism.glDepthSize=16
 361 android.prism.lcdtext=false
 362 android.prism.debugfonts=true
 363 android.prism.text=$text
 364 android.embedded=eglfb
 365 android.prism.allowhidpi=false
 366 android.prism.maxTextureSize=2048
 367 android.prism.dirtyopts=true
 368 android.prism.vsync=false
 369 android.log.lens=FINE
 370 android.use.egl=true
 371 android.com.sun.javafx.isEmbedded=true
 372 """
 373 def sysroot = "$ndk/platforms/$ndk_target/arch-arm"
 374 


 548     file("${project("graphics").projectDir}/src/main/native-prism-es2/GL"),
 549     file("${project("graphics").projectDir}/src/main/native-prism-es2/eglfb")]
 550 ANDROID.prismES2.eglfb.compiler = compiler
 551 ANDROID.prismES2.eglfb.ccFlags = [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 552     ccDebugFlags, ccDefaultIncludeFlags, "-DIS_EGLFB"].flatten()
 553 ANDROID.prismES2.eglfb.linker = linker
 554 ANDROID.prismES2.eglfb.linkFlags = [linkFlags, "-ldl", "-llog", "-lGLESv2", "-lEGL"].flatten()
 555 ANDROID.prismES2.eglfb.lib = "prism_es2_eglfb"
 556 
 557 ANDROID.font = [:]
 558 ANDROID.font.javahInclude = [
 559         "com/sun/javafx/font/**/*",
 560         "com/sun/javafx/text/**/*"]
 561 ANDROID.font.nativeSource = [file("$closedDir/javafx-font-native/src")]
 562 ANDROID.font.compiler = compiler
 563 ANDROID.font.ccFlags = [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 564     ccDebugFlags, ccDefaultIncludeFlags].flatten()
 565 ANDROID.font.linker = linker
 566 ANDROID.font.linkFlags = [linkFlags].flatten()
 567 ANDROID.font.lib = "javafx_font"














 568 
 569 if (compileNativeText) {
 570     ANDROID.fontNativeFreetype = [:]
 571     ANDROID.fontNativeFreetype.javahInclude = [
 572         "com/sun/javafx/font/freetype/OSFreetype.class"
 573     ]
 574     ANDROID.fontNativeFreetype.nativeSource = [
 575         file("${project("graphics").projectDir}/src/main/native-font/freetype.c")
 576     ]
 577     ANDROID.fontNativeFreetype.compiler = compiler
 578     ANDROID.fontNativeFreetype.linker = linker
 579     ANDROID.fontNativeFreetype.lib = "javafx_font_freetype"
 580 
 581     ccFlags += ["-D_ENABLE_HARFBUZZ"]
 582 
 583     ANDROID.fontNativeFreetype.ccFlags =
 584         [ccFlags, ccWarnFlags, ccArchFlags, ccOptFlags,
 585         ccDebugFlags, ccDefaultIncludeFlags,
 586         "-I$freetypeDir/include", "-I$freetypeDir/include/freetype2"].flatten()
 587 
< prev index next >