Created
September 10, 2019 13:00
-
-
Save zelid/4d1eba93c4b24a9ba2b0379a50da367b to your computer and use it in GitHub Desktop.
Trivial xmake dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <zlib.h"> | |
// #include <zlib/zlib.h> | |
using namespace std; | |
int main() | |
{ | |
cout << "Hello, World!"; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set_project("tubi") | |
set_warnings("all") | |
set_languages("c99", "cxx20") | |
add_rules("mode.debug", "mode.release") | |
if is_kind("static") then | |
add_ldflags("-static", "-lpthread", {force = true}) | |
end | |
add_repositories("tubi-repo repo") | |
add_requires("zlib", {system = false}) | |
target("hello") | |
add_packages("zlib") | |
set_kind("binary") | |
add_files("src/*.cpp") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment