SCsub 746 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python
  2. Import('env')
  3. common_win = [
  4. "context_gl_win.cpp",
  5. "crash_handler_win.cpp",
  6. "os_windows.cpp",
  7. "ctxgl_procaddr.cpp",
  8. "key_mapping_win.cpp",
  9. "tcp_server_winsock.cpp",
  10. "packet_peer_udp_winsock.cpp",
  11. "stream_peer_winsock.cpp",
  12. "joystick.cpp",
  13. ]
  14. restarget = "godot_res" + env["OBJSUFFIX"]
  15. obj = env.RES(restarget, 'godot_res.rc')
  16. common_win.append(obj)
  17. prog = env.add_program('#bin/godot', ['godot_win.cpp'] + common_win, PROGSUFFIX=env["PROGSUFFIX"])
  18. # Microsoft Visual Studio Project Generation
  19. if (env['vsproj']) == "yes":
  20. env.vs_srcs = env.vs_srcs + ["platform/windows/godot_win.cpp"]
  21. for x in common_win:
  22. env.vs_srcs = env.vs_srcs + ["platform/windows/" + str(x)]