Browse Source

Add windows plat for libebur128 (#6463)

* test libebur128

* try to cure arm
Saikari 6 months ago
parent
commit
2b44b6e371
1 changed files with 2 additions and 9 deletions
  1. 2 9
      packages/l/libebur128/xmake.lua

+ 2 - 9
packages/l/libebur128/xmake.lua

@@ -10,19 +10,12 @@ package("libebur128")
 
     add_deps("cmake")
 
-    on_install("!windows or windows|!arm64", function (package)
+    on_install(function (package)
+        io.replace("ebur128/ebur128.c", [[#warning "manual FTZ is being used, please enable SSE2 (-msse2 -mfpmath=sse)"]], "", {plain = true})
         local configs = {"-DCMAKE_POLICY_DEFAULT_CMP0057=NEW"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
-        if package:is_plat("windows") then
-            table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
-        end
         import("package.tools.cmake").install(package, configs)
-
-        if package:is_plat("windows") and package:is_debug() then
-            local dir = package:installdir(package:config("shared") and "bin" or "lib")
-            os.trycp(path.join(package:buildir(), "ebur128.pdb"), dir)
-        end
     end)
 
     on_test(function (package)