openctm.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. local OPENCTM_DIR = (BGFX_DIR .. "3rdparty/openctm/")
  2. project "openctm"
  3. uuid "e03096c4-0c53-11e2-ab09-debcdd6a022f"
  4. kind "StaticLib"
  5. defines {
  6. "OPENCTM_STATIC",
  7. "OPENCTM_NO_CPP",
  8. }
  9. includedirs {
  10. OPENCTM_DIR .. "lib",
  11. OPENCTM_DIR .. "lib/liblzma",
  12. }
  13. files {
  14. OPENCTM_DIR .. "lib/**.c",
  15. OPENCTM_DIR .. "lib/**.h",
  16. }
  17. project "ctmconv"
  18. uuid "f50ee8be-0d1d-11e2-b721-905709e48fda"
  19. kind "ConsoleApp"
  20. defines {
  21. "OPENCTM_STATIC",
  22. }
  23. includedirs {
  24. OPENCTM_DIR .. "lib",
  25. OPENCTM_DIR .. "lib/liblzma",
  26. OPENCTM_DIR .. "tools/rply",
  27. OPENCTM_DIR .. "tools/tinyxml",
  28. }
  29. links {
  30. "openctm",
  31. }
  32. files {
  33. OPENCTM_DIR .. "tools/ctmconv.cpp",
  34. OPENCTM_DIR .. "tools/common.cpp",
  35. OPENCTM_DIR .. "tools/common.h",
  36. OPENCTM_DIR .. "tools/systimer.cpp",
  37. OPENCTM_DIR .. "tools/systimer.h",
  38. OPENCTM_DIR .. "tools/convoptions.cpp",
  39. OPENCTM_DIR .. "tools/convoptions.h",
  40. OPENCTM_DIR .. "tools/mesh.cpp",
  41. OPENCTM_DIR .. "tools/mesh.h",
  42. OPENCTM_DIR .. "tools/meshio.cpp",
  43. OPENCTM_DIR .. "tools/meshio.h",
  44. OPENCTM_DIR .. "tools/3ds.cpp",
  45. OPENCTM_DIR .. "tools/3ds.h",
  46. OPENCTM_DIR .. "tools/ctm.cpp",
  47. OPENCTM_DIR .. "tools/ctm.h",
  48. OPENCTM_DIR .. "tools/dae.cpp",
  49. OPENCTM_DIR .. "tools/dae.h",
  50. OPENCTM_DIR .. "tools/lwo.cpp",
  51. OPENCTM_DIR .. "tools/lwo.h",
  52. OPENCTM_DIR .. "tools/obj.cpp",
  53. OPENCTM_DIR .. "tools/obj.h",
  54. OPENCTM_DIR .. "tools/off.cpp",
  55. OPENCTM_DIR .. "tools/off.h",
  56. OPENCTM_DIR .. "tools/wrl.cpp",
  57. OPENCTM_DIR .. "tools/wrl.h",
  58. OPENCTM_DIR .. "tools/ply.cpp",
  59. OPENCTM_DIR .. "tools/ply.h",
  60. OPENCTM_DIR .. "tools/stl.cpp",
  61. OPENCTM_DIR .. "tools/stl.h",
  62. OPENCTM_DIR .. "tools/rply/rply.c",
  63. OPENCTM_DIR .. "tools/rply/rply.h",
  64. OPENCTM_DIR .. "tools/tinyxml/**.cpp",
  65. OPENCTM_DIR .. "tools/tinyxml/**.h",
  66. }