Unverified Commit c2f2093f authored by Oleksandr Karpovich's avatar Oleksandr Karpovich Committed by GitHub

add dxgi.lib only for DEBUG build (#577)

From skia sources:
DXGIGetDebugInterface1 is defined in dxgi.lib.
But this API is tagged as a development-only capability which implies that linking to this function will cause the application to fail Windows store certification
Co-authored-by: 's avatarOleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
parent 1bcc0192
...@@ -933,18 +933,20 @@ fun createLinkJvmBindings( ...@@ -933,18 +933,20 @@ fun createLinkJvmBindings(
OS.Windows -> { OS.Windows -> {
linker.set(windowsSdkPaths.linker.absolutePath) linker.set(windowsSdkPaths.linker.absolutePath)
libDirs.set(windowsSdkPaths.libDirs) libDirs.set(windowsSdkPaths.libDirs)
osFlags = arrayOf( osFlags = mutableListOf<String>().apply {
*buildType.msvcLinkerFlags, addAll(buildType.msvcLinkerFlags)
"/NOLOGO", addAll(arrayOf(
"/DLL", "/NOLOGO",
"Advapi32.lib", "/DLL",
"gdi32.lib", "Advapi32.lib",
"Dwmapi.lib", "gdi32.lib",
"opengl32.lib", "Dwmapi.lib",
"shcore.lib", "opengl32.lib",
"user32.lib", "shcore.lib",
"dxgi.lib", "user32.lib",
) ))
if (buildType == SkiaBuildType.DEBUG) add("dxgi.lib")
}.toTypedArray()
} }
OS.Android -> { OS.Android -> {
osFlags = arrayOf( osFlags = arrayOf(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment