genie.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --
  2. -- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
  3. -- License: http://www.opensource.org/licenses/BSD-2-Clause
  4. --
  5. solution "bx"
  6. configurations {
  7. "Debug",
  8. "Release",
  9. }
  10. platforms {
  11. "x32",
  12. "x64",
  13. "Native", -- for targets where bitness is not specified
  14. }
  15. language "C++"
  16. BX_DIR = (path.getabsolute("..") .. "/")
  17. local BX_BUILD_DIR = (BX_DIR .. ".build/")
  18. local BX_THIRD_PARTY_DIR = (BX_DIR .. "3rdparty/")
  19. defines {
  20. "BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS=1"
  21. }
  22. dofile "toolchain.lua"
  23. toolchain(BX_BUILD_DIR, BX_THIRD_PARTY_DIR)
  24. function copyLib()
  25. end
  26. dofile "bx.lua"
  27. dofile "unittest++.lua"
  28. project "bx.test"
  29. uuid "8a653da8-23d6-11e3-acb4-887628d43830"
  30. kind "ConsoleApp"
  31. debugdir (BX_DIR .. "tests")
  32. includedirs {
  33. BX_DIR .. "include",
  34. BX_THIRD_PARTY_DIR .. "UnitTest++/src/",
  35. }
  36. links {
  37. "UnitTest++",
  38. }
  39. files {
  40. BX_DIR .. "tests/**.cpp",
  41. BX_DIR .. "tests/**.H",
  42. }
  43. configuration { "vs*" }
  44. configuration { "android*" }
  45. kind "ConsoleApp"
  46. targetextension ".so"
  47. linkoptions {
  48. "-shared",
  49. }
  50. configuration { "nacl or nacl-arm" }
  51. kind "ConsoleApp"
  52. targetextension ".nexe"
  53. links {
  54. "ppapi",
  55. "pthread",
  56. }
  57. configuration { "pnacl" }
  58. kind "ConsoleApp"
  59. targetextension ".pexe"
  60. links {
  61. "ppapi",
  62. "pthread",
  63. }
  64. configuration { "linux-*" }
  65. links {
  66. "pthread",
  67. }
  68. configuration { "osx" }
  69. links {
  70. "Cocoa.framework",
  71. }
  72. configuration {}
  73. strip()