summaryrefslogtreecommitdiff
path: root/node_modules/mmmagic/deps/libmagic/libmagic.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/mmmagic/deps/libmagic/libmagic.gyp')
-rw-r--r--node_modules/mmmagic/deps/libmagic/libmagic.gyp85
1 files changed, 85 insertions, 0 deletions
diff --git a/node_modules/mmmagic/deps/libmagic/libmagic.gyp b/node_modules/mmmagic/deps/libmagic/libmagic.gyp
new file mode 100644
index 0000000..76be697
--- /dev/null
+++ b/node_modules/mmmagic/deps/libmagic/libmagic.gyp
@@ -0,0 +1,85 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'libmagic',
+ 'type': 'static_library',
+ 'include_dirs': [ '.', 'src' ],
+ 'defines': [ 'HAVE_CONFIG_H', 'VERSION="5.32"' ],
+ 'conditions': [
+ [ 'OS!="freebsd" and OS!="mac"', {
+ 'sources': [ 'src/fmtcheck.c' ],
+ }],
+ [ 'OS=="win"', {
+ 'sources': [
+ 'src/asctime_r.c',
+ 'src/asprintf.c',
+ 'src/ctime_r.c',
+ 'src/dprintf.c',
+ 'src/getline.c',
+ 'src/gmtime_r.c',
+ 'src/localtime_r.c',
+ 'src/pread.c',
+ 'src/snprintf.c',
+ 'src/strcasestr.c',
+ 'src/strlcat.c',
+ 'src/strlcpy.c',
+ 'src/vasprintf.c',
+ # POSIX regex implementation
+ 'msvc/libgnurx-2.5/regex.c',
+ ],
+ 'include_dirs': [ 'config/win', 'msvc', 'msvc/libgnurx-2.5' ],
+ 'link_settings': {
+ 'libraries': [
+ '-lshlwapi.lib',
+ ]
+ },
+ }, { # POSIX
+ 'cflags': [ '-std=c99' ],
+ }],
+ [ 'OS=="linux"', {
+ 'sources': [
+ 'src/strlcat.c',
+ 'src/strlcpy.c',
+ ],
+ 'include_dirs': [ 'config/linux' ],
+ }],
+ [ 'OS=="mac"', {
+ 'include_dirs': [ 'config/mac' ],
+ }],
+ [ 'OS=="freebsd"', {
+ 'include_dirs': [ 'config/freebsd' ],
+ }],
+ [ 'OS=="openbsd"', {
+ 'include_dirs': [ 'config/openbsd' ],
+ }],
+ [ 'OS=="solaris"', {
+ 'include_dirs': [ 'config/sunos' ],
+ }],
+ ],
+ 'cflags!': [ '-O2' ],
+ 'cflags+': [ '-O3' ],
+ 'cflags_cc!': [ '-O2' ],
+ 'cflags_cc+': [ '-O3' ],
+ 'cflags_c!': [ '-O2' ],
+ 'cflags_c+': [ '-O3' ],
+ 'sources': [
+ 'src/apprentice.c',
+ 'src/apptype.c',
+ 'src/ascmagic.c',
+ 'src/cdf.c',
+ 'src/cdf_time.c',
+ 'src/compress.c',
+ 'src/der.c',
+ 'src/encoding.c',
+ 'src/fsmagic.c',
+ 'src/funcs.c',
+ 'src/is_tar.c',
+ 'src/magic.c',
+ 'src/print.c',
+ 'src/readcdf.c',
+ 'src/readelf.c',
+ 'src/softmagic.c',
+ ],
+ },
+ ]
+}