level-editor-imgui.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --
  2. -- Copyright (c) 2012-2020 Daniele Bartolini and individual contributors.
  3. -- License: https://github.com/dbartolini/crown/blob/master/LICENSE
  4. --
  5. project "level-editor-imgui"
  6. kind "WindowedApp"
  7. language "C++"
  8. includedirs {
  9. CROWN_DIR .. "src",
  10. CROWN_DIR .. "tools-imgui",
  11. CROWN_DIR .. "3rdparty",
  12. CROWN_DIR .. "3rdparty/bgfx/include",
  13. CROWN_DIR .. "3rdparty/bx/include",
  14. CROWN_DIR .. "3rdparty/stb",
  15. CROWN_DIR .. "3rdparty/luajit/src",
  16. CROWN_DIR .. "3rdparty/ocornut-imgui",
  17. CROWN_DIR .. "3rdparty/nativefiledialog/src/include",
  18. }
  19. defines {
  20. "CROWN_TOOLS=1",
  21. "CROWN_PHYSICS_NOOP=1",
  22. "CROWN_SOUND_NOOP=1",
  23. }
  24. links {
  25. "bgfx",
  26. "bimg",
  27. "bx",
  28. }
  29. configuration { "debug or development" }
  30. defines {
  31. "CROWN_DEBUG=1"
  32. }
  33. configuration { "development" }
  34. defines {
  35. "CROWN_DEVELOPMENT=1"
  36. }
  37. configuration { "linux-*" }
  38. links {
  39. "X11",
  40. "Xrandr",
  41. "pthread",
  42. "dl",
  43. "GL",
  44. "luajit",
  45. }
  46. linkoptions { "`pkg-config --libs gtk+-3.0`" }
  47. buildoptions { "`pkg-config --cflags gtk+-3.0`" }
  48. files {
  49. CROWN_DIR .. "3rdparty/nativefiledialog/src/nfd_gtk.c",
  50. }
  51. configuration { "vs* or mingw*" }
  52. links {
  53. "dbghelp",
  54. "xinput",
  55. "psapi",
  56. "ws2_32",
  57. "ole32",
  58. "gdi32",
  59. "uuid",
  60. }
  61. files {
  62. CROWN_DIR .. "3rdparty/nativefiledialog/src/nfd_win.cpp",
  63. }
  64. configuration { "not vs*" }
  65. links {
  66. "luajit"
  67. }
  68. configuration { "vs*"}
  69. links {
  70. "lua51"
  71. }
  72. configuration {}
  73. files {
  74. CROWN_DIR .. "src/**.h",
  75. CROWN_DIR .. "src/**.cpp",
  76. CROWN_DIR .. "tools-imgui/**.h",
  77. CROWN_DIR .. "tools-imgui/**.cpp",
  78. CROWN_DIR .. "3rdparty/ocornut-imgui/*.h",
  79. CROWN_DIR .. "3rdparty/ocornut-imgui/*.cpp",
  80. CROWN_DIR .. "3rdparty/nativefiledialog/src/nfd_common.c",
  81. }
  82. configuration {} -- reset configuration