Air780EDemo/app/xmake.lua
2023-12-19 17:57:43 +08:00

27 lines
855 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local TARGET_NAME = "Air780E"
local LIB_DIR = "$(buildir)/".. TARGET_NAME .. "/"
local LIB_NAME = "lib" .. TARGET_NAME .. ".a "
includes(SDK_TOP.."/luatos_lwip_socket")
includes(SDK_TOP.."/thirdparty/libhttp")
includes(SDK_TOP .. "/thirdparty/libemqtt")
target(TARGET_NAME)
set_kind("static")
set_targetdir(LIB_DIR)
--加入代码和头文件
add_includedirs("./",{public = true})
add_files("./*.c",{public = true})
add_files("./*.cpp",{public = true})
add_deps("luatos_lwip_socket") --socket依赖
add_deps("libhttp") --加入HTTP客户端支持自动加载了socket依赖
add_deps("libemqtt") --加入MQTT支持
--可以继续增加add_includedirs和add_files
--自动链接
LIB_USER = LIB_USER .. SDK_TOP .. "/".. LIB_DIR .. LIB_NAME .. " "
--甚至可以加入自己的库
target_end()