|
|
|
|
|
|
"-DNOMINMAX", |
|
|
|
"-DSK_GAMMA_APPLY_TO_A8", |
|
|
|
"-DSK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1", |
|
|
|
// TODO: fix this by update txt_lib build setting, reference: https://github.com/microsoft/vcpkg/issues/12123
|
|
|
|
// "-DGR_TEST_UTILS=1",
|
|
|
|
"-DSKIA_IMPLEMENTATION=1", |
|
|
|
"-DSK_GL", |
|
|
|
|
|
|
"-fvisibility-inlines-hidden", |
|
|
|
})); |
|
|
|
|
|
|
|
var basePath = skiaRoot + "/out/Debug"; |
|
|
|
var windowsSkiaBuild = skiaRoot + "/out/Debug"; |
|
|
|
|
|
|
|
np.Libraries.Add(IsWindows, c => |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
new StaticLibrary(basePath+"/libEGL.dll.lib"), |
|
|
|
new StaticLibrary(basePath+"/libGLESv2.dll.lib"), |
|
|
|
new StaticLibrary(windowsSkiaBuild+"/libEGL.dll.lib"), |
|
|
|
new StaticLibrary(windowsSkiaBuild+"/libGLESv2.dll.lib"), |
|
|
|
|
|
|
|
new SystemLibrary("Opengl32.lib"), |
|
|
|
new SystemLibrary("User32.lib"), |
|
|
|
|
|
|
|
|
|
|
np.SupportFiles.Add(c => IsWindows(c), new [] { |
|
|
|
new DeployableFile(basePath + "/libEGL.dll"), |
|
|
|
new DeployableFile(basePath + "/libEGL.dll.pdb"), |
|
|
|
new DeployableFile(basePath + "/libGLESv2.dll"), |
|
|
|
new DeployableFile(basePath + "/libGLESv2.dll.pdb"), |
|
|
|
new DeployableFile(windowsSkiaBuild + "/libEGL.dll"), |
|
|
|
new DeployableFile(windowsSkiaBuild + "/libEGL.dll.pdb"), |
|
|
|
new DeployableFile(windowsSkiaBuild + "/libGLESv2.dll"), |
|
|
|
new DeployableFile(windowsSkiaBuild + "/libGLESv2.dll.pdb"), |
|
|
|
} |
|
|
|
); |
|
|
|
np.Libraries.Add(IsMac, c => { |
|
|
|