-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmyredis.gyp
41 lines (38 loc) · 1.09 KB
/
myredis.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
{
'targets': [
{
'target_name': 'myredis',
'type': 'executable',
'include_dirs': [
'include',
'include/hiredis',
'include/uv',
],
'sources': [
'./src/main.cpp',
],
'conditions': [
[ 'OS=="mac"', {
'libraries':[
'./libs/macos/libuv.a',
'./libs/macos/libhiredis.a',
],
'xcode_settings': { 'ARCHS': ['x86_64'], 'SDKROOT':'macosx', 'MACOSX_DEPLOYMENT_TARGET':'10.11','OTHER_LDFLAGS':'-pagezero_size 10000 -image_base 100000000'},
},
],
[ 'OS=="linux"', {
'libraries':[
'./libs/ubuntu/libuv.a',
'./libs/ubuntu/libhiredis.a',
],
'link_settings': {
'libraries': [ '-ldl', '-lrt' ],
},
'cflags':['-g','-fstack-protector','-fstack-protector-all'],
},
],
],
'defines': [ 'SERVER_DEBUG', 'ENABLE_CJSON_GLOBAL' ],
},
],
}