Ai
4 Star 0 Fork 0

狗熊/common-function-and-algorithm-SDK

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
xmake.lua 987 Bytes
Copy Edit Raw Blame History
狗熊 authored 2023-10-18 21:45 +08:00 . 测试
set_xmakever("2.8.0")
set_project("common sdk")
set_version("v2.2-1-g4be4809")
-- 定义 C 语言编译器和链接器
set_languages("c99")
set_toolchains("gcc")
-- 判断平台
if is_plat("windows") then
-- Windows 平台下的编译逻辑
add_defines("WINDOWS_PLATFORM")
elseif is_plat("linux") then
-- Linux 平台下的编译逻辑
add_defines("UNIX_PLATFORM")
end
target("common_shared")
set_kind("shared")
add_files("src/*.c")
add_includedirs("include/")
set_filename("libcommon.so")
on_load(function (target)
if is_plat("macosx") then
-- macOS 不支持
raise("NOT SUPPORT")
end
end)
target_end()
target("common_static")
set_kind("static")
add_files("src/*.c")
add_includedirs("include/")
set_filename("libcommon.a")
on_load(function (target)
if is_plat("macosx") then
-- macOS 不支持
raise("NOT SUPPORT")
end
end)
target_end()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/bear_114514/common-function-and-algorithm-sdk.git
git@gitee.com:bear_114514/common-function-and-algorithm-sdk.git
bear_114514
common-function-and-algorithm-sdk
common-function-and-algorithm-SDK
master

Search