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(
OS.Windows -> {
linker.set(windowsSdkPaths.linker.absolutePath)
libDirs.set(windowsSdkPaths.libDirs)
osFlags = arrayOf(
*buildType.msvcLinkerFlags,
"/NOLOGO",
"/DLL",
"Advapi32.lib",
"gdi32.lib",
"Dwmapi.lib",
"opengl32.lib",
"shcore.lib",
"user32.lib",
"dxgi.lib",
)
osFlags = mutableListOf<String>().apply {
addAll(buildType.msvcLinkerFlags)
addAll(arrayOf(
"/NOLOGO",
"/DLL",
"Advapi32.lib",
"gdi32.lib",
"Dwmapi.lib",
"opengl32.lib",
"shcore.lib",
"user32.lib",
))
if (buildType == SkiaBuildType.DEBUG) add("dxgi.lib")
}.toTypedArray()
}
OS.Android -> {
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