Compare commits
26 Commits
7053db117d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 028517dd50 | |||
| 548222e930 | |||
|
722565d935
|
|||
| 86d4a525d7 | |||
| 426dcb4f3d | |||
| 4d0a7b8f1d | |||
| 8fd025d6ee | |||
| 4963ee701e | |||
| 662db0c0ad | |||
| 1ca8105ad1 | |||
| d317ef5b5f | |||
| 0a8a565077 | |||
| 827b6e960d | |||
| c4d2dbb976 | |||
| f2003faa09 | |||
| 59df1e4984 | |||
| 6f0b176838 | |||
| a985595e64 | |||
| bf329eb34c | |||
| a1e81ace5e | |||
| fe27bfe039 | |||
| 13263bac0e | |||
| 7323241cb7 | |||
| 9d95ee8377 | |||
| c4677cf829 | |||
| 3d89a5c7e3 |
22
packages/a/analyzersdk/xmake.lua
Normal file
22
packages/a/analyzersdk/xmake.lua
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
package("analyzersdk")
|
||||||
|
set_homepage("https://github.com/saleae/AnalyzerSDK")
|
||||||
|
set_description("Logic 1 & Logic 2 Analyzer SDK")
|
||||||
|
|
||||||
|
add_urls("https://github.com/saleae/AnalyzerSDK.git")
|
||||||
|
add_versions("2023.07.07", "114a3b8306e6a5008453546eda003db15b002027")
|
||||||
|
|
||||||
|
on_install("linux", "windows", "macosx", function (package)
|
||||||
|
local baseLibPath = "lib_x86_64"
|
||||||
|
if is_arch("arm64") then
|
||||||
|
baseLibPath = "lib_arm64"
|
||||||
|
end
|
||||||
|
if is_plat("linux") then
|
||||||
|
os.cp(path.join(baseLibPath, "libAnalyzer.so"), package:installdir("lib"))
|
||||||
|
elseif is_plat("macosx") then
|
||||||
|
os.cp(path.join(baseLibPath, "libAnalyzer.dylib"), package:installdir("lib"))
|
||||||
|
else
|
||||||
|
os.cp(path.join(baseLibPath, "Analyzer.dll"), package:installdir("bin"))
|
||||||
|
os.cp(path.join(baseLibPath, "Analyzer.lib"), package:installdir("lib"))
|
||||||
|
end
|
||||||
|
os.cp("include/*", package:installdir("include"))
|
||||||
|
end)
|
||||||
@@ -2,49 +2,33 @@ package("splib")
|
|||||||
set_description("The splib package")
|
set_description("The splib package")
|
||||||
|
|
||||||
add_urls("https://git.ale-pri.com/Persson-dev/Simple-Protocol-Lib.git")
|
add_urls("https://git.ale-pri.com/Persson-dev/Simple-Protocol-Lib.git")
|
||||||
|
|
||||||
|
add_versions("v2.3.2", "14d7f045cea80f1b987bd6952438ea4c8412d924")
|
||||||
|
add_versions("v2.3.1", "a60f56e248e05dde07132889d08634702ff3835d")
|
||||||
|
add_versions("v2.3.0", "75bae99daa8c31ffb6ffaf62b5d7327125a71085")
|
||||||
|
add_versions("v2.2.2", "90ae25bc8ed6001d77c66957fc90a9ff175ac125")
|
||||||
|
add_versions("v2.2.1", "0c82680af02aab6fad1f339fdf1d62083bc3a2bf")
|
||||||
|
add_versions("v2.2.0", "7eb96163ab104e353a928c48f9052a6d3fa5da18")
|
||||||
|
add_versions("v2.1.0", "9374332cd2846d4e6bdab45760ac25ebd2cc4229")
|
||||||
|
add_versions("v2.0.2", "bce37f59df17c2381057086e581b214b2d165c41")
|
||||||
|
add_versions("v2.0.1", "a1a41768016dc9dfac0ddc1122eaf06d2f9ebce5")
|
||||||
|
add_versions("v2.0.0", "5e9a0a9bae5bde24b6781d7096cdda6721b15a93")
|
||||||
|
add_versions("v1.0.4", "77356ce7497dffc382d113a73b5c2e047e76a189")
|
||||||
|
add_versions("v1.0.3", "4a7eb7a1df3076529332c1f0d0cfb4b862f47b3d")
|
||||||
|
add_versions("v1.0.2", "2acbd76c5a08b2400e64f1e507e62c9bd150392d")
|
||||||
|
add_versions("v1.0.1", "f145716cf6ed6c863dd5267e525842e8970833de")
|
||||||
add_versions("v1.0.0", "db0c5f324570bfa071e182537b9a96664770446a")
|
add_versions("v1.0.0", "db0c5f324570bfa071e182537b9a96664770446a")
|
||||||
|
|
||||||
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean"})
|
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean"})
|
||||||
|
|
||||||
|
|
||||||
on_load(function (package)
|
on_load(function (package)
|
||||||
|
if package:version():ge("2.0.0") then
|
||||||
|
package:add("deps", "boost_pfr")
|
||||||
|
end
|
||||||
package:set("installdir", path.join(os.scriptdir(), package:plat(), package:arch(), package:mode()))
|
package:set("installdir", path.join(os.scriptdir(), package:plat(), package:arch(), package:mode()))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
on_test(function (package)
|
|
||||||
assert(package:check_cxxsnippets({test = [[
|
|
||||||
#include <sp/default/DefaultPacket.h>
|
|
||||||
#include <sp/protocol/Field.h>
|
|
||||||
#include <sp/protocol/MessageBase.h>
|
|
||||||
|
|
||||||
enum PacketId {
|
|
||||||
KeepAlive = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
enum class KeepAliveFieldsE {
|
|
||||||
KeepAliveId = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
using KeepAliveFields = std::tuple<
|
|
||||||
std::uint64_t //<- KeepAliveId
|
|
||||||
>;
|
|
||||||
|
|
||||||
DeclarePacket(KeepAlive){
|
|
||||||
public:
|
|
||||||
PacketConstructor(KeepAlive)
|
|
||||||
|
|
||||||
std::uint64_t GetKeepAliveId() const {
|
|
||||||
return GetField<KeepAliveFieldsE, KeepAliveFieldsE::KeepAliveId>();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
using AllPackets = std::tuple<KeepAlivePacket>;
|
|
||||||
|
|
||||||
#include <sp/default/DefaultPacketHandler.h>
|
|
||||||
#include <sp/default/DefaultPacketFactory.h>
|
|
||||||
]]}, {configs = {languages = "c++17"}}))
|
|
||||||
end)
|
|
||||||
|
|
||||||
on_install(function (package)
|
on_install(function (package)
|
||||||
import("package.tools.xmake").install(package)
|
import("package.tools.xmake").install(package)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user