spin off easy stuff from Herb's windows GN CL
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2209533004
No public API changes.
TBR=reed@google.com
Review-Url: https://codereview.chromium.org/2209533004
diff --git a/BUILD.gn b/BUILD.gn
index 1286a06..e2a9a88 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -53,6 +53,7 @@
"src/ports",
"src/sfnt",
"src/utils",
+ "src/utils/win",
"third_party/etc1",
"third_party/ktx",
]
@@ -178,7 +179,9 @@
"//third_party/zlib",
]
- libs = [ "pthread" ]
+ if (!is_win) {
+ libs = [ "pthread" ]
+ }
sources = []
sources += core_gypi.sources
@@ -249,6 +252,7 @@
"src/ports/SkTypeface_win_dw.cpp",
"src/xps/SkDocument_XPS.cpp",
]
+ sources -= [ "src/utils/SkThreadUtils_pthread.cpp" ]
} else {
sources += [
"src/ports/SkDebug_stdio.cpp",