-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwscript
More file actions
37 lines (27 loc) · 858 Bytes
/
Copy pathwscript
File metadata and controls
37 lines (27 loc) · 858 Bytes
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
#!/usr/bin/env python
#encoding: utf-8
# Build script for tracer
# vim: syntax=python
# #
top = '.'
out = 'build'
def options(opt):
opt.add_option('--enable_debug', action='store_true', default=False, help='debug')
opt.load('compiler_c')
header_files = ['tracer.h', 'functable.h', 'memory_op.h']
c_files = ['functable.c', 'memory_op.c', 'tracer.c']
requirements = [ 'mach-o/loader.h', 'mach/mach.h', 'spawn.h' ]
def configure(conf):
conf.load('compiler_c')
for header in requirements:
conf.check(header_name = header, features = 'c cprogram')
import platform
if platform.system() != 'Darwin':
print('This program cannot been built except on MacOS X Darwin')
return
def build(bld):
bld.program(
source = c_files,
lib = 'udis86',
target = 'tracer'
)