소스 검색

implot: fix build (#7932)

* implot: fix build

* Update xmake.lua

---------

Co-authored-by: star9029 <[email protected]>
choyy 3 주 전
부모
커밋
2c7662ec58
1개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 7
      packages/i/implot/xmake.lua

+ 4 - 7
packages/i/implot/xmake.lua

@@ -9,12 +9,12 @@ package("implot")
     add_versions("v0.16", "961df327d8a756304d1b0a67316eebdb1111d13d559f0d3415114ec0eb30abd1")
     add_versions("v0.16", "961df327d8a756304d1b0a67316eebdb1111d13d559f0d3415114ec0eb30abd1")
     add_versions("v0.15", "3df87e67a1e28db86828059363d78972a298cd403ba1f5780c1040e03dfa2672")
     add_versions("v0.15", "3df87e67a1e28db86828059363d78972a298cd403ba1f5780c1040e03dfa2672")
 
 
-    add_deps("imgui")
+    add_deps("imgui <1.91")
 
 
-    on_install("windows", "linux", "macosx", "mingw", "android", "iphoneos", function (package)
+    on_install(function (package)
         local configs = {}
         local configs = {}
         io.writefile("xmake.lua", [[
         io.writefile("xmake.lua", [[
-            add_requires("imgui")
+            add_requires("imgui <1.91")
             add_rules("mode.release", "mode.debug")
             add_rules("mode.release", "mode.debug")
             target("implot")
             target("implot")
                 set_kind("$(kind)")
                 set_kind("$(kind)")
@@ -26,10 +26,7 @@ package("implot")
                     add_rules("utils.symbols.export_all", {export_classes = true})
                     add_rules("utils.symbols.export_all", {export_classes = true})
                 end
                 end
         ]])
         ]])
-        if package:config("shared") then
-            configs.kind = "shared"
-        end
-        import("package.tools.xmake").install(package, configs)
+        import("package.tools.xmake").install(package)
     end)
     end)
 
 
     on_test(function (package)
     on_test(function (package)