Browse Source

omath: update to 3.8.2 (#8312)

* omath: update to 3.8.2

* imgui: discard old workaround as we have new version of XMake
Saikari 2 months ago
parent
commit
8bfa8dd1cf
2 changed files with 1 additions and 6 deletions
  1. 0 6
      packages/i/imgui/xmake.lua
  2. 1 0
      packages/o/omath/xmake.lua

+ 0 - 6
packages/i/imgui/xmake.lua

@@ -214,12 +214,6 @@ package("imgui")
 
         os.cp(path.join(package:scriptdir(), "port", "xmake.lua"), "xmake.lua")
         import("package.tools.xmake").install(package, configs)
-        local config_version_file = path.join(package:installdir("lib"), "cmake", "imgui", "imguiConfigVersion.cmake")
-        if package:is_plat("cross") and package:check_sizeof("void*") == "4" and os.exists(config_version_file) then
-            io.replace(config_version_file, [[if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")]], [[if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "4" STREQUAL "")]], {plain = true})
-            io.replace(config_version_file, [[if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")]], [[if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "4")]], {plain = true})
-            io.replace(config_version_file, [[math(EXPR installedBits "8 * 8")]], [[math(EXPR installedBits "4 * 8")]], {plain = true})
-        end
     end)
 
     on_test(function (package)

+ 1 - 0
packages/o/omath/xmake.lua

@@ -6,6 +6,7 @@ package("omath")
     add_urls("https://github.com/orange-cpp/omath/archive/refs/tags/$(version).tar.gz",
              "https://github.com/orange-cpp/omath.git", {submodules = false})
 
+    add_versions("v3.8.2", "e759aba554f9d50147931852c13408ff0bd302a787ff28818d19d4dc1a8f7fd0")
     add_versions("v3.8.1", "aaea99570c382478f825af759a2b0a214b429c74a9a5492ddd2866c836e85f4e")
 
     add_patches("v3.8.1", "patches/v3.8.1/fix-build.patch", "c1554cf0cdd027d6386544871d6248c868f8f95add343660334888da52119ae9")