-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConstruct
35 lines (25 loc) · 1.06 KB
/
SConstruct
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
env = SConscript('godot-cpp/SConstruct')
# Local dependency paths, adapt them to your setup
godot_headers_path = "godot-cpp/godot_headers/"
cpp_bindings_path = "godot-cpp/"
#cpp_library = "libgodot-cpp"
# Add JSB
jsb_headers_path = "jsbsim/src/"
jsb_library_path1 = "jsbsim/build/src/"
jsb_library_path2 = "jsbsim/src/"
jsb_library = "JSBSim"
env.Append(CPPPATH="src/")
env.Append(CPPPATH="godot-cpp/include/")
env.Append(CPPPATH="jsbsim/src/")
env.Append(CPPPATH=['.', godot_headers_path, jsb_headers_path, cpp_bindings_path + 'include/', cpp_bindings_path + 'include/core/', cpp_bindings_path + 'include/gen/'])
env.Append(LIBPATH=[cpp_bindings_path + 'bin/', jsb_library_path1, jsb_library_path2])
env.Append(LIBS=[jsb_library])
#env.Append(LIBS=['JSBSim'])
#env.Append(LIBPATH=['/path/to/jsbsim/library']) # Adjust the path
#env.Append(LIB="....")
#env.Append(LIBPATH="....")
src = Glob("src/*.cpp")
if env['platform'] == 'macos':
libpath = 'libgojb{}{}'.format( env['suffix'], env['SHLIBSUFFIX'] )
sharedlib = env.SharedLibrary(libpath,src)
Default(sharedlib)