summaryrefslogtreecommitdiff
path: root/skia
diff options
context:
space:
mode:
Diffstat (limited to 'skia')
-rw-r--r--skia/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/skia/BUILD.gn b/skia/BUILD.gn
index ef3a9edc5d..31a851d576 100644
--- a/skia/BUILD.gn
+++ b/skia/BUILD.gn
@@ -37,6 +37,17 @@ config("skia_config") {
defines = []
+ if (is_win) {
+ defines += [ "SK_FREETYPE_MINIMUM_RUNTIME_VERSION=(((FREETYPE_MAJOR) * 0x01000000) | ((FREETYPE_MINOR) * 0x00010000) | ((FREETYPE_PATCH) * 0x00000100))" ]
+ }
+
+ if (is_component_build) {
+ defines += [
+ "SKIA_DLL",
+ "GR_GL_IGNORE_ES3_MSAA=0",
+ ]
+ }
+
if (skia_support_gpu) {
include_dirs += [
"//third_party/skia/include/gpu",
@@ -90,6 +101,10 @@ config("skia_library_config") {
defines = []
+ if (is_component_build) {
+ defines += [ "SKIA_IMPLEMENTATION=1" ]
+ }
+
if (current_cpu == "arm") {
if (arm_use_neon) {
defines += [ "SK_ARM_HAS_NEON" ]