1 /* 2 * Copyright (c) 2013, 2015, 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.WIN = [:] 27 28 WIN.canBuild = IS_WINDOWS 29 if (!WIN.canBuild) return; 30 31 WIN.compileSwing = true; 32 WIN.compileSWT = true; 33 WIN.compileFXPackager = true; 34 35 WIN.includeNull3d = true 36 37 // Lambda for naming the generated libs 38 WIN.library = { name -> return "${name}.dll" as String } 39 40 WIN.libDest = "bin" 41 42 setupTools("windows_tools", 43 { propFile -> 44 // Create the properties file 45 ByteArrayOutputStream results = new ByteArrayOutputStream(); 46 String winsdkDir = System.getenv().get("WINSDK_DIR"); 47 exec({ 48 environment([ 49 "WINSDKPATH" : winsdkDir == null ? "" : winsdkDir, 50 "CONF" : "/$CONF", // TODO does this mean the generated properties must be reset when in a different configuration? 51 "VCARCH" : IS_64 ? "amd64" : "x86", 52 "SDKARCH" : IS_64 ? "/x64" : "/x86", 53 ]); 54 commandLine("cmd", "/q", "/c", "buildSrc\\genVSproperties.bat"); 55 setStandardOutput(results); 56 }); 57 BufferedReader reader = new BufferedReader(new StringReader(results.toString().trim())); 58 reader.readLine(); 59 reader.readLine(); 60 String line; 61 while ((line = reader.readLine()) != null && !line.startsWith("######")) { 62 line = line.replace("\\", "/").replace("/@@ENDOFLINE@@", "").replace("@@ENDOFLINE@@", "").replace("//", "/").replace("windows.vs.", "WINDOWS_VS_"); 63 propFile << line << "\r\n"; 64 } 65 }, 66 { properties -> 67 defineProperty("WINDOWS_VS_VSINSTALLDIR", properties, "c:/Program Files (x86)/Microsoft Visual Studio 12.0"); 68 defineProperty("WINDOWS_SDK_DIR", properties, System.getenv().get("WINSDK_DIR")) 69 defineProperty("WINDOWS_VS_VCINSTALLDIR", properties, "$WINDOWS_VS_VSINSTALLDIR/VC") 70 defineProperty("WINDOWS_VS_DEVENVDIR", properties, "$WINDOWS_VS_VSINSTALLDIR/Common7/IDE") 71 defineProperty("WINDOWS_VS_DEVENVCMD", properties, "$WINDOWS_VS_DEVENVDIR/VCExpress.exe") 72 defineProperty("WINDOWS_VS_MSVCDIR", properties, WINDOWS_VS_VCINSTALLDIR) 73 defineProperty("WINDOWS_DXSDK_DIR", properties, System.getenv().get("DXSDK_DIR")) 74 defineProperty("WINDOWS_VS_INCLUDE", properties, "$WINDOWS_VS_VCINSTALLDIR/INCLUDE;" + "$WINDOWS_SDK_DIR/include;") 75 defineProperty("WINDOWS_VS_VER", properties, "120") 76 defineProperty("WINDOWS_VS_LIB", properties, "$WINDOWS_VS_VCINSTALLDIR/LIB;" + "$WINDOWS_SDK_DIR/lib;") 77 defineProperty("WINDOWS_VS_LIBPATH", properties, "$WINDOWS_VS_VCINSTALLDIR/LIB;") 78 def parfaitPath = IS_COMPILE_PARFAIT ? System.getenv().get("PARFAIT_PATH") + ";" : ""; 79 defineProperty("WINDOWS_VS_PATH", properties, parfaitPath + "$WINDOWS_VS_DEVENVDIR;" + 80 "$WINDOWS_VS_VSINSTALLDIR/VC/BIN;" + 81 "$WINDOWS_VS_VSINSTALLDIR/Common7/Tools;" + 82 "$WINDOWS_VS_VCINSTALLDIR/VCPackages;" + 83 "$WINDOWS_SDK_DIR/bin/NETFX 4.0 Tools;" + 84 "$WINDOWS_SDK_DIR/bin;" + 85 System.getenv().get("PATH")) 86 } 87 ) 88 89 if (WINDOWS_SDK_DIR == null || WINDOWS_SDK_DIR == "") { 90 throw new GradleException("FAIL: WINSDK_DIR not defined"); 91 } 92 93 if (WINDOWS_DXSDK_DIR == null || WINDOWS_DXSDK_DIR == "") { 94 throw new GradleException("FAIL: DXSDK_DIR not defined"); 95 } 96 97 // Define set of flags shared for all targets that support debug compilation 98 def ccDebugFlags = 99 IS_DEBUG_NATIVE ? ["/MDd", "/Od", "/Zi", "/DDEBUG"] : ["/O2", "/MD", "/DNDEBUG"] 100 101 def winVsVer = Integer.parseInt(WINDOWS_VS_VER) 102 if (winVsVer >= 120) { 103 // Serialize access to PDB file for debug builds if on VS2013 or later 104 if (IS_DEBUG_NATIVE) ccDebugFlags += "/FS" 105 } 106 107 108 // Common set of flags for all modules except fxpackager 109 def ccFlags = ["/nologo", "/W3", "/EHsc", "/c", 110 "/D_STATIC_CPPLIB", "/D_DISABLE_DEPRECATE_STATIC_CPPLIB", "/DINLINE=__inline", 111 "/DUNICODE", "/D_UNICODE", "/DWIN32", "/DIAL", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", 112 "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", 113 ccDebugFlags].flatten(); 114 115 def linkFlags = ["/nologo", "/dll", "/manifest", "/opt:REF", "/incremental:no"]; 116 if (IS_DEBUG_NATIVE) linkFlags.add("/debug"); 117 118 // Remove C++ static linking if not on VS2010 119 if (WINDOWS_VS_VER != "100") { 120 ccFlags -= ["/D_STATIC_CPPLIB", "/D_DISABLE_DEPRECATE_STATIC_CPPLIB"] 121 } 122 123 ext.WINDOWS_NATIVE_COMPILE_ENVIRONMENT = [ 124 "VCINSTALLDIR" : WINDOWS_VS_VCINSTALLDIR, 125 "VSINSTALLDIR" : WINDOWS_VS_VSINSTALLDIR, 126 "DEVENVDIR" : WINDOWS_VS_DEVENVDIR, 127 "MSVCDIR" : WINDOWS_VS_MSVCDIR, 128 "VS_VER" : WINDOWS_VS_VER, 129 "PATH" : WINDOWS_VS_PATH, 130 "INCLUDE" : WINDOWS_VS_INCLUDE, 131 "LIB" : WINDOWS_VS_LIB, 132 "LIBPATH" : WINDOWS_VS_LIBPATH, 133 "DXSDK_DIR" : WINDOWS_DXSDK_DIR 134 ]; 135 136 String msvcBinDir = (IS_64 137 ? "$WINDOWS_VS_VSINSTALLDIR/VC/BIN/amd64" 138 : "$WINDOWS_VS_VSINSTALLDIR/VC/BIN") 139 def compiler = IS_COMPILE_PARFAIT ? "cl.exe" : cygpath("$msvcBinDir/cl.exe") 140 def linker = IS_COMPILE_PARFAIT ? "link.exe" : cygpath("$msvcBinDir/link.exe") 141 def winSdkBinDir = "$WINDOWS_SDK_DIR/Bin" 142 if (WINDOWS_VS_VER != "100") { 143 winSdkBinDir += "/" + (IS_64 ? "x64" : "x86") 144 } 145 ext.RC = cygpath("$winSdkBinDir/RC.Exe") 146 def rcCompiler = RC 147 ext.FXC = cygpath("$WINDOWS_DXSDK_DIR/utilities/bin/x86/fxc.exe") 148 ext.MC = cygpath("$winSdkBinDir/mt.exe") 149 ext.MSVCR = cygpath("${WINDOWS_VS_MSVCDIR}/redist/${IS_64 ? 'x64' : 'x86'}/Microsoft.VC${WINDOWS_VS_VER}.CRT/msvcr${WINDOWS_VS_VER}.dll") 150 ext.MSVCP = cygpath("${WINDOWS_VS_MSVCDIR}/redist/${IS_64 ? 'x64' : 'x86'}/Microsoft.VC${WINDOWS_VS_VER}.CRT/msvcp${WINDOWS_VS_VER}.dll") 151 152 // Set up path to redistributable MS VC libraries if we are using a different 153 // version of Visual Studio than the JDK 154 def msvcrtDir = WINDOWS_VS_VER == "100" ? "" : cygpath("${WINDOWS_VS_MSVCDIR}/redist/${IS_64 ? 'x64' : 'x86'}/Microsoft.VC${WINDOWS_VS_VER}.CRT") 155 WIN.MSVCRTDIR = msvcrtDir 156 157 if (!file(RC).exists()) throw new GradleException("FAIL: cannot find RC: " + RC) 158 if (!file(FXC).exists()) throw new GradleException("FAIL: cannot find FXC: " + FXC) 159 160 // The product version passed to RC is defined as follows: 161 // 162 // MAJOR.MINOR.UPDATE_10.BUILD 163 // 164 // where: 165 // 166 // MAJOR = 8 (for JDK 8) 167 // MINOR = 0 168 // UPDATE_10 = JDK update * 10, so 8u65 --> 650 169 // BUILD = build number with no leading zeros 170 // 171 def rcVerMajor = Integer.parseInt(jfxReleaseMajorVersion) 172 def rcVerMinor = Integer.parseInt(jfxReleaseMinorVersion) 173 def rcVerMicro = Integer.parseInt(jfxReleaseMicroVersion) * 10 174 def rcVerSubMicro = Integer.parseInt(PROMOTED_BUILD_NUMBER) 175 176 def rcVer = "${rcVerMajor}.${rcVerMinor}.${rcVerMicro}.${rcVerSubMicro}" 177 def rcVerComma = "${rcVerMajor},${rcVerMinor},${rcVerMicro},${rcVerSubMicro}" 178 179 def rcVerProduct = "${rcVerMajor}" 180 181 def rcFlags = [ 182 "/d", "\"JFX_COMPANY=${COMPANY_NAME}\"", 183 "/d", "\"JFX_COMPONENT=${PRODUCT_NAME} ${PLATFORM_NAME} binary\"", 184 "/d", "\"JFX_NAME=${PRODUCT_NAME} ${PLATFORM_NAME} ${rcVerProduct}\"", 185 "/d", "\"JFX_VER=${rcVer}\"", 186 "/d", "\"JFX_BUILD_ID=${RAW_VERSION}-${RELEASE_MILESTONE}-b${PROMOTED_BUILD_NUMBER}\"", 187 "/d", "\"JFX_COPYRIGHT=Copyright \u00A9 ${Calendar.getInstance().get(Calendar.YEAR)}\"", 188 "/d", "\"JFX_FVER=${rcVerComma}\"", 189 "/d", "\"JFX_FTYPE=0x2L\"", 190 "/nologo" 191 ]; 192 193 def defaultRcSource = file("modules/graphics/src/main/resources/version.rc"); 194 195 WIN.glass = [:] 196 WIN.glass.javahInclude = [ 197 "com/sun/glass/events/**", 198 "com/sun/glass/ui/*", 199 "com/sun/glass/ui/win/*"] 200 WIN.glass.nativeSource = file("modules/graphics/src/main/native-glass/win") 201 WIN.glass.compiler = compiler 202 WIN.glass.rcCompiler = rcCompiler; 203 WIN.glass.rcSource = file("modules/graphics/src/main/native-glass/win/GlassResources.rc"); 204 WIN.glass.rcFlags = [ 205 "/I", file("modules/graphics/src/main/resources"), 206 "/d", "JFX_FNAME=glass.dll", 207 "/d", "JFX_INTERNAL_NAME=glass", 208 rcFlags].flatten(); 209 WIN.glass.ccFlags = [ccFlags, "/WX"].flatten() 210 if (WINDOWS_VS_VER != "100") WIN.glass.ccFlags -= ["/WX"] 211 WIN.glass.linker = linker 212 WIN.glass.linkFlags = [linkFlags, "delayimp.lib", "gdi32.lib", "urlmon.lib", "Comdlg32.lib", 213 "winmm.lib", "imm32.lib", "shell32.lib", "Uiautomationcore.lib", "dwmapi.lib", 214 "/DELAYLOAD:user32.dll", "/DELAYLOAD:urlmon.dll", "/DELAYLOAD:winmm.dll", "/DELAYLOAD:shell32.dll", 215 "/DELAYLOAD:Uiautomationcore.dll", "/DELAYLOAD:dwmapi.dll"].flatten() 216 WIN.glass.lib = "glass" 217 218 WIN.decora = [:] 219 WIN.decora.compiler = compiler 220 WIN.decora.ccFlags = [IS_64 ? [] : ["/arch:SSE"], "/fp:fast", ccFlags].flatten() 221 WIN.decora.linker = linker 222 WIN.decora.linkFlags = [linkFlags].flatten() 223 WIN.decora.lib = "decora_sse" 224 WIN.decora.rcCompiler = rcCompiler; 225 WIN.decora.rcSource = defaultRcSource 226 WIN.decora.rcFlags = ["/d", "JFX_FNAME=decora_sse.dll", "/d", "JFX_INTERNAL_NAME=decora", rcFlags].flatten() 227 228 WIN.prism = [:] 229 WIN.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"] 230 WIN.prism.nativeSource = file("modules/graphics/src/main/native-prism") 231 WIN.prism.compiler = compiler 232 WIN.prism.ccFlags = [ccFlags].flatten() 233 WIN.prism.linker = linker 234 WIN.prism.linkFlags = [linkFlags].flatten() 235 WIN.prism.lib = "prism_common" 236 WIN.prism.rcCompiler = rcCompiler; 237 WIN.prism.rcSource = defaultRcSource 238 WIN.prism.rcFlags = ["/d", "JFX_FNAME=prism_common.dll", "/d", "JFX_INTERNAL_NAME=prism", rcFlags].flatten() 239 240 WIN.prismSW = [:] 241 WIN.prismSW.javahInclude = ["com/sun/pisces/**/*"] 242 WIN.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw") 243 WIN.prismSW.compiler = compiler 244 WIN.prismSW.ccFlags = [ccFlags].flatten() 245 WIN.prismSW.linker = linker 246 WIN.prismSW.linkFlags = [linkFlags].flatten() 247 WIN.prismSW.lib = "prism_sw" 248 WIN.prismSW.rcCompiler = rcCompiler; 249 WIN.prismSW.rcSource = defaultRcSource 250 WIN.prismSW.rcFlags = ["/d", "JFX_FNAME=prism_sw.dll", "/d", "JFX_INTERNAL_NAME=prismSW", rcFlags].flatten() 251 252 WIN.prismD3D = [:] 253 WIN.prismD3D.javahInclude = ["com/sun/prism/d3d/**/*"] 254 WIN.prismD3D.nativeSource = [ 255 file("modules/graphics/src/main/native-prism-d3d"), 256 file("modules/graphics/src/main/native-prism-d3d/hlsl")] 257 WIN.prismD3D.compiler = compiler 258 WIN.prismD3D.ccFlags = [ccFlags, "/Ibuild/headers/PrismD3D"].flatten() 259 WIN.prismD3D.linker = linker 260 WIN.prismD3D.linkFlags = [linkFlags, "user32.lib"].flatten() 261 WIN.prismD3D.lib = "prism_d3d" 262 WIN.prismD3D.rcCompiler = rcCompiler; 263 WIN.prismD3D.rcSource = defaultRcSource 264 WIN.prismD3D.rcFlags = ["/d", "JFX_FNAME=prism_d3d.dll", "/d", "JFX_INTERNAL_NAME=prismD3D", rcFlags].flatten(); 265 266 WIN.launcher = [:] 267 WIN.launcher.compiler = compiler 268 WIN.launcher.ccFlags = ["/nologo", "/W3", "/MT", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32", 269 "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", 270 ccDebugFlags].flatten(); 271 WIN.launcher.linker = linker 272 WIN.launcher.linkFlags = ["/link", "/nologo", "/WX", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib"] 273 if (IS_DEBUG_NATIVE) WIN.launcher.linkFlags.add("/debug"); 274 275 WIN.launcherlibrary = [:] 276 WIN.launcherlibrary.compiler = compiler 277 WIN.launcherlibrary.ccFlags = ["/nologo", "/W3", 278 // "/WX", 279 "/EHsc", "/c", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32", 280 "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", 281 ccDebugFlags].flatten(); 282 WIN.launcherlibrary.linker = linker 283 WIN.launcherlibrary.linkFlags = ["/nologo", "/WX", "/DLL", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib", "ole32.lib"] 284 if (IS_DEBUG_NATIVE) WIN.launcherlibrary.linkFlags.add("/debug"); 285 286 WIN.iconLauncher = [:] 287 WIN.iconLauncher.compiler = compiler 288 WIN.iconLauncher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", 289 "/O2"] 290 WIN.iconLauncher.linker = linker 291 WIN.iconLauncher.linkFlags = ["/link", "/nologo", "/SUBSYSTEM:CONSOLE"]; 292 293 WIN.fxpackager = [:] 294 WIN.fxpackager.nativeSource = [ 295 file("modules/fxpackager/src/main/native/javapackager/win")] 296 WIN.fxpackager.compiler = compiler 297 WIN.fxpackager.ccFlags = ["/nologo", "/W3", "/EHsc", "/MT", "/GS", 298 "/DWIN32", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", 299 "/D_WIN32_WINDOWS=0X0500", "/D_WIN32_WINNT=0X0500", 300 "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", 301 "/O2", "-c"] 302 WIN.fxpackager.linker = linker 303 WIN.fxpackager.rcSource = file("modules/fxpackager/src/main/native/javapackager/win/javapackager.rc") 304 WIN.fxpackager.rcCompiler = rcCompiler 305 WIN.fxpackager.rcFlags = [ 306 "/l", "0x409", 307 "/d", "JFX_FNAME=javapackager.exe", 308 "/d", "JFX_INTERNAL_NAME=javapackager", 309 rcFlags].flatten(); 310 311 WIN.iio = [:] 312 WIN.iio.javahInclude = ["com/sun/javafx/iio/**/*"] 313 WIN.iio.nativeSource = [ 314 file("modules/graphics/src/main/native-iio"), 315 file("modules/graphics/src/main/native-iio/libjpeg7")] 316 WIN.iio.compiler = compiler 317 WIN.iio.ccFlags = [ccFlags].flatten() 318 WIN.iio.linker = linker 319 WIN.iio.linkFlags = [linkFlags].flatten() 320 WIN.iio.lib = "javafx_iio" 321 WIN.iio.rcCompiler = rcCompiler; 322 WIN.iio.rcSource = defaultRcSource 323 WIN.iio.rcFlags = ["/d", "JFX_FNAME=javafx_iio.dll", "/d", "JFX_INTERNAL_NAME=iio", rcFlags].flatten(); 324 325 WIN.prismES2 = [:] 326 WIN.prismES2.javahInclude = ["com/sun/prism/es2/**/*"] 327 WIN.prismES2.nativeSource = [ 328 file("modules/graphics/src/main/native-prism-es2"), 329 file("modules/graphics/src/main/native-prism-es2/GL"), 330 file("modules/graphics/src/main/native-prism-es2/windows") 331 ] 332 WIN.prismES2.compiler = compiler 333 WIN.prismES2.ccFlags = ["/Ob1", "/GF", "/Gy", "/GS", "/DWIN32", ccFlags].flatten() 334 WIN.prismES2.linker = linker 335 WIN.prismES2.linkFlags = [linkFlags, "/SUBSYSTEM:WINDOWS", "opengl32.lib", "gdi32.lib", "user32.lib", "kernel32.lib"].flatten() 336 WIN.prismES2.lib = "prism_es2" 337 WIN.prismES2.rcCompiler = rcCompiler; 338 WIN.prismES2.rcSource = defaultRcSource 339 WIN.prismES2.rcFlags = ["/d", "JFX_FNAME=prism_es2.dll", "/d", "JFX_INTERNAL_NAME=prismES2", rcFlags].flatten(); 340 341 def closedDir = file("$projectDir/../rt-closed") 342 WIN.font = [:] 343 WIN.font.javahInclude = [ 344 "com/sun/javafx/font/**/*", 345 "com/sun/javafx/text/**/*"] 346 WIN.font.nativeSource = [file("modules/graphics/src/main/native-font")] 347 WIN.font.compiler = compiler 348 WIN.font.ccFlags = ["/DJFXFONT_PLUS", "/D_WIN32_WINNT=0x0601", ccFlags].flatten() 349 WIN.font.ccFlags -= ["/DUNICODE", "/D_UNICODE"] 350 WIN.font.linker = linker 351 WIN.font.linkFlags = [linkFlags, "advapi32.lib", "gdi32.lib", "user32.lib", "dwrite.lib", "d2d1.lib", "windowscodecs.lib", "ole32.lib"].flatten() 352 WIN.font.lib = "javafx_font" 353 WIN.font.rcCompiler = rcCompiler; 354 WIN.font.rcSource = defaultRcSource 355 WIN.font.rcFlags = ["/d", "JFX_FNAME=javafx_font.dll", "/d", "JFX_INTERNAL_NAME=font", rcFlags].flatten(); 356 357 WIN.fontT2K = [:] 358 WIN.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"] 359 WIN.fontT2K.nativeSource = [ 360 file("$closedDir/javafx-font-t2k-native/src"), 361 file("$closedDir/javafx-font-t2k-native/src/layout")] 362 WIN.fontT2K.compiler = compiler 363 WIN.fontT2K.ccFlags = ["/DJFXFONT_PLUS", "/DLE_STANDALONE", ccFlags].flatten() 364 WIN.fontT2K.linker = linker 365 WIN.fontT2K.linkFlags = [linkFlags, "advapi32.lib", "gdi32.lib", "user32.lib"].flatten() 366 WIN.fontT2K.lib = "javafx_font_t2k" 367 WIN.fontT2K.rcCompiler = rcCompiler; 368 WIN.fontT2K.rcSource = defaultRcSource 369 WIN.fontT2K.rcFlags = ["/d", "JFX_FNAME=javafx_font_t2k.dll", "/d", "JFX_INTERNAL_NAME=fontT2K", rcFlags].flatten(); 370 371 WIN.media = [:] 372 WIN.media.rcCompiler = rcCompiler 373 WIN.media.rcSource = defaultRcSource 374 WIN.media.glibRcFile = "glib-lite.res" 375 WIN.media.gstreamerRcFile = "gstreamer-lite.res" 376 WIN.media.fxpluginsRcFile = "fxplugins.res" 377 WIN.media.jfxmediaRcFile = "jfxmedia.res" 378 WIN.media.glibRcFlags = ["/d", "JFX_FNAME=glib-lite.dll", "/d", "JFX_INTERNAL_NAME=glib", rcFlags].flatten() 379 WIN.media.gstreamerRcFlags = ["/d", "JFX_FNAME=gstreamer-lite.dll", "/d", "JFX_INTERNAL_NAME=gstreamer", rcFlags].flatten() 380 WIN.media.fxpluginsRcFlags = ["/d", "JFX_FNAME=fxplugins.dll", "/d", "JFX_INTERNAL_NAME=fxplugins", rcFlags].flatten() 381 WIN.media.jfxmediaRcFlags = ["/d", "JFX_FNAME=jfxmedia.dll", "/d", "JFX_INTERNAL_NAME=jfxmedia", rcFlags].flatten() 382 383 WIN.webkit = [:] 384 WIN.webkit.rcCompiler = rcCompiler 385 WIN.webkit.rcSource = defaultRcSource 386 WIN.webkit.rcFlags = ["/d", "JFX_FNAME=jfxwebkit.dll", "/d", "JFX_INTERNAL_NAME=webkit", rcFlags].flatten();