-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAMBuilder
More file actions
25 lines (21 loc) · 809 Bytes
/
AMBuilder
File metadata and controls
25 lines (21 loc) · 809 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
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
import os
for sdk_name in Extension.sdks:
sdk = Extension.sdks[sdk_name]
for cxx in builder.targets:
binary = Extension.Library(builder, cxx, 'vscript.ext.' + sdk.ext, sdk)
binary.sources += [
'src/extension.cpp',
'src/core/vscript_manager.cpp',
'src/core/handle_types.cpp',
'src/natives/variant_natives.cpp',
'src/natives/scope_natives.cpp',
'src/natives/table_natives.cpp',
'src/natives/array_natives.cpp',
'src/natives/function_natives.cpp',
'src/natives/vm_natives.cpp',
os.path.join(Extension.sm_root, 'public', 'smsdk_ext.cpp'),
]
if binary.compiler.target.platform == 'windows':
binary.sources += ['src/version.rc']
Extension.extensions += [builder.Add(binary)]