diff --git a/hikyuu_extern_libs/packages/h/hdf5/xmake.lua b/hikyuu_extern_libs/packages/h/hdf5/xmake.lua deleted file mode 100644 index 95a9f318..00000000 --- a/hikyuu_extern_libs/packages/h/hdf5/xmake.lua +++ /dev/null @@ -1,32 +0,0 @@ -package("hdf5") - - set_homepage("https://www.hdfgroup.org/solutions/hdf5/") - set_description("High-performance data management and storage suite") - set_license("BSD-3-Clause") - - if is_plat("windows") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-win-x64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-win-x64.zip") - add_versions("1.12.2", "388d455c917b153f3410e8ca0c857ee37a575d859a70ecb6e16d4fb43b1d201c") - elseif is_plat("linux") and is_arch("x86_64") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-linux-x64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-linux-x64.zip") - add_versions("1.12.2", "e0f4357ea7bfa0132c3edba9b517635736191f920ce7a3aeef5e89dbe5b2dd27") - elseif is_plat("linux", "cross") and is_arch("aarch64", "arm64.*") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-linux-aarch64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5-$(version)-linux-aarch64.zip") - add_versions("1.12.2", "d73a880d9dfede0d5db1e30555fa251ca82efa437a0d93b46f5e64e87e71fc63") - end - - on_load("windows", "linux", "cross", function (package) - package:add("defines", "H5_BUILT_AS_DYNAMIC_LIB") - end) - - on_install("windows", "linux", "cross", function (package) - os.cp("include", package:installdir()) - os.cp("lib", package:installdir()) - if package:is_plat("windows") then - os.cp("bin", package:installdir()) - end - end) - diff --git a/hikyuu_extern_libs/packages/h/hdf5_D/xmake.lua b/hikyuu_extern_libs/packages/h/hdf5_D/xmake.lua deleted file mode 100644 index cf34fca2..00000000 --- a/hikyuu_extern_libs/packages/h/hdf5_D/xmake.lua +++ /dev/null @@ -1,22 +0,0 @@ -package("hdf5_D") - - set_homepage("https://www.hdfgroup.org/solutions/hdf5/") - set_description("High-performance data management and storage suite") - set_license("BSD-3-Clause") - - if is_plat("windows") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5_D-$(version)-win-x64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/hdf5_D-$(version)-win-x64.zip") - add_versions("1.12.2", "6ea3ab5a4b0bb0f48eaef28cfe747ac5c072c06519a4888c1a59cfaf75399049") - end - - on_load("windows", function (package) - package:add("defines", "H5_BUILT_AS_DYNAMIC_LIB") - end) - - on_install("windows", function (package) - os.cp("include", package:installdir()) - os.cp("lib", package:installdir()) - os.cp("bin", package:installdir()) - end) - diff --git a/hikyuu_extern_libs/packages/m/mysql/xmake.lua b/hikyuu_extern_libs/packages/m/mysql/xmake.lua deleted file mode 100644 index c9297c27..00000000 --- a/hikyuu_extern_libs/packages/m/mysql/xmake.lua +++ /dev/null @@ -1,27 +0,0 @@ -package("mysql") - - set_homepage("https://dev.mysql.com/doc/refman/5.7/en/") - set_description("Open source relational database management system.") - - if is_plat("windows") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-win-x64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-win-x64.zip") - add_versions("8.0.21", "de21694aa230a00b52b28babbce9bb150d990ba1f539edf8d193586dce3844ae") - elseif is_plat("linux") and is_arch("x86_64") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-linux-x86_64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-linux-x86_64.zip") - add_versions("8.0.31", "07268a4b02174dfb8ee30642cd6fd81a0115ed87560a51a42e7123eed0be5ad1") - elseif is_plat("linux", "cross") and is_arch("aarch64", "arm64.*") then - add_urls("https://github.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-linux-aarch64.zip", - "https://gitee.com/fasiondog/hikyuu_extern_libs/releases/download/1.0.0/mysql-$(version)-linux-aarch64.zip") - add_versions("8.0.21", "385a7e280f86aa864f02ae7061c940a20f1ace358f906d330453992331b638c8") - end - - on_install("windows", "linux", "cross", function (package) - os.cp("include", package:installdir()) - os.cp("lib", package:installdir()) - if package:is_plat("windows") then - os.cp("bin", package:installdir()) - end - end) - diff --git a/hikyuu_extern_libs/packages/p/pybind11/xmake.lua b/hikyuu_extern_libs/packages/p/pybind11/xmake.lua deleted file mode 100644 index 1a6e2462..00000000 --- a/hikyuu_extern_libs/packages/p/pybind11/xmake.lua +++ /dev/null @@ -1,26 +0,0 @@ -package("pybind11") - - set_kind("library", {headeronly = true}) - set_homepage("https://github.com/pybind/pybind11") - set_description("Seamless operability between C++11 and Python.") - set_license("BSD-3-Clause") - - add_urls("https://github.com/pybind/pybind11/archive/$(version).zip", - "https://github.com/pybind/pybind11.git") - add_versions("v2.11.1", "b011a730c8845bfc265f0f81ee4e5e9e1d354df390836d2a25880e123d021f89") - - on_install(function (package) - os.cp("include", package:installdir()) - end) - - -- on_test(function (package) - -- assert(package:check_cxxsnippets({test = [[ - -- #include - -- int add(int i, int j) { - -- return i + j; - -- } - -- PYBIND11_MODULE(example, m) { - -- m.def("add", &add, "A function which adds two numbers"); - -- } - -- ]]}, {configs = {languages = "c++11"}})) - -- end) \ No newline at end of file diff --git a/xmake.lua b/xmake.lua index dbe1d075..0b5ef55c 100644 --- a/xmake.lua +++ b/xmake.lua @@ -114,7 +114,7 @@ if is_plat("windows") or (is_plat("linux", "cross") and is_arch("aarch64", "arm6 mysql_version = "8.0.21" end -add_repositories("project-repo hikyuu_extern_libs") +add_repositories("hikyuu-repo https://gitee.com/fasiondog/hikyuu_extern_libs.git") if is_plat("windows") then if get_config("hdf5") then if is_mode("release") then