Enable wasm platform for some libs (#1670)

pull/1693/head
Jérôme Leclercq 2 years ago committed by GitHub
parent 1ef9c51ac3
commit 2a69168819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/b/bullet3/xmake.lua
  2. 2
      packages/c/chipmunk2d/xmake.lua
  3. 2
      packages/l/libflac/xmake.lua
  4. 2
      packages/l/libogg/xmake.lua
  5. 2
      packages/l/libvorbis/xmake.lua

@ -22,7 +22,7 @@ package("bullet3")
add_links("Bullet2FileLoader", "Bullet3Collision", "Bullet3Common", "Bullet3Dynamics", "Bullet3Geometry", "Bullet3OpenCL_clew", "BulletDynamics", "BulletCollision", "BulletInverseDynamics", "BulletSoftBody", "LinearMath")
add_includedirs("include", "include/bullet")
on_install("macosx", "linux", "windows", function (package)
on_install("macosx", "linux", "windows", "wasm", function (package)
local configs = {"-DBUILD_CPU_DEMOS=OFF", "-DBUILD_OPENGL3_DEMOS=OFF", "-DBUILD_BULLET2_DEMOS=OFF", "-DBUILD_UNIT_TESTS=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

@ -25,7 +25,7 @@ package("chipmunk2d")
add_syslinks("pthread", "m")
end
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", function (package)
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package)
local configs = {"-DBUILD_DEMOS=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
if package:config("shared") then

@ -30,7 +30,7 @@ package("libflac")
end
end)
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", function (package)
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package)
local configs = {}
table.insert(configs, "-DBUILD_CXXLIBS=OFF")

@ -21,7 +21,7 @@ package("libogg")
add_extsources("brew::libogg")
end
on_install("windows", "macosx", "linux", "mingw", "iphoneos", "android", "cross", function (package)
on_install("windows", "macosx", "linux", "mingw", "iphoneos", "android", "cross", "wasm", function (package)
local configs = {"-DBUILD_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

@ -71,7 +71,7 @@ package("libvorbis")
package:add("links", "vorbis" .. ext)
end)
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", function (package)
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package)
local configs = {}
table.insert(configs, "-DBUILD_TESTING=OFF")
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))

Loading…
Cancel
Save