1 /*
   2  * Copyright (c) 2013, 2014, 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 10.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, "70")
  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 if (!file(RC).exists()) throw new GradleException("FAIL: cannot find RC: " + RC)
 153 if (!file(FXC).exists()) throw new GradleException("FAIL: cannot find FXC: " + FXC)
 154 
 155 def rcFlags = [
 156     "/d", "\"JFX_COMPANY=${COMPANY_NAME}\"",
 157     "/d", "\"JFX_COMPONENT=${PRODUCT_NAME} ${PLATFORM_NAME} binary\"",
 158     "/d", "\"JFX_NAME=${PRODUCT_NAME} ${PLATFORM_NAME} ${jfxReleaseMajorVersion}\"",
 159     "/d", "\"JFX_VER=${jfxReleaseMajorVersion}.${jfxReleaseMinorVersion}.${jfxReleaseMicroVersion}.${PROMOTED_BUILD_NUMBER}\"",
 160     "/d", "\"JFX_BUILD_ID=${RAW_VERSION}-${RELEASE_MILESTONE}-b${PROMOTED_BUILD_NUMBER}\"",
 161     "/d", "\"JFX_COPYRIGHT=Copyright \u00A9 ${Calendar.getInstance().get(Calendar.YEAR)}\"",
 162     "/d", "\"JFX_FVER=${jfxReleaseMajorVersion},${jfxReleaseMinorVersion},${jfxReleaseMicroVersion},${PROMOTED_BUILD_NUMBER}\"",
 163     "/d", "\"JFX_FTYPE=0x2L\"",
 164     "/nologo"
 165 ];
 166 
 167 def defaultRcSource = file("modules/graphics/src/main/resources/version.rc");
 168 
 169 WIN.glass = [:]
 170 WIN.glass.javahInclude = [
 171     "com/sun/glass/events/**",
 172     "com/sun/glass/ui/*",
 173     "com/sun/glass/ui/win/*"]
 174 WIN.glass.nativeSource = file("modules/graphics/src/main/native-glass/win")
 175 WIN.glass.compiler = compiler
 176 WIN.glass.rcCompiler = rcCompiler;
 177 WIN.glass.rcSource = file("modules/graphics/src/main/native-glass/win/GlassResources.rc");
 178 WIN.glass.rcFlags = [
 179     "/I", file("modules/graphics/src/main/resources"),
 180     "/d", "JFX_FNAME=glass.dll",
 181     "/d", "JFX_INTERNAL_NAME=glass",
 182     rcFlags].flatten();
 183 WIN.glass.ccFlags = [ccFlags, "/WX"].flatten()
 184 if (WINDOWS_VS_VER != "100") WIN.glass.ccFlags -= ["/WX"]
 185 WIN.glass.linker = linker
 186 WIN.glass.linkFlags = [linkFlags, "delayimp.lib", "gdi32.lib", "urlmon.lib", "Comdlg32.lib",
 187         "winmm.lib", "imm32.lib", "shell32.lib", "Uiautomationcore.lib", "dwmapi.lib",
 188         "/DELAYLOAD:user32.dll", "/DELAYLOAD:urlmon.dll", "/DELAYLOAD:winmm.dll", "/DELAYLOAD:shell32.dll",
 189         "/DELAYLOAD:Uiautomationcore.dll", "/DELAYLOAD:dwmapi.dll"].flatten()
 190 WIN.glass.lib = "glass"
 191 
 192 WIN.decora = [:]
 193 WIN.decora.compiler = compiler
 194 WIN.decora.ccFlags = [IS_64 ? [] : ["/arch:SSE"], "/fp:fast", ccFlags].flatten()
 195 WIN.decora.linker = linker
 196 WIN.decora.linkFlags = [linkFlags].flatten()
 197 WIN.decora.lib = "decora_sse"
 198 WIN.decora.rcCompiler = rcCompiler;
 199 WIN.decora.rcSource = defaultRcSource
 200 WIN.decora.rcFlags = ["/d", "JFX_FNAME=decora_sse.dll", "/d", "JFX_INTERNAL_NAME=decora", rcFlags].flatten()
 201 
 202 WIN.prism = [:]
 203 WIN.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
 204 WIN.prism.nativeSource = file("modules/graphics/src/main/native-prism")
 205 WIN.prism.compiler = compiler
 206 WIN.prism.ccFlags = [ccFlags].flatten()
 207 WIN.prism.linker = linker
 208 WIN.prism.linkFlags = [linkFlags].flatten()
 209 WIN.prism.lib = "prism_common"
 210 WIN.prism.rcCompiler = rcCompiler;
 211 WIN.prism.rcSource = defaultRcSource
 212 WIN.prism.rcFlags = ["/d", "JFX_FNAME=prism_common.dll", "/d", "JFX_INTERNAL_NAME=prism", rcFlags].flatten()
 213 
 214 WIN.prismSW = [:]
 215 WIN.prismSW.javahInclude = ["com/sun/pisces/**/*"]
 216 WIN.prismSW.nativeSource = file("modules/graphics/src/main/native-prism-sw")
 217 WIN.prismSW.compiler = compiler
 218 WIN.prismSW.ccFlags = [ccFlags].flatten()
 219 WIN.prismSW.linker = linker
 220 WIN.prismSW.linkFlags = [linkFlags].flatten()
 221 WIN.prismSW.lib = "prism_sw"
 222 WIN.prismSW.rcCompiler = rcCompiler;
 223 WIN.prismSW.rcSource = defaultRcSource
 224 WIN.prismSW.rcFlags = ["/d", "JFX_FNAME=prism_sw.dll", "/d", "JFX_INTERNAL_NAME=prismSW", rcFlags].flatten()
 225 
 226 WIN.prismD3D = [:]
 227 WIN.prismD3D.javahInclude = ["com/sun/prism/d3d/**/*"]
 228 WIN.prismD3D.nativeSource = [
 229     file("modules/graphics/src/main/native-prism-d3d"),
 230     file("modules/graphics/src/main/native-prism-d3d/hlsl")]
 231 WIN.prismD3D.compiler = compiler
 232 WIN.prismD3D.ccFlags = [ccFlags, "/Ibuild/headers/PrismD3D"].flatten()
 233 WIN.prismD3D.linker = linker
 234 WIN.prismD3D.linkFlags = [linkFlags, "user32.lib"].flatten()
 235 WIN.prismD3D.lib = "prism_d3d"
 236 WIN.prismD3D.rcCompiler = rcCompiler;
 237 WIN.prismD3D.rcSource = defaultRcSource
 238 WIN.prismD3D.rcFlags = ["/d", "JFX_FNAME=prism_d3d.dll", "/d", "JFX_INTERNAL_NAME=prismD3D", rcFlags].flatten();
 239 
 240 WIN.launcher = [:]
 241 WIN.launcher.compiler = compiler
 242 WIN.launcher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 243         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 244         ccDebugFlags].flatten();
 245 WIN.launcher.linker = linker
 246 WIN.launcher.linkFlags = ["/link", "/nologo", "/WX", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib"]
 247 if (IS_DEBUG_NATIVE) WIN.launcher.linkFlags.add("/debug");
 248 
 249 WIN.launcherlibrary = [:]
 250 WIN.launcherlibrary.compiler = compiler
 251 WIN.launcherlibrary.ccFlags = ["/nologo", "/W3",
 252         // "/WX",
 253         "/EHsc", "/c", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 254         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 255         ccDebugFlags].flatten();
 256 WIN.launcherlibrary.linker = linker
 257 WIN.launcherlibrary.linkFlags = ["/nologo", "/WX", "/DLL", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib", "ole32.lib"]
 258 if (IS_DEBUG_NATIVE) WIN.launcherlibrary.linkFlags.add("/debug");
 259 
 260 WIN.iconLauncher = [:]
 261 WIN.iconLauncher.compiler = compiler
 262 WIN.iconLauncher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE",
 263         "/O2"]
 264 WIN.iconLauncher.linker = linker
 265 WIN.iconLauncher.linkFlags = ["/link", "/nologo", "/SUBSYSTEM:CONSOLE"];
 266 
 267 WIN.fxpackager = [:]
 268 WIN.fxpackager.nativeSource = [
 269     file("modules/fxpackager/src/main/native/javapackager/win")]
 270 WIN.fxpackager.compiler = compiler
 271 WIN.fxpackager.ccFlags = ["/nologo", "/W3", "/EHsc", "/MT", "/GS",
 272                     "/DWIN32", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN",
 273                     "/D_WIN32_WINDOWS=0X0500", "/D_WIN32_WINNT=0X0500",
 274                     "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 275                     "/O2", "-c"]
 276 WIN.fxpackager.linker = linker
 277 
 278 WIN.iio = [:]
 279 WIN.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 280 WIN.iio.nativeSource = [
 281     file("modules/graphics/src/main/native-iio"),
 282     file("modules/graphics/src/main/native-iio/libjpeg7")]
 283 WIN.iio.compiler = compiler
 284 WIN.iio.ccFlags = [ccFlags].flatten()
 285 WIN.iio.linker = linker
 286 WIN.iio.linkFlags = [linkFlags].flatten()
 287 WIN.iio.lib = "javafx_iio"
 288 WIN.iio.rcCompiler = rcCompiler;
 289 WIN.iio.rcSource = defaultRcSource
 290 WIN.iio.rcFlags = ["/d", "JFX_FNAME=javafx_iio.dll", "/d", "JFX_INTERNAL_NAME=iio", rcFlags].flatten();
 291 
 292 WIN.prismES2 = [:]
 293 WIN.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 294 WIN.prismES2.nativeSource = [
 295     file("modules/graphics/src/main/native-prism-es2"),
 296     file("modules/graphics/src/main/native-prism-es2/GL"),
 297     file("modules/graphics/src/main/native-prism-es2/windows")
 298 ]
 299 WIN.prismES2.compiler = compiler
 300 WIN.prismES2.ccFlags = ["/Ob1", "/GF", "/Gy", "/GS", "/DWIN32", ccFlags].flatten()
 301 WIN.prismES2.linker = linker
 302 WIN.prismES2.linkFlags = [linkFlags, "/SUBSYSTEM:WINDOWS", "opengl32.lib", "gdi32.lib", "user32.lib", "kernel32.lib"].flatten()
 303 WIN.prismES2.lib = "prism_es2"
 304 WIN.prismES2.rcCompiler = rcCompiler;
 305 WIN.prismES2.rcSource = defaultRcSource
 306 WIN.prismES2.rcFlags = ["/d", "JFX_FNAME=prism_es2.dll", "/d", "JFX_INTERNAL_NAME=prismES2", rcFlags].flatten();
 307 
 308 def closedDir = file("$projectDir/../rt-closed")
 309 WIN.font = [:]
 310 WIN.font.javahInclude = [
 311         "com/sun/javafx/font/**/*",
 312         "com/sun/javafx/text/**/*"]
 313 WIN.font.nativeSource = [file("modules/graphics/src/main/native-font")]
 314 WIN.font.compiler = compiler
 315 WIN.font.ccFlags = ["/DJFXFONT_PLUS", ccFlags].flatten()
 316 WIN.font.ccFlags -= ["/DUNICODE", "/D_UNICODE"]
 317 WIN.font.linker = linker
 318 WIN.font.linkFlags = [linkFlags, "advapi32.lib", "gdi32.lib", "user32.lib", "dwrite.lib", "d2d1.lib", "windowscodecs.lib", "ole32.lib"].flatten()
 319 WIN.font.lib = "javafx_font"
 320 WIN.font.rcCompiler = rcCompiler;
 321 WIN.font.rcSource = defaultRcSource
 322 WIN.font.rcFlags = ["/d", "JFX_FNAME=javafx_font.dll", "/d", "JFX_INTERNAL_NAME=font", rcFlags].flatten();
 323 
 324 WIN.fontT2K = [:]
 325 WIN.fontT2K.javahInclude = ["com/sun/javafx/font/t2k/**/*"]
 326 WIN.fontT2K.nativeSource = [
 327         file("$closedDir/javafx-font-t2k-native/src"),
 328         file("$closedDir/javafx-font-t2k-native/src/layout")]
 329 WIN.fontT2K.compiler = compiler
 330 WIN.fontT2K.ccFlags = ["/DJFXFONT_PLUS", "/DLE_STANDALONE", ccFlags].flatten()
 331 WIN.fontT2K.linker = linker
 332 WIN.fontT2K.linkFlags = [linkFlags, "advapi32.lib", "gdi32.lib", "user32.lib"].flatten()
 333 WIN.fontT2K.lib = "javafx_font_t2k"
 334 WIN.fontT2K.rcCompiler = rcCompiler;
 335 WIN.fontT2K.rcSource = defaultRcSource
 336 WIN.fontT2K.rcFlags = ["/d", "JFX_FNAME=javafx_font_t2k.dll", "/d", "JFX_INTERNAL_NAME=fontT2K", rcFlags].flatten();
 337 
 338 WIN.media = [:]
 339 WIN.media.rcCompiler = rcCompiler
 340 WIN.media.rcSource = defaultRcSource
 341 WIN.media.glibRcFile = "glib-lite.res"
 342 WIN.media.gstreamerRcFile = "gstreamer-lite.res"
 343 WIN.media.fxpluginsRcFile = "fxplugins.res"
 344 WIN.media.jfxmediaRcFile = "jfxmedia.res"
 345 WIN.media.glibRcFlags = ["/d", "JFX_FNAME=glib-lite.dll", "/d", "JFX_INTERNAL_NAME=glib", rcFlags].flatten()
 346 WIN.media.gstreamerRcFlags = ["/d", "JFX_FNAME=gstreamer-lite.dll", "/d", "JFX_INTERNAL_NAME=gstreamer", rcFlags].flatten()
 347 WIN.media.fxpluginsRcFlags = ["/d", "JFX_FNAME=fxplugins.dll", "/d", "JFX_INTERNAL_NAME=fxplugins", rcFlags].flatten()
 348 WIN.media.jfxmediaRcFlags = ["/d", "JFX_FNAME=jfxmedia.dll", "/d", "JFX_INTERNAL_NAME=jfxmedia", rcFlags].flatten()
 349 
 350 WIN.webkit = [:]
 351 WIN.webkit.rcCompiler = rcCompiler
 352 WIN.webkit.rcSource = defaultRcSource
 353 WIN.webkit.rcFlags = ["/d", "JFX_FNAME=jfxwebkit.dll", "/d", "JFX_INTERNAL_NAME=webkit", rcFlags].flatten();