buildSrc/win.gradle

Print this page
rev 8319 : RT-39262: Remove /arch:SSE from 64-bit Windows build


 154 WIN.glass.nativeSource = file("modules/graphics/src/main/native-glass/win")
 155 WIN.glass.compiler = compiler
 156 WIN.glass.rcCompiler = rcCompiler;
 157 WIN.glass.rcSource = file("modules/graphics/src/main/native-glass/win/GlassResources.rc");
 158 WIN.glass.rcFlags = [
 159     "/I", file("modules/graphics/src/main/resources"),
 160     "/d", "JFX_FNAME=glass.dll",
 161     "/d", "JFX_INTERNAL_NAME=glass",
 162     rcFlags].flatten();
 163 WIN.glass.ccFlags = [ccFlags, "/WX"].flatten()
 164 if (WINDOWS_VS_VER != "100") WIN.glass.ccFlags -= ["/WX"]
 165 WIN.glass.linker = linker
 166 WIN.glass.linkFlags = [linkFlags, "delayimp.lib", "gdi32.lib", "urlmon.lib", "Comdlg32.lib",
 167         "winmm.lib", "imm32.lib", "shell32.lib", "Uiautomationcore.lib", "dwmapi.lib",
 168         "/DELAYLOAD:user32.dll", "/DELAYLOAD:urlmon.dll", "/DELAYLOAD:winmm.dll", "/DELAYLOAD:shell32.dll",
 169         "/DELAYLOAD:Uiautomationcore.dll", "/DELAYLOAD:dwmapi.dll"].flatten()
 170 WIN.glass.lib = "glass"
 171 
 172 WIN.decora = [:]
 173 WIN.decora.compiler = compiler
 174 WIN.decora.ccFlags = ["/arch:SSE", "/fp:fast", ccFlags].flatten()
 175 WIN.decora.linker = linker
 176 WIN.decora.linkFlags = [linkFlags].flatten()
 177 WIN.decora.lib = "decora_sse"
 178 WIN.decora.rcCompiler = rcCompiler;
 179 WIN.decora.rcSource = defaultRcSource
 180 WIN.decora.rcFlags = ["/d", "JFX_FNAME=decora_sse.dll", "/d", "JFX_INTERNAL_NAME=decora", rcFlags].flatten()
 181 
 182 WIN.prism = [:]
 183 WIN.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
 184 WIN.prism.nativeSource = file("modules/graphics/src/main/native-prism")
 185 WIN.prism.compiler = compiler
 186 WIN.prism.ccFlags = [ccFlags].flatten()
 187 WIN.prism.linker = linker
 188 WIN.prism.linkFlags = [linkFlags].flatten()
 189 WIN.prism.lib = "prism_common"
 190 WIN.prism.rcCompiler = rcCompiler;
 191 WIN.prism.rcSource = defaultRcSource
 192 WIN.prism.rcFlags = ["/d", "JFX_FNAME=prism_common.dll", "/d", "JFX_INTERNAL_NAME=prism", rcFlags].flatten()
 193 
 194 WIN.prismSW = [:]


 204 WIN.prismSW.rcFlags = ["/d", "JFX_FNAME=prism_sw.dll", "/d", "JFX_INTERNAL_NAME=prismSW", rcFlags].flatten()
 205 
 206 WIN.prismD3D = [:]
 207 WIN.prismD3D.javahInclude = ["com/sun/prism/d3d/**/*"]
 208 WIN.prismD3D.nativeSource = [
 209     file("modules/graphics/src/main/native-prism-d3d"),
 210     file("modules/graphics/src/main/native-prism-d3d/hlsl")]
 211 WIN.prismD3D.compiler = compiler
 212 WIN.prismD3D.ccFlags = [ccFlags, "/Ibuild/headers/PrismD3D"].flatten()
 213 WIN.prismD3D.linker = linker
 214 WIN.prismD3D.linkFlags = [linkFlags, "user32.lib"].flatten()
 215 WIN.prismD3D.lib = "prism_d3d"
 216 WIN.prismD3D.rcCompiler = rcCompiler;
 217 WIN.prismD3D.rcSource = defaultRcSource
 218 WIN.prismD3D.rcFlags = ["/d", "JFX_FNAME=prism_d3d.dll", "/d", "JFX_INTERNAL_NAME=prismD3D", rcFlags].flatten();
 219 
 220 WIN.launcher = [:]
 221 WIN.launcher.compiler = compiler
 222 WIN.launcher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 223         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 224         "/arch:SSE", "/fp:fast",
 225         IS_DEBUG_NATIVE ? ["/MDd", "/Od", "/Zi", "/FS", "/DDEBUG"] : ["/O2", "/MD", "/DNDEBUG"]].flatten();
 226 WIN.launcher.linker = linker
 227 WIN.launcher.linkFlags = ["/link", "/nologo", "/WX", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib"]
 228 if (IS_DEBUG_NATIVE) WIN.launcher.linkFlags.add("/debug");
 229 
 230 WIN.launcherlibrary = [:]
 231 WIN.launcherlibrary.compiler = compiler
 232 WIN.launcherlibrary.ccFlags = ["/nologo", "/W3",
 233         // "/WX",
 234         "/EHsc", "/c", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 235         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 236         "/arch:SSE", "/fp:fast",
 237         IS_DEBUG_NATIVE ? ["/MDd", "/Od", "/Zi", "/FS", "/DDEBUG"] : ["/O2", "/MD", "/DNDEBUG"]].flatten();
 238 WIN.launcherlibrary.linker = linker
 239 WIN.launcherlibrary.linkFlags = ["/nologo", "/WX", "/DLL", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib", "ole32.lib"]
 240 if (IS_DEBUG_NATIVE) WIN.launcherlibrary.linkFlags.add("/debug");
 241 
 242 WIN.iconLauncher = [:]
 243 WIN.iconLauncher.compiler = compiler
 244 WIN.iconLauncher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE",
 245         "/arch:SSE", "/fp:fast", "/O2"]
 246 WIN.iconLauncher.linker = linker
 247 WIN.iconLauncher.linkFlags = ["/link", "/nologo", "/SUBSYSTEM:CONSOLE"];
 248 
 249 WIN.fxpackager = [:]
 250 WIN.fxpackager.nativeSource = [
 251     file("modules/fxpackager/src/main/native/javapackager/win")]
 252 WIN.fxpackager.compiler = compiler
 253 WIN.fxpackager.ccFlags = ["/nologo", "/W3", "/EHsc", "/MT", "/GS",
 254                     "/DWIN32", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN",
 255                     "/D_WIN32_WINDOWS=0X0500", "/D_WIN32_WINNT=0X0500",
 256                     "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32", "/arch:SSE", "/fp:fast",
 257                     "/O2", "-c"]

 258 WIN.fxpackager.linker = linker
 259 
 260 WIN.iio = [:]
 261 WIN.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 262 WIN.iio.nativeSource = [
 263     file("modules/graphics/src/main/native-iio"),
 264     file("modules/graphics/src/main/native-iio/libjpeg7")]
 265 WIN.iio.compiler = compiler
 266 WIN.iio.ccFlags = [ccFlags].flatten()
 267 WIN.iio.linker = linker
 268 WIN.iio.linkFlags = [linkFlags].flatten()
 269 WIN.iio.lib = "javafx_iio"
 270 WIN.iio.rcCompiler = rcCompiler;
 271 WIN.iio.rcSource = defaultRcSource
 272 WIN.iio.rcFlags = ["/d", "JFX_FNAME=javafx_iio.dll", "/d", "JFX_INTERNAL_NAME=iio", rcFlags].flatten();
 273 
 274 WIN.prismES2 = [:]
 275 WIN.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 276 WIN.prismES2.nativeSource = [
 277     file("modules/graphics/src/main/native-prism-es2"),




 154 WIN.glass.nativeSource = file("modules/graphics/src/main/native-glass/win")
 155 WIN.glass.compiler = compiler
 156 WIN.glass.rcCompiler = rcCompiler;
 157 WIN.glass.rcSource = file("modules/graphics/src/main/native-glass/win/GlassResources.rc");
 158 WIN.glass.rcFlags = [
 159     "/I", file("modules/graphics/src/main/resources"),
 160     "/d", "JFX_FNAME=glass.dll",
 161     "/d", "JFX_INTERNAL_NAME=glass",
 162     rcFlags].flatten();
 163 WIN.glass.ccFlags = [ccFlags, "/WX"].flatten()
 164 if (WINDOWS_VS_VER != "100") WIN.glass.ccFlags -= ["/WX"]
 165 WIN.glass.linker = linker
 166 WIN.glass.linkFlags = [linkFlags, "delayimp.lib", "gdi32.lib", "urlmon.lib", "Comdlg32.lib",
 167         "winmm.lib", "imm32.lib", "shell32.lib", "Uiautomationcore.lib", "dwmapi.lib",
 168         "/DELAYLOAD:user32.dll", "/DELAYLOAD:urlmon.dll", "/DELAYLOAD:winmm.dll", "/DELAYLOAD:shell32.dll",
 169         "/DELAYLOAD:Uiautomationcore.dll", "/DELAYLOAD:dwmapi.dll"].flatten()
 170 WIN.glass.lib = "glass"
 171 
 172 WIN.decora = [:]
 173 WIN.decora.compiler = compiler
 174 WIN.decora.ccFlags = [ IS_64 ? [] : ["/arch:SSE"], "/fp:fast", ccFlags].flatten()
 175 WIN.decora.linker = linker
 176 WIN.decora.linkFlags = [linkFlags].flatten()
 177 WIN.decora.lib = "decora_sse"
 178 WIN.decora.rcCompiler = rcCompiler;
 179 WIN.decora.rcSource = defaultRcSource
 180 WIN.decora.rcFlags = ["/d", "JFX_FNAME=decora_sse.dll", "/d", "JFX_INTERNAL_NAME=decora", rcFlags].flatten()
 181 
 182 WIN.prism = [:]
 183 WIN.prism.javahInclude = ["com/sun/prism/impl/**/*", "com/sun/prism/PresentableState*"]
 184 WIN.prism.nativeSource = file("modules/graphics/src/main/native-prism")
 185 WIN.prism.compiler = compiler
 186 WIN.prism.ccFlags = [ccFlags].flatten()
 187 WIN.prism.linker = linker
 188 WIN.prism.linkFlags = [linkFlags].flatten()
 189 WIN.prism.lib = "prism_common"
 190 WIN.prism.rcCompiler = rcCompiler;
 191 WIN.prism.rcSource = defaultRcSource
 192 WIN.prism.rcFlags = ["/d", "JFX_FNAME=prism_common.dll", "/d", "JFX_INTERNAL_NAME=prism", rcFlags].flatten()
 193 
 194 WIN.prismSW = [:]


 204 WIN.prismSW.rcFlags = ["/d", "JFX_FNAME=prism_sw.dll", "/d", "JFX_INTERNAL_NAME=prismSW", rcFlags].flatten()
 205 
 206 WIN.prismD3D = [:]
 207 WIN.prismD3D.javahInclude = ["com/sun/prism/d3d/**/*"]
 208 WIN.prismD3D.nativeSource = [
 209     file("modules/graphics/src/main/native-prism-d3d"),
 210     file("modules/graphics/src/main/native-prism-d3d/hlsl")]
 211 WIN.prismD3D.compiler = compiler
 212 WIN.prismD3D.ccFlags = [ccFlags, "/Ibuild/headers/PrismD3D"].flatten()
 213 WIN.prismD3D.linker = linker
 214 WIN.prismD3D.linkFlags = [linkFlags, "user32.lib"].flatten()
 215 WIN.prismD3D.lib = "prism_d3d"
 216 WIN.prismD3D.rcCompiler = rcCompiler;
 217 WIN.prismD3D.rcSource = defaultRcSource
 218 WIN.prismD3D.rcFlags = ["/d", "JFX_FNAME=prism_d3d.dll", "/d", "JFX_INTERNAL_NAME=prismD3D", rcFlags].flatten();
 219 
 220 WIN.launcher = [:]
 221 WIN.launcher.compiler = compiler
 222 WIN.launcher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 223         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 224         IS_64 ? [] : ["/arch:SSE"], "/fp:fast",
 225         IS_DEBUG_NATIVE ? ["/MDd", "/Od", "/Zi", "/FS", "/DDEBUG"] : ["/O2", "/MD", "/DNDEBUG"]].flatten();
 226 WIN.launcher.linker = linker
 227 WIN.launcher.linkFlags = ["/link", "/nologo", "/WX", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib"]
 228 if (IS_DEBUG_NATIVE) WIN.launcher.linkFlags.add("/debug");
 229 
 230 WIN.launcherlibrary = [:]
 231 WIN.launcherlibrary.compiler = compiler
 232 WIN.launcherlibrary.ccFlags = ["/nologo", "/W3",
 233         // "/WX",
 234         "/EHsc", "/c", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE", "/DWIN32",
 235         "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN", "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 236         IS_64 ? [] : ["/arch:SSE"], "/fp:fast",
 237         IS_DEBUG_NATIVE ? ["/MDd", "/Od", "/Zi", "/FS", "/DDEBUG"] : ["/O2", "/MD", "/DNDEBUG"]].flatten();
 238 WIN.launcherlibrary.linker = linker
 239 WIN.launcherlibrary.linkFlags = ["/nologo", "/WX", "/DLL", "/SUBSYSTEM:WINDOWS", "user32.lib", "shell32.lib", "advapi32.lib", "ole32.lib"]
 240 if (IS_DEBUG_NATIVE) WIN.launcherlibrary.linkFlags.add("/debug");
 241 
 242 WIN.iconLauncher = [:]
 243 WIN.iconLauncher.compiler = compiler
 244 WIN.iconLauncher.ccFlags = ["/nologo", "/W3", "/EHsc", "/D_WINDOWS", "/DUNICODE", "/D_UNICODE",
 245         IS_64 ? [] : ["/arch:SSE"], "/fp:fast", "/O2"].flatten();
 246 WIN.iconLauncher.linker = linker
 247 WIN.iconLauncher.linkFlags = ["/link", "/nologo", "/SUBSYSTEM:CONSOLE"];
 248 
 249 WIN.fxpackager = [:]
 250 WIN.fxpackager.nativeSource = [
 251     file("modules/fxpackager/src/main/native/javapackager/win")]
 252 WIN.fxpackager.compiler = compiler
 253 WIN.fxpackager.ccFlags = ["/nologo", "/W3", "/EHsc", "/MT", "/GS",
 254                     "/DWIN32", "/D_LITTLE_ENDIAN", "/DWIN32_LEAN_AND_MEAN",
 255                     "/D_WIN32_WINDOWS=0X0500", "/D_WIN32_WINNT=0X0500",
 256                     "/I$JDK_HOME/include", "/I$JDK_HOME/include/win32",
 257                     IS_64 ? [] : ["/arch:SSE"], "/fp:fast",
 258                     "/O2", "-c"].flatten();
 259 WIN.fxpackager.linker = linker
 260 
 261 WIN.iio = [:]
 262 WIN.iio.javahInclude = ["com/sun/javafx/iio/**/*"]
 263 WIN.iio.nativeSource = [
 264     file("modules/graphics/src/main/native-iio"),
 265     file("modules/graphics/src/main/native-iio/libjpeg7")]
 266 WIN.iio.compiler = compiler
 267 WIN.iio.ccFlags = [ccFlags].flatten()
 268 WIN.iio.linker = linker
 269 WIN.iio.linkFlags = [linkFlags].flatten()
 270 WIN.iio.lib = "javafx_iio"
 271 WIN.iio.rcCompiler = rcCompiler;
 272 WIN.iio.rcSource = defaultRcSource
 273 WIN.iio.rcFlags = ["/d", "JFX_FNAME=javafx_iio.dll", "/d", "JFX_INTERNAL_NAME=iio", rcFlags].flatten();
 274 
 275 WIN.prismES2 = [:]
 276 WIN.prismES2.javahInclude = ["com/sun/prism/es2/**/*"]
 277 WIN.prismES2.nativeSource = [
 278     file("modules/graphics/src/main/native-prism-es2"),