Index: gyp/tools.gyp |
diff --git a/gyp/tools.gyp b/gyp/tools.gyp |
index 7b936171fd4e5025d7776bb9e72fe7feda735ff5..18f2c2dc5adfb5e069400addac7cda5c7c25d25a 100644 |
--- a/gyp/tools.gyp |
+++ b/gyp/tools.gyp |
@@ -467,14 +467,19 @@ |
'../tools/using_skia_and_harfbuzz.cpp', |
'../tools/SkShaper.cpp', |
], |
+ 'variables': { 'skia_example_use_harfbuzz%': 1, }, |
+ 'conditions': [ |
+ [ 'skia_example_use_harfbuzz', |
+ { |
+ 'defines' : [ 'SK_ENABLE_HARFBUZZ' ], |
+ 'dependencies': [ 'harfbuzz.gyp:harfbuzz', ], |
+ }, |
+ ] |
+ ], |
'dependencies': [ |
'skia_lib.gyp:skia_lib', |
'pdf.gyp:pdf', |
- 'harfbuzz.gyp:harfbuzz', |
], |
- 'cflags': [ '-w', ], |
- 'msvs_settings': { 'VCCLCompilerTool': { 'WarningLevel': '0', }, }, |
- 'xcode_settings': { 'WARNING_CFLAGS': [ '-w', ], }, |
}, |
{ |
'target_name': 'visualize_color_gamut', |