-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'xmake-io:dev' into node-addon-api
- Loading branch information
Showing
109 changed files
with
1,526 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package("algo_plus") | ||
set_kind("library", {headeronly = true}) | ||
set_homepage("https://csrt-ntua.github.io/AlgoPlus") | ||
set_description("AlgoPlus is a C++17 library for complex data structures and algorithms") | ||
set_license("Apache-2.0") | ||
|
||
add_urls("https://github.com/CSRT-NTUA/AlgoPlus.git") | ||
add_versions("2024.07.02", "1287dfc5bf666bace15af9c14d03e807b71efa82") | ||
|
||
add_deps("nlohmann_json") | ||
|
||
on_install(function (package) | ||
for _, file in ipairs(os.files("src/**.h")) do | ||
io.replace(file, "../../../../third_party/json.hpp", "nlohmann/json.hpp", {plain = true}) | ||
end | ||
os.cp("src/*", package:installdir("include")) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
void test() { | ||
std::vector<std::vector<double> > data; | ||
int CLUSTERS; | ||
kmeans a(data, CLUSTERS); | ||
} | ||
]]}, {configs = {languages = "c++17"}, includes = {"machine_learning/clustering/kmeans/kmeans.h"}})) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package("aws-lc") | ||
set_homepage("https://github.com/aws/aws-lc") | ||
set_description("AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project.") | ||
|
||
add_urls("https://github.com/aws/aws-lc/archive/refs/tags/$(version).tar.gz", | ||
"https://github.com/aws/aws-lc.git") | ||
|
||
add_versions("v1.31.0", "f2dfe0ef8fe21482b6795da01a1b226f826e9a084833ff8d5371a02f9623c150") | ||
|
||
add_configs("jitter", {description = "Enable FIPS entropy source: CPU Jitter", default = false, type = "boolean"}) | ||
add_configs("tools", {description = "Build tools", default = false, type = "boolean"}) | ||
|
||
add_deps("cmake") | ||
if is_plat("windows") then | ||
add_deps("nasm") | ||
end | ||
|
||
add_links("ssl", "crypto") | ||
|
||
if is_plat("windows", "mingw") then | ||
add_syslinks("ws2_32") | ||
elseif is_plat("linux", "bsd") then | ||
add_syslinks("pthread", "dl", "m") | ||
end | ||
|
||
on_install(function (package) | ||
if package:config("shared") and package:is_plat("windows") then | ||
package:add("defines", "BORINGSSL_SHARED_LIBRARY") | ||
end | ||
|
||
local configs = { | ||
"-DBUILD_TESTING=OFF", | ||
"-DCMAKE_INSTALL_INCLUDEDIR=include", | ||
"-DBUILD_LIBSSL=ON", | ||
"-DDISABLE_GO=ON", "-DDISABLE_PERL=ON" | ||
} | ||
|
||
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")) | ||
|
||
table.insert(configs, "-DBUILD_LIBSSL=ON") | ||
table.insert(configs, "-DENABLE_FIPS_ENTROPY_CPU_JITTER=" .. (package:config("jitter") and "ON" or "OFF")) | ||
table.insert(configs, "-DBUILD_TOOL=" .. (package:config("tools") and "ON" or "OFF")) | ||
import("package.tools.cmake").install(package, configs) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:has_cfuncs("SSL_new", {includes = "openssl/ssl.h"})) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package("commata") | ||
set_kind("library", {headeronly = true}) | ||
set_homepage("https://furfurylic.github.io/commata/CommataSpecification.xml") | ||
set_description("Just another header-only C++17 CSV parser") | ||
set_license("Unlicense") | ||
|
||
add_urls("https://github.com/furfurylic/commata/archive/refs/tags/$(version)-rc.2.zip", | ||
"https://github.com/furfurylic/commata.git") | ||
add_versions("v1.0.0", "5f9ef542d10d5d04d296e609ae8931e09a157761c86630d71b2f397c6a205a75") | ||
|
||
on_install(function (package) | ||
os.cp("include", package:installdir()) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
using commata::stored_table; | ||
void test() { | ||
stored_table table; | ||
} | ||
]]}, {configs = {languages = "c++17"}, includes = "commata/stored_table.hpp"})) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package("ctpg") | ||
set_kind("library", {headeronly = true}) | ||
set_homepage("https://github.com/peter-winter/ctpg") | ||
set_description("Compile Time Parser Generator.") | ||
set_license("MIT") | ||
|
||
add_urls("https://github.com/peter-winter/ctpg/archive/refs/tags/$(version).tar.gz", | ||
"https://github.com/peter-winter/ctpg.git") | ||
|
||
add_versions("v1.3.7", "6cc7c34de4983e21070599fd5693b65ef08cd5c8f42612e43b47eda723623429") | ||
|
||
add_deps("cmake") | ||
|
||
on_install(function (package) | ||
import("package.tools.cmake").install(package, { | ||
"-DBUILD_TESTING=OFF" | ||
}) | ||
end) | ||
|
||
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
using namespace ctpg; | ||
using namespace ctpg::buffers; | ||
constexpr nterm<int> list("list"); | ||
constexpr char number_pattern[] = "[1-9][0-9]*"; | ||
constexpr regex_term<number_pattern> number("number"); | ||
void test() {} | ||
]]}, {configs = {languages = "c++17"}, includes = "ctpg/ctpg.hpp"})) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.