tools.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. solution "tools"
  8. language "Vala"
  9. configurations {
  10. "debug",
  11. "release",
  12. }
  13. location(CROWN_BUILD_DIR .. "projects/")
  14. targetdir(CROWN_BUILD_DIR .. "tools")
  15. configuration { "debug" }
  16. targetsuffix "-debug"
  17. project "level-editor"
  18. kind "ConsoleApp"
  19. configuration { "debug" }
  20. flags {
  21. "Symbols",
  22. }
  23. defines {
  24. "CROWN_DEBUG",
  25. }
  26. configuration { "release" }
  27. flags {
  28. "Optimize"
  29. }
  30. configuration { "linux" }
  31. defines {
  32. "CROWN_PLATFORM_LINUX"
  33. }
  34. configuration { "windows" }
  35. defines {
  36. "CROWN_PLATFORM_WINDOWS"
  37. }
  38. configuration {}
  39. links {
  40. "gdk-3.0",
  41. "gee-0.8",
  42. "gio-2.0",
  43. "glib-2.0",
  44. "gtk+-3.0",
  45. "posix",
  46. }
  47. buildoptions {
  48. "-lm",
  49. "-Wno-deprecated-declarations",
  50. "-Wno-incompatible-pointer-types",
  51. "-Wno-discarded-qualifiers",
  52. }
  53. files {
  54. CROWN_DIR .. "tools/**.vala"
  55. }
  56. configuration {}