mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-20 18:05:54 +08:00
18 lines
635 B
Lua
18 lines
635 B
Lua
|
|
target("sntp")
|
|
local LIB_DIR = "$(buildir)/sntp/"
|
|
set_kind("static")
|
|
set_targetdir(LIB_DIR)
|
|
|
|
--加入代码和头文件
|
|
add_includedirs("./",{public = true})
|
|
add_files("./*.c",{public = true})
|
|
--路径可以随便写,可以加任意路径的代码,下面代码等效上方代码
|
|
-- add_includedirs(SDK_TOP .. "project/" .. TARGET_NAME .. "/inc",{public = true})
|
|
-- add_files(SDK_TOP .. "project/" .. TARGET_NAME .. "/src/*.c",{public = true})
|
|
|
|
--可以继续增加add_includedirs和add_files
|
|
--自动链接
|
|
LIB_USER = LIB_USER .. SDK_TOP .. LIB_DIR .. "libsntp.a "
|
|
target_end()
|