-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlibmcrypt.gyp
124 lines (124 loc) · 4.73 KB
/
libmcrypt.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
'targets': [
{
'target_name': 'libmcrypt',
'type': 'static_library',
'defines': [
'STDC_HEADERS',
'VERSION="2.5.8"'
],
'include_dirs': [
'.',
'lib/',
'include/'
],
'conditions': [
['OS=="linux"', {
'defines': [
'HAVE_BYTESWAP_H',
'HAVE_BZERO',
'HAVE_MEMMOVE',
'HAVE_MEMSET',
'HAVE_MLOCK',
'HAVE_STRINGS_H',
'HAVE_SYS_MMAN_H',
'HAVE_SYS_TYPES_H',
'HAVE_UNISTD_H',
'SIZEOF_UNSIGNED_CHAR=1',
'SIZEOF_UNSIGNED_INT=4',
'SIZEOF_UNSIGNED_LONG_INT=8',
'SIZEOF_UNSIGNED_SHORT_INT=2'
]
}
],
['OS=="mac"', {
'defines': [
'HAVE_BZERO',
'HAVE_MEMMOVE',
'HAVE_MEMSET',
'HAVE_MLOCK',
'HAVE_STRINGS_H',
'HAVE_SYS_MMAN_H',
'HAVE_SYS_TYPES_H',
'HAVE_UNISTD_H',
'SIZEOF_UNSIGNED_CHAR=1',
'SIZEOF_UNSIGNED_INT=4',
'SIZEOF_UNSIGNED_LONG_INT=8',
'SIZEOF_UNSIGNED_SHORT_INT=2'
]
}
],
['OS=="freebsd"', {
'defines': [
'HAVE_BZERO',
'HAVE_MEMMOVE',
'HAVE_MEMSET',
'HAVE_MLOCK',
'HAVE_STRINGS_H',
'HAVE_SYS_MMAN_H',
'HAVE_SYS_TYPES_H',
'HAVE_UNISTD_H',
'SIZEOF_UNSIGNED_CHAR=1',
'SIZEOF_UNSIGNED_INT=4',
'SIZEOF_UNSIGNED_LONG_INT=8',
'SIZEOF_UNSIGNED_SHORT_INT=2'
]
}
],
['OS=="win"', {
'defines': [
'WIN32',
'HAVE_BZERO',
'HAVE_MEMMOVE',
'HAVE_MEMSET',
'HAVE_SYS_TYPES_H',
'SIZEOF_UNSIGNED_CHAR=1',
'SIZEOF_UNSIGNED_INT=4',
'SIZEOF_UNSIGNED_LONG_INT=8',
'SIZEOF_UNSIGNED_SHORT_INT=2'
]
}
]
],
'sources': [
'modules/algorithms/3-way.c',
'modules/algorithms/arcfour.c',
'modules/algorithms/blowfish.c',
'modules/algorithms/blowfish-compat.c',
'modules/algorithms/cast-128.c',
'modules/algorithms/cast-256.c',
'modules/algorithms/des.c',
'modules/algorithms/enigma.c',
'modules/algorithms/gost.c',
'modules/algorithms/loki97.c',
'modules/algorithms/panama.c',
'modules/algorithms/rc2.c',
'modules/algorithms/rijndael-128.c',
'modules/algorithms/rijndael-192.c',
'modules/algorithms/rijndael-256.c',
'modules/algorithms/safer64.c',
'modules/algorithms/safer128.c',
'modules/algorithms/saferplus.c',
'modules/algorithms/serpent.c',
'modules/algorithms/tripledes.c',
'modules/algorithms/twofish.c',
'modules/algorithms/wake.c',
'modules/algorithms/xtea.c',
'modules/modes/cbc.c',
'modules/modes/cfb.c',
'modules/modes/ctr.c',
'modules/modes/ecb.c',
'modules/modes/ncfb.c',
'modules/modes/nofb.c',
'modules/modes/ofb.c',
'modules/modes/stream.c',
'lib/bzero.c',
'lib/mcrypt.c',
'lib/mcrypt_extra.c',
'lib/mcrypt_modules.c',
'lib/mcrypt_symb.c',
'lib/xmemory.c'
]
}
]
}