-
Notifications
You must be signed in to change notification settings - Fork 1
/
dlfcn.gyp
74 lines (71 loc) · 1.54 KB
/
dlfcn.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
{
'target_defaults': {
'default_configuration': 'Debug',
'configurations': {
# TODO: hoist these out and put them somewhere common, because
# RuntimeLibrary MUST MATCH across the entire project
'Debug': {
'defines': [ 'DEBUG', '_DEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 1, # static debug
},
},
},
'Release': {
'defines': [ 'NDEBUG' ],
'msvs_settings': {
'VCCLCompilerTool': {
'RuntimeLibrary': 0, # static release
},
},
}
},
'msvs_settings': {
'VCCLCompilerTool': {
},
'VCLibrarianTool': {
},
'VCLinkerTool': {
'GenerateDebugInformation': 'true',
},
},
'conditions': [
['OS == "win"', {
'defines': [
'WIN32'
],
}]
],
},
'targets': [
{
'target_name': 'dlfcn',
'type': 'static_library',
'link_settings': {
'libraries': [
'-lpsapi',
]
},
'include_dirs': [ '.' ],
'direct_dependent_settings': {
'include_dirs': [ '.' ],
},
'defines': [ ],
'sources': [ './dlfcn.c', ],
},
{
'target_name': 'testdll',
'product_prefix': '',
'product_extension': 'dll',
'type': 'shared_library',
'sources': [ './testdll.c', ],
},
{
'target_name': 'test',
'type': 'executable',
'dependencies': [ 'dlfcn' ],
'sources': [ './test.c' ]
}
]
}