-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
25 lines (19 loc) · 765 Bytes
/
SConstruct
File metadata and controls
25 lines (19 loc) · 765 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
#!/usr/bin/env python
env = SConscript("external/SConscript")
sources=[]
sources.append(Glob('src/*.cpp'))
sources.append(Glob('src/platform/*.cpp'))
if env['platform'] == 'windows':
sources.append(Glob('src/platform/windows/*.cpp'))
env.Append(CPPDEFINES=['LCE_PLATFORM_WINDOWS'])
elif env['platform'] == 'linux' or env['platform'] == 'macos' or env['platform'] == 'osx' or env['platform'] == 'linuxbsd':
sources.append(Glob('src/platform/posix/*.cpp'))
env.Append(CPPDEFINES=['LCE_PLATFORM_POSIX'])
else:
print("Unsupported platform: " + env['platform'])
Exit(1)
library = env.SharedLibrary(
"project/addons/luaCodeEdit/bin/libluacodeedit{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)
env.Default(library)