forked from galkahana/PDF-Writer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
47 lines (46 loc) · 1.39 KB
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
'targets': [
{
'target_name': 'libpng',
'type': 'static_library',
'dependencies': [
'<(module_root_dir)/src/deps/ZLib/binding.gyp:zlib'
],
'include_dirs': [
'<(module_root_dir)/src/deps/ZLib',
],
'conditions': [
# https://github.com/julienr/libpng-android/issues/6. disable neon optimization for arm to avoid runtime errors
['target_arch=="arm64" or target_arch=="aarch64"', {
'defines': [
'PNG_ARM_NEON_OPT=0'
]
}]
],
'sources': [
'png.c',
'pngerror.c',
'pngget.c',
'pngmem.c',
'pngpread.c',
'pngread.c',
'pngrio.c',
'pngrtran.c',
'pngrutil.c',
'pngset.c',
'pngtrans.c',
'pngwio.c',
'pngwrite.c',
'pngwtran.c',
'pngwutil.c',
'pnglibconf.h',
'png.h',
'pngconf.h',
'pngdebug.h',
'pnginfo.h',
'pngpriv.h',
'pngstruct.h'
],
}
]
}