Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: third_party/miniz/miniz.gyp

Issue 469813002: Add miniz library to third_party, use it on Windows (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clarifying Comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/miniz/miniz.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', ],
+ }
+ ]
+}
« no previous file with comments | « third_party/miniz/miniz.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698