< prev index next >

./build.gradle

Print this page




3528 
3529     if (IS_COMPILE_WEBKIT) {
3530         compileJava {
3531             // generate the native headers during compile
3532             // only needed if we are doing the native compile
3533             options.compilerArgs.addAll([
3534                 '-h', "${project.buildDir}/gensrc/headers"
3535                 ])
3536         }
3537     }
3538 
3539     // Copy these to a common location in the moduleSourcePath
3540     def copyWrappers = project.task("copyPreGeneratedWrappers", type: Copy) {
3541         from "src/main/native/Source/WebCore/bindings/java/dom3/java"
3542         into "${gensrcDir}"
3543     }
3544 
3545     compileJava.dependsOn(copyWrappers);
3546 
3547     test {







3548         // Run web tests in headless mode
3549         systemProperty 'glass.platform', 'Monocle'
3550         systemProperty 'monocle.platform', 'Headless'
3551         systemProperty 'prism.order', 'sw'
3552         dependsOn webArchiveJar
3553         def testResourceDir = file("$buildDir/testing/resources")
3554         jvmArgs "-DWEB_ARCHIVE_JAR_TEST_DIR=$testResourceDir"
3555     }
3556 
3557     task compileJavaDOMBinding()
3558 
3559     compileTargets { t ->
3560         def targetProperties = project.rootProject.ext[t.upper]
3561         def classifier = (t.name != "linux" && t.name != "win") ? t.name :
3562                           IS_64 ? "${t.name}-amd64" : "${t.name}-i586"
3563 
3564         def webkitOutputDir = cygpath("$buildDir/${t.name}")
3565         def webkitConfig = IS_DEBUG_NATIVE ? "Debug" : "Release"
3566 
3567         File nativeBuildDir = new File("${webkitOutputDir}")




3528 
3529     if (IS_COMPILE_WEBKIT) {
3530         compileJava {
3531             // generate the native headers during compile
3532             // only needed if we are doing the native compile
3533             options.compilerArgs.addAll([
3534                 '-h', "${project.buildDir}/gensrc/headers"
3535                 ])
3536         }
3537     }
3538 
3539     // Copy these to a common location in the moduleSourcePath
3540     def copyWrappers = project.task("copyPreGeneratedWrappers", type: Copy) {
3541         from "src/main/native/Source/WebCore/bindings/java/dom3/java"
3542         into "${gensrcDir}"
3543     }
3544 
3545     compileJava.dependsOn(copyWrappers);
3546 
3547     test {
3548         if (!IS_COMPILE_WEBKIT) {
3549             println "***************************************************************************************"
3550             println "*** running web tests without building webkit ***"
3551             println "*** webkit native library will be picked up from JDK and few web test cases may fail ***"
3552             println "*** make sure you copy webkit native library from recent build ***"
3553             println "***************************************************************************************"
3554         }
3555         // Run web tests in headless mode
3556         systemProperty 'glass.platform', 'Monocle'
3557         systemProperty 'monocle.platform', 'Headless'
3558         systemProperty 'prism.order', 'sw'
3559         dependsOn webArchiveJar
3560         def testResourceDir = file("$buildDir/testing/resources")
3561         jvmArgs "-DWEB_ARCHIVE_JAR_TEST_DIR=$testResourceDir"
3562     }
3563 
3564     task compileJavaDOMBinding()
3565 
3566     compileTargets { t ->
3567         def targetProperties = project.rootProject.ext[t.upper]
3568         def classifier = (t.name != "linux" && t.name != "win") ? t.name :
3569                           IS_64 ? "${t.name}-amd64" : "${t.name}-i586"
3570 
3571         def webkitOutputDir = cygpath("$buildDir/${t.name}")
3572         def webkitConfig = IS_DEBUG_NATIVE ? "Debug" : "Release"
3573 
3574         File nativeBuildDir = new File("${webkitOutputDir}")


< prev index next >