Index: third_party/miniz/miniz.gyp |
diff --git a/third_party/miniz/miniz.gyp b/third_party/miniz/miniz.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..88dad668d3afb664357c12e5deb77c2aed44e097 |
--- /dev/null |
+++ b/third_party/miniz/miniz.gyp |
@@ -0,0 +1,40 @@ |
+{ |
+ 'targets': [ |
+ { |
+ 'target_name': 'miniz', |
+ 'type': 'static_library', |
+ 'direct_dependent_settings': { |
+ 'defines': [ |
+ # When MINIZ_HEADER_FILE_ONLY is defined, miniz.c contains |
+ # no function definitions, only declarations, so that it can |
+ # serve as its own header. |
+ 'MINIZ_HEADER_FILE_ONLY', |
+ 'MINIZ_INCLUDE="miniz.c"', |
+ # The following should be the same as below: |
+ 'MINIZ_NO_STDIO', |
+ 'MINIZ_NO_TIME', |
+ 'MINIZ_NO_ARCHIVE_APIS', |
+ 'MINIZ_NO_ARCHIVE_WRITING_APIS', |
+ ], |
+ 'include_dirs': [ '.', ], |
+ }, |
+ 'defines': [ |
+ 'MINIZ_NO_STDIO', |
+ 'MINIZ_NO_TIME', |
+ 'MINIZ_NO_ARCHIVE_APIS', |
+ 'MINIZ_NO_ARCHIVE_WRITING_APIS', |
+ ], |
+ 'conditions': [ |
+ ['OS != "win"', |
+ { |
+ 'cflags': [ |
+ '-fno-strict-aliasing', |
+ '-Wno-unused-function', |
+ ], |
+ } |
+ ], |
+ ], |
+ 'sources': [ 'miniz.c', ], |
+ } |
+ ] |
+} |