Index: experimental/webtry/templates/template.gyp |
diff --git a/experimental/webtry/templates/template.gyp b/experimental/webtry/templates/template.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d0e7ecd99074fb5cea203acffcf94f90a98f47e3 |
--- /dev/null |
+++ b/experimental/webtry/templates/template.gyp |
@@ -0,0 +1,37 @@ |
+{ |
+ 'targets': [ |
+ { |
+ 'configurations': { |
+ 'Debug': { }, |
+ 'Release': { } |
+ }, |
+ 'target_name': '{{.Hash}}', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ '../skia/gyp/skia_lib.gyp:skia_lib', |
+ '../skia/gyp/flags.gyp:flags' |
+ ], |
+ 'include_dirs': [ |
+ '../skia/include/config', |
+ '../skia/include/core', |
+ '../skia/tools/flags', |
+ '../skia/src/core', |
+ ], |
+ 'conditions': [ |
+ ['skia_os == "mac"', { |
+ 'defines': ['SK_UNSAFE_BUILD_DESKTOP_ONLY=1'] |
+ }] |
+ ], |
+ 'sources': [ |
+ 'src/{{.Hash}}.cpp', |
+ '../skia/experimental/webtry/main.cpp' |
+ ], |
+ 'ldflags': [ |
+ '-lskia', '-stdlib=libc++', '-std=c++11' |
+ ], |
+ 'cflags': [ |
+ '-Werror', '-W', '-Wall', '-Wextra', '-Wno-unused-parameter', '-g', '-O0' |
+ ] |
+ } |
+ ] |
+} |