瀏覽代碼

blobify: remove unused build files

star9029 3 月之前
父節點
當前提交
dd0eae07a6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/b/blobify/xmake.lua

+ 4 - 0
packages/b/blobify/xmake.lua

@@ -11,6 +11,10 @@ package("blobify")
     add_deps("boost_pfr", "magic_enum")
 
     on_install(function (package)
+        io.replace("CMakeLists.txt", "add_subdirectory(examples)", "", {plain = true})
+        io.replace("CMakeLists.txt", [[add_library(blobify-associated-sources STATIC src/blobify.cpp)
+target_link_libraries(blobify-associated-sources blobify)]], "", {plain = true})
+
         io.replace("include/blobify/load.hpp", [[#include <magic_enum.hpp>]], [[#include <magic_enum/magic_enum.hpp>
 #include <algorithm>]], {plain = true})
         io.replace("CMakeLists.txt", [[find_package(magic_enum REQUIRED)]], [[find_package(magic_enum CONFIG REQUIRED)]], {plain = true})