2
0

bullet.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --
  2. -- Copyright (c) 2012-2016 Daniele Bartolini and individual contributors.
  3. -- License: https://github.com/taylor001/crown/blob/master/LICENSE
  4. --
  5. local BULLET_DIR = (CROWN_DIR .. "third/bullet3/")
  6. project "bullet"
  7. kind "StaticLib"
  8. language "C++"
  9. includedirs {
  10. BULLET_DIR .. "src",
  11. BULLET_DIR .. "src/Bullet3OpenCL",
  12. BULLET_DIR .. "src/clew",
  13. }
  14. configuration { "linux-*" }
  15. defines {
  16. "B3_USE_CLEW",
  17. }
  18. buildoptions {
  19. "-Wno-unused-parameter",
  20. "-Wno-unused-variable",
  21. "-Wno-unused-but-set-variable",
  22. "-Wno-unused-function",
  23. "-Wno-sign-compare",
  24. "-Wno-type-limits",
  25. "-Wno-parentheses",
  26. }
  27. buildoptions_cpp {
  28. "-Wno-reorder",
  29. }
  30. files {
  31. BULLET_DIR .. "src/clew/*",
  32. BULLET_DIR .. "src/Bullet3OpenCL/**.cpp",
  33. }
  34. configuration { "vs*" }
  35. buildoptions {
  36. "/wd4267",
  37. "/wd4244",
  38. "/wd4305",
  39. }
  40. configuration {}
  41. files {
  42. BULLET_DIR .. "src/*.cpp",
  43. BULLET_DIR .. "src/BulletCollision/**.cpp",
  44. BULLET_DIR .. "src/BulletDynamics/**.cpp",
  45. BULLET_DIR .. "src/BulletSoftBody/*.cpp",
  46. BULLET_DIR .. "src/LinearMath/**.cpp",
  47. BULLET_DIR .. "src/Bullet3Collision/**.cpp",
  48. BULLET_DIR .. "src/Bullet3Common/**.cpp",
  49. BULLET_DIR .. "src/Bullet3Dynamics/**.cpp",
  50. BULLET_DIR .. "src/Bullet3Geometry/**.cpp",
  51. BULLET_DIR .. "src/Bullet3Serialize/**.cpp",
  52. }
  53. configuration {}