zlib.gyp (1333B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 { 5 'includes': [ 6 "../../coreconf/config.gypi" 7 ], 8 'variables': { 9 'module': 'nss', 10 }, 11 'conditions': [ 12 ['use_system_zlib==1', { 13 'targets': [{ 14 'target_name': 'nss_zlib', 15 'type': 'none', 16 'link_settings': { 17 'libraries': ['<@(zlib_libs)'], 18 }, 19 }], 20 }, { 21 'targets': [{ 22 'target_name': 'nss_zlib', 23 'type': 'static_library', 24 'sources': [ 25 'adler32.c', 26 'compress.c', 27 'crc32.c', 28 'deflate.c', 29 'gzclose.c', 30 'gzlib.c', 31 'gzread.c', 32 'gzwrite.c', 33 'infback.c', 34 'inffast.c', 35 'inflate.c', 36 'inftrees.c', 37 'trees.c', 38 'uncompr.c', 39 'zutil.c', 40 ], 41 'defines': [ 42 # Define verbose as -1 to turn off all zlib trace messages in 43 # debug builds. 44 'verbose=-1', 45 'HAVE_STDARG_H', 46 ], 47 'conditions': [ 48 [ 'OS!="win"', { 49 'defines': [ 50 'HAVE_UNISTD_H', 51 ], 52 }], 53 ], 54 }], 55 }] 56 ], 57 }