2016-10-17 06:50:25 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2016-08-14 16:29:25 +00:00
|
|
|
Import('env')
|
2016-10-10 17:50:51 +00:00
|
|
|
Import('env_modules')
|
2016-08-14 16:29:25 +00:00
|
|
|
|
2016-10-10 17:50:51 +00:00
|
|
|
# Thirdparty source files
|
2016-08-14 16:29:25 +00:00
|
|
|
|
2016-10-13 16:54:00 +00:00
|
|
|
env_enet = env_modules.Clone()
|
|
|
|
|
2016-10-10 17:50:51 +00:00
|
|
|
if (env["enet"] != "system"): # builtin
|
|
|
|
thirdparty_dir = "#thirdparty/enet/"
|
2016-10-13 16:54:00 +00:00
|
|
|
thirdparty_sources = [
|
2016-10-10 17:50:51 +00:00
|
|
|
"callbacks.c",
|
|
|
|
"compress.c",
|
|
|
|
"host.c",
|
|
|
|
"list.c",
|
|
|
|
"packet.c",
|
|
|
|
"peer.c",
|
|
|
|
"protocol.c",
|
|
|
|
"unix.c",
|
|
|
|
"win32.c",
|
|
|
|
]
|
2016-10-13 16:54:00 +00:00
|
|
|
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources]
|
2016-10-10 17:50:51 +00:00
|
|
|
|
2016-10-13 16:54:00 +00:00
|
|
|
env_enet.add_source_files(env.modules_sources, thirdparty_sources)
|
|
|
|
env_enet.Append(CPPPATH = [thirdparty_dir])
|
2016-10-10 17:50:51 +00:00
|
|
|
|
2016-10-13 16:54:00 +00:00
|
|
|
env_enet.add_source_files(env.modules_sources, "*.cpp")
|