-
Notifications
You must be signed in to change notification settings - Fork 2
/
drakefile
61 lines (53 loc) · 1.49 KB
/
drakefile
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
import drake
rule_build = None
rule_check = None
rule_install = None
rule_tests = None
lib_dynamic = None
lib_static = None
config = None
def configure(cxx_toolkit,
cxx_config):
global lib_dynamic, lib_static
global rule_build, rule_check, rule_install, rule_tests
global config
sources = drake.nodes(
'dokan/access.c',
'dokan/cleanup.c',
'dokan/close.c',
'dokan/create.c',
'dokan/directory.c',
'dokan/dokan.c',
'dokan/dokanc.h',
'dokan/dokan.h',
'dokan/dokani.h',
'dokan/fileinfo.c',
'dokan/fileinfo.h',
'dokan/flush.c',
'dokan/list.h',
'dokan/lock.c',
'dokan/mount.c',
'dokan/read.c',
'dokan/resource.h',
'dokan/security.c',
'dokan/setfile.c',
'dokan/timeout.c',
'dokan/version.c',
'dokan/volume.c',
'dokan/write.c',
'dokan_np/dokannp.c',
)
config = drake.cxx.Config(cxx_config)
config.add_local_include_path('.')
config.define('DOKAN_STATIC_BUILD')
local_config = drake.cxx.Config(config)
local_config.add_local_include_path('sys')
local_config.add_local_include_path('dokan')
local_config.warnings.sign_compare = False
local_config.warnings.missing_declarations = None
local_config.define('UNICODE')
local_config.define('_UNICODE')
local_config.define('MINGW_HAS_SECURE_API')
lib_dynamic = drake.cxx.DynLib('lib/dokan', sources, cxx_toolkit, local_config)
rule_build = drake.Rule("build")
rule_build << lib_dynamic