Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ add_rules("mode.debug", "mode.release")
add_requires("ixwebsocket", {configs = {use_tls = true, ssl = "mbedtls"}})
add_requires("yaml-cpp", {configs = {shared = false}})
add_requires("glog", {configs = {shared = false}})
add_requires("glib-2.0", {system = true})
add_requires("qmi-glib", {system = true})
-- Use pkg-config to locate glib and qmi-glib on the system
-- The default packages provided by xmake do not expose the
-- correct include directories for qmi-glib, which results in
-- missing headers such as <libqmi-glib.h>. Using the pkgconfig
-- variants ensures that the proper compiler and linker flags
-- are gathered from the system *.pc files.

add_requires("pkgconfig::glib-2.0")
add_requires("pkgconfig::qmi-glib")
add_requires("cppcodec", "nlohmann_json")

add_repositories("local-repo build")
Expand All @@ -25,7 +32,7 @@ target("qmi_sms_reader")
add_defines("DESKTOP_PDU")
add_files("PDUlib/src/*.cpp")

add_packages("openssl", "cppcodec", "yaml-cpp", "ixwebsocket-custom", "nlohmann_json", "glog", "glib-2.0", "qmi-glib")
add_packages("openssl", "cppcodec", "yaml-cpp", "ixwebsocket-custom", "nlohmann_json", "glog", "pkgconfig::glib-2.0", "pkgconfig::qmi-glib")
add_links("gio-2.0", "gobject-2.0", "glib-2.0")

add_ldflags("-static-libgcc", "-static-libstdc++", "-Wl,-Bstatic -lc -Wl,-Bdynamic")
Expand Down
Loading