Skip to content
0.2.0-dev Download ZIP
45 lines ·971 B Raw
1#!/usr/bin/env python
2from misc.utility.scons_hints import *
3
4Import("env")
5
6env_backtrace = env.Clone()
7
8# Thirdparty source files
9
10thirdparty_obj = []
11
12thirdparty_dir = "#thirdparty/libbacktrace/"
13thirdparty_sources = [
14 "atomic.c",
15 "dwarf.c",
16 "fileline.c",
17 "posix.c",
18 "print.c",
19 "sort.c",
20 "state.c",
21 "backtrace.c",
22 "simple.c",
23 "pecoff.c",
24 "read.c",
25 "alloc.c",
26]
27thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
28
29env_backtrace.Prepend(CPPPATH=[thirdparty_dir])
30
31env_thirdparty = env_backtrace.Clone()
32env_thirdparty.disable_warnings()
33env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources)
34
35env.drivers_sources += thirdparty_obj
36
37# Godot source files
38
39driver_obj = []
40
41env_backtrace.add_source_files(driver_obj, "*.cpp")
42env.drivers_sources += driver_obj
43
44# Needed to force rebuilding the driver files when the thirdparty library is updated.
45env.Depends(driver_obj, thirdparty_obj)