forked from VersaYT/JellyVR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
29 lines (23 loc) · 739 Bytes
/
Copy pathSConstruct
File metadata and controls
29 lines (23 loc) · 739 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
29
#!/usr/bin/env python
import os
import sys
env = SConscript("engine/godot-cpp/SConstruct")
sources = Glob("src/*.cpp")
if env["platform"] == "linux":
# env.Append(LIBS=[
# 'libmpv',
# "GL"
# ])
# env.Append(LIBPATH=['../dependencies/mpv-build/mpv/build']) # Set library path
# env.Append(CPPPATH=['../dependencies/mpv-build/mpv/include']) # Set header path
library = env.SharedLibrary(
"build/jellyvr{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
else:
# Ensure all necessary libraries are linked
library = env.SharedLibrary(
"build/jellyvr{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
Default(library)