blegh
This commit is contained in:
parent
dfabc25ef8
commit
5e393c716d
|
@ -145,6 +145,8 @@
|
||||||
]
|
]
|
||||||
++ deps;
|
++ deps;
|
||||||
|
|
||||||
|
INCLUDE_DIR = "${llvmPackages_18.libcxx.dev}/include/c++/v1";
|
||||||
|
|
||||||
name = "C++";
|
name = "C++";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,4 +124,3 @@ using isize = std::ptrdiff_t;
|
||||||
* @brief Represents a string.
|
* @brief Represents a string.
|
||||||
*/
|
*/
|
||||||
using string = std::string;
|
using string = std::string;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
add_requires("fmt", "libcurl", "tomlplusplus", "yyjson")
|
add_requires("fmt", "libcurl", "tomlplusplus", "yyjson")
|
||||||
|
|
||||||
if os.host() == "macosx" then
|
if os.host() == "macosx" then
|
||||||
add_requires("Foundation", "MediaPlayer", "SystemConfiguration", "iconv")
|
add_requires("iconv")
|
||||||
elseif os.host() == "linux" or os.host() == "bsd" then
|
elseif os.host() == "linux" or os.host() == "bsd" then
|
||||||
add_requires("sdbus-c++", "x11")
|
add_requires("sdbus-c++", "x11")
|
||||||
end
|
end
|
||||||
|
@ -23,6 +23,8 @@ add_cxxflags(
|
||||||
)
|
)
|
||||||
|
|
||||||
if os.host() == "macosx" then
|
if os.host() == "macosx" then
|
||||||
|
add_includedirs("$(env INCLUDE_DIR)")
|
||||||
|
|
||||||
add_mxxflags(
|
add_mxxflags(
|
||||||
"-Wno-c++20-compat",
|
"-Wno-c++20-compat",
|
||||||
"-Wno-c++20-extensions",
|
"-Wno-c++20-extensions",
|
||||||
|
@ -64,7 +66,8 @@ end
|
||||||
add_packages("fmt", "libcurl", "tomlplusplus", "yyjson")
|
add_packages("fmt", "libcurl", "tomlplusplus", "yyjson")
|
||||||
|
|
||||||
if os.host() == "macosx" then
|
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
|
elseif os.host() == "linux" or os.host() == "bsd" then
|
||||||
add_packages("sdbus-c++", "x11")
|
add_packages("sdbus-c++", "x11")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue