-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSConscript
More file actions
28 lines (20 loc) · 801 Bytes
/
SConscript
File metadata and controls
28 lines (20 loc) · 801 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
#!python
import os, subprocess
Import('env')
env = env.Clone()
# Local dependency paths, adapt them to your setup
godot_headers_path = "godot_headers/"
# make sure our binding library is properly includes
env.Append(CPPPATH=['.', godot_headers_path])
env.Append(CPPPATH=['./libmap/src/h'])
env.Append(CPPPATH=['./src/h'])
if env['platform'] == "osx":
env.Append(LINKFLAGS = [
'-install_name',
'@loader_path/libqodot.dylib'
])
env.VariantDir('build', 'src/c', duplicate=0)
# tweak this if you want to use different folders, or more folders, to store your source code in.
env.Append(CPPPATH=['src/c'])
sources = Glob('src/c/*.c')
library = env.SharedLibrary(target='build/libqodot' , source=sources, LIBS=['libmap'], LIBPATH=['libmap/build'], PDB = "build/libqodot.pdb")