2016-10-17 14:50:25 +08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2014-02-10 09:10:30 +08:00
|
|
|
Import('env')
|
|
|
|
|
|
|
|
|
|
|
|
common_win=[
|
|
|
|
"context_gl_win.cpp",
|
|
|
|
"os_windows.cpp",
|
|
|
|
"ctxgl_procaddr.cpp",
|
|
|
|
"key_mapping_win.cpp",
|
|
|
|
"tcp_server_winsock.cpp",
|
2014-11-12 22:23:23 +08:00
|
|
|
"packet_peer_udp_winsock.cpp",
|
2014-02-10 09:10:30 +08:00
|
|
|
"stream_peer_winsock.cpp",
|
2015-12-18 13:12:53 +08:00
|
|
|
"joystick.cpp",
|
2014-02-10 09:10:30 +08:00
|
|
|
]
|
|
|
|
|
2015-11-24 21:42:05 +08:00
|
|
|
restarget="godot_res"+env["OBJSUFFIX"]
|
|
|
|
|
|
|
|
obj = env.RES(restarget,'godot_res.rc')
|
|
|
|
|
|
|
|
common_win.append(obj)
|
2015-11-09 06:53:58 +08:00
|
|
|
|
2014-10-08 10:59:35 +08:00
|
|
|
env.Program('#bin/godot',['godot_win.cpp']+common_win,PROGSUFFIX=env["PROGSUFFIX"])
|
2015-05-04 05:18:56 +08:00
|
|
|
|
2015-11-09 06:53:58 +08:00
|
|
|
# Microsoft Visual Studio Project Generation
|
2015-05-04 05:18:56 +08:00
|
|
|
if (env['vsproj'])=="yes":
|
|
|
|
env.vs_srcs = env.vs_srcs + ["platform/windows/godot_win.cpp"]
|
|
|
|
for x in common_win:
|
2016-01-07 13:47:43 +08:00
|
|
|
env.vs_srcs = env.vs_srcs + ["platform/windows/" + str(x)]
|