From 2a69168819240892a4cc0967b8ecb7473af6ed49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Tue, 6 Dec 2022 08:08:53 +0100 Subject: [PATCH] Enable wasm platform for some libs (#1670) --- packages/b/bullet3/xmake.lua | 2 +- packages/c/chipmunk2d/xmake.lua | 2 +- packages/l/libflac/xmake.lua | 2 +- packages/l/libogg/xmake.lua | 2 +- packages/l/libvorbis/xmake.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/b/bullet3/xmake.lua b/packages/b/bullet3/xmake.lua index 78d52f4d5..49515237e 100644 --- a/packages/b/bullet3/xmake.lua +++ b/packages/b/bullet3/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")) diff --git a/packages/c/chipmunk2d/xmake.lua b/packages/c/chipmunk2d/xmake.lua index 667202a1f..5cb623047 100644 --- a/packages/c/chipmunk2d/xmake.lua +++ b/packages/c/chipmunk2d/xmake.lua @@ -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 diff --git a/packages/l/libflac/xmake.lua b/packages/l/libflac/xmake.lua index eff2fd0f5..4d91954ba 100644 --- a/packages/l/libflac/xmake.lua +++ b/packages/l/libflac/xmake.lua @@ -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") diff --git a/packages/l/libogg/xmake.lua b/packages/l/libogg/xmake.lua index 70c82a78b..f8595576a 100644 --- a/packages/l/libogg/xmake.lua +++ b/packages/l/libogg/xmake.lua @@ -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")) diff --git a/packages/l/libvorbis/xmake.lua b/packages/l/libvorbis/xmake.lua index 7d4508c67..1ee2fe819 100644 --- a/packages/l/libvorbis/xmake.lua +++ b/packages/l/libvorbis/xmake.lua @@ -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"))