tools.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --
  2. -- Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
  3. -- License: https://github.com/taylor001/crown/blob/master/LICENSE
  4. --
  5. local CROWN_DIR = (path.getabsolute("..") .. "/")
  6. local CROWN_BUILD_DIR = (CROWN_DIR .. "build/")
  7. local CROWN_TOOLS_DIR = (CROWN_BUILD_DIR .. "tools/")
  8. solution "tools"
  9. language "Vala"
  10. configurations {
  11. "debug",
  12. "release",
  13. }
  14. location(CROWN_TOOLS_DIR .. "projects/")
  15. targetdir(CROWN_TOOLS_DIR)
  16. configuration { "debug" }
  17. targetsuffix "-debug"
  18. project "level-editor"
  19. kind "ConsoleApp"
  20. configuration { "debug" }
  21. flags {
  22. "Symbols",
  23. }
  24. defines {
  25. "CROWN_DEBUG",
  26. }
  27. configuration { "release" }
  28. flags {
  29. "Optimize"
  30. }
  31. configuration { "linux" }
  32. defines {
  33. "CROWN_PLATFORM_LINUX"
  34. }
  35. configuration { "windows" }
  36. defines {
  37. "CROWN_PLATFORM_WINDOWS"
  38. }
  39. configuration {}
  40. links {
  41. "gdk-3.0",
  42. "gee-0.8",
  43. "gio-2.0",
  44. "glib-2.0",
  45. "gtk+-3.0",
  46. "posix",
  47. }
  48. buildoptions {
  49. "-lm",
  50. "-Wno-deprecated-declarations",
  51. "-Wno-incompatible-pointer-types",
  52. "-Wno-discarded-qualifiers",
  53. }
  54. files {
  55. CROWN_DIR .. "tools/**.vala"
  56. }
  57. configuration {}