This commit is contained in:
Mars 2024-09-03 00:41:24 -04:00
parent dfabc25ef8
commit 5e393c716d
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
3 changed files with 7 additions and 3 deletions

View file

@ -145,6 +145,8 @@
]
++ deps;
INCLUDE_DIR = "${llvmPackages_18.libcxx.dev}/include/c++/v1";
name = "C++";
};
}

View file

@ -124,4 +124,3 @@ using isize = std::ptrdiff_t;
* @brief Represents a string.
*/
using string = std::string;

View file

@ -3,7 +3,7 @@
add_requires("fmt", "libcurl", "tomlplusplus", "yyjson")
if os.host() == "macosx" then
add_requires("Foundation", "MediaPlayer", "SystemConfiguration", "iconv")
add_requires("iconv")
elseif os.host() == "linux" or os.host() == "bsd" then
add_requires("sdbus-c++", "x11")
end
@ -23,6 +23,8 @@ add_cxxflags(
)
if os.host() == "macosx" then
add_includedirs("$(env INCLUDE_DIR)")
add_mxxflags(
"-Wno-c++20-compat",
"-Wno-c++20-extensions",
@ -64,7 +66,8 @@ end
add_packages("fmt", "libcurl", "tomlplusplus", "yyjson")
if os.host() == "macosx" then
add_packages("Foundation", "MediaPlayer", "SystemConfiguration", "iconv")
add_frameworks("Foundation", "MediaPlayer", "SystemConfiguration")
add_packages("iconv")
elseif os.host() == "linux" or os.host() == "bsd" then
add_packages("sdbus-c++", "x11")
end