-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
127 lines (114 loc) · 3.77 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/usr/bin/env python
import os
import sys
env = SConscript("godot-cpp/SConstruct")
# For reference:
# - CCFLAGS are compilation flags shared between C and C++
# - CFLAGS are for C-specific compilation flags
# - CXXFLAGS are for C++-specific compilation flags
# - CPPFLAGS are for pre-processor flags
# - CPPDEFINES are for pre-processor defines
# - LINKFLAGS are for linking flags
env.Append(CPPDEFINES=["INWORLD_LOG=1"])
env.Append(CPPDEFINES=["INWORLD_LOG_CALLBACK=1"])
env.Append(CPPPATH=["Inworld/src/"])
sources = [Glob("Inworld/src/*.cpp")]
env.Append(CPPPATH=["Inworld/inworld-ndk/src/Public"])
env.Append(CPPPATH=["Inworld/inworld-ndk/src/Private"])
env.Append(CPPPATH=["Inworld/inworld-ndk/src-proto"])
env.Append(CPPPATH=["Inworld/inworld-ndk/include"])
env.Append(CPPPATH=["Inworld/inworld-ndk/ThirdParty/include"])
env.Append(CPPPATH=["Inworld/miniaudio/"])
if env["platform"] == "windows":
env.Append(LIBPATH=["Inworld/curl-7.55.1/lib/Win64/VS2015"])
env.Append(LIBS=["libcurl_a.lib"])
env.Append(LIBPATH=["Inworld/inworld-ndk/lib/Win64"])
env.Append(
LIBS=[
"Inworld-ndk.lib",
"Inworld-ndk-proto.lib",
"absl_bad_optional_access.lib",
"absl_base.lib",
"absl_cord.lib",
"absl_graphcycles_internal.lib",
"absl_int128.lib",
"absl_malloc_internal.lib",
"absl_raw_logging_internal.lib",
"absl_spinlock_wait.lib",
"absl_stacktrace.lib",
"absl_status.lib",
"absl_statusor.lib",
"absl_str_format_internal.lib",
"absl_strings.lib",
"absl_strings_internal.lib",
"absl_symbolize.lib",
"absl_synchronization.lib",
"absl_throw_delegate.lib",
"absl_time.lib",
"absl_time_zone.lib",
"address_sorting.lib",
"cares.lib",
"gpr.lib",
"grpc++.lib",
"grpc.lib",
"libcrypto.lib",
"libprotobuf.lib",
"libssl.lib",
"re2.lib",
"upb.lib",
"zlibstatic.lib",
]
)
if env["platform"] == "macos":
env.Append(LIBPATH=["Inworld/inworld-ndk/lib/Mac"])
env.Append(
LIBS=[
"libInworld-ndk.a",
"libInworld-ndk-proto.a",
"libabsl_bad_optional_access.a",
"libabsl_base.a",
"libabsl_cord.a",
"libabsl_graphcycles_internal.a",
"libabsl_int128.a",
"libabsl_malloc_internal.a",
"libabsl_raw_logging_internal.a",
"libabsl_spinlock_wait.a",
"libabsl_stacktrace.a",
"libabsl_status.a",
"libabsl_statusor.a",
"libabsl_str_format_internal.a",
"libabsl_strings.a",
"libabsl_strings_internal.a",
"libabsl_symbolize.a",
"libabsl_synchronization.a",
"libabsl_throw_delegate.a",
"libabsl_time.a",
"libabsl_time_zone.a",
"libaddress_sorting.a",
"libcares.a",
"libgpr.a",
"libgrpc++.a",
"libgrpc.a",
"libcrypto.a",
"libprotobuf.a",
"libssl.a",
"libre2.a",
"libupb.a",
"libz.a",
]
)
if env["platform"] == "macos":
library = env.SharedLibrary(
"project/addons/inworld/bin/libinworld.{}.{}.framework/libinworld.{}.{}".format(
env["platform"], env["target"], env["platform"], env["target"]
),
source=sources,
)
else:
library = env.SharedLibrary(
"project/addons/inworld/bin/libinworld{}{}".format(
env["suffix"], env["SHLIBSUFFIX"]
),
source=sources,
)
Default(library)