Skip to content

Commit

Permalink
Enable wasm platform for some libs (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored Dec 6, 2022
1 parent 1ef9c51 commit 2a69168
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/b/bullet3/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion packages/c/chipmunk2d/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/l/libflac/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion packages/l/libogg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion packages/l/libvorbis/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 2a69168

Please sign in to comment.