Browse Source

add bullet3

ruki 6 years ago
parent
commit
6a78fd32eb
2 changed files with 41 additions and 16 deletions
  1. 20 16
      PKGLIST.md
  2. 21 0
      packages/b/bullet3/xmake.lua

+ 20 - 16
PKGLIST.md

@@ -2,22 +2,26 @@
 
 
 |linux|windows|mingw|iphoneos|macosx|android|
 |linux|windows|mingw|iphoneos|macosx|android|
 |-----|-------|-----|--------|------|-------|
 |-----|-------|-----|--------|------|-------|
-|boost|boost|catch2|catch2|autoconf|catch2||
-|bzip2|bzip2|doctest|cjson|automake|cjson||
-|cairo|cairo|gtest|doctest|boost|doctest||
-|catch2|catch2|nlohmann_json|gtest|bzip2|gtest||
-|cjson|doctest|spdlog|json-c|cairo|json-c||
-|doctest|expat|tbox|libcurl|catch2|libjpeg||
-|expat|freeglut|zlib|libev|cjson|libpng||
-|ffmpeg|freetype||libffi|cmake|libuv||
-|fontconfig|glew||libjpeg|doctest|libxml2||
-|freeglut|go||libpng|expat|lua||
-|freetype|gtest||libuv|ffmpeg|nlohmann_json||
-|gettext|libcurl||libxml2|fontconfig|spdlog||
-|glew|libjpeg||nlohmann_json|freetype|tbox||
-|glib|libpng||spdlog|gettext|zlib||
-|go|libsdl||tbox|glew|||
-|gperf|libuv||zlib|glib|||
+|boost|boost|bullet3|bullet3|autoconf|bullet3||
+|bullet3|bullet3|catch2|catch2|automake|catch2||
+|bzip2|bzip2|concurrentqueue|cjson|boost|cjson||
+|cairo|cairo|cpp-taskflow|concurrentqueue|bullet3|concurrentqueue||
+|catch2|catch2|doctest|cpp-taskflow|bzip2|cpp-taskflow||
+|cjson|concurrentqueue|gtest|doctest|cairo|doctest||
+|concurrentqueue|cpp-taskflow|nlohmann_json|gtest|catch2|gtest||
+|cpp-taskflow|doctest|spdlog|json-c|cjson|json-c||
+|doctest|expat|tbox|libcurl|cmake|libjpeg||
+|expat|fmt|zlib|libev|concurrentqueue|libpng||
+|ffmpeg|freeglut||libffi|cpp-taskflow|libuv||
+|fmt|freetype||libjpeg|doctest|libxml2||
+|fontconfig|glew||libpng|expat|lua||
+|freeglut|go||libuv|ffmpeg|nlohmann_json||
+|freetype|gtest||libxml2|fmt|spdlog||
+|gettext|libcurl||nlohmann_json|fontconfig|tbox||
+|glew|libjpeg||spdlog|freetype|zlib||
+|glib|libpng||tbox|gettext|||
+|go|libsdl||zlib|glew|||
+|gperf|libuv|||glib|||
 |gtest|lua|||go|||
 |gtest|lua|||go|||
 |icu4c|luajit|||gperf|||
 |icu4c|luajit|||gperf|||
 |json-c|nlohmann_json|||gtest|||
 |json-c|nlohmann_json|||gtest|||

+ 21 - 0
packages/b/bullet3/xmake.lua

@@ -0,0 +1,21 @@
+package("bullet3")
+
+    set_homepage("http://bulletphysics.org")
+    set_description("Bullet Physics SDK.")
+
+    set_urls("https://github.com/bulletphysics/bullet3/archive/$(version).zip",
+             "https://github.com/bulletphysics/bullet3.git")
+    add_versions("2.88", "f361d10961021a186b80821cfc1cfafc8dac48ce35f7d5e8de0943af4b3ddce4")
+
+    add_deps("cmake")
+
+    on_install(function (package)
+        local configs = {}
+        table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
+        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
+        import("package.tools.cmake").install(package, configs)
+    end)
+
+    on_test(function (package)
+        assert(package:has_cxxfuncs("btVector3(0,0,0)", {includes = "bullet/LinearMath/btVector3.h"}))
+    end)