Skip to content

Instantly share code, notes, and snippets.

@zelid
Created September 10, 2019 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zelid/4d1eba93c4b24a9ba2b0379a50da367b to your computer and use it in GitHub Desktop.
Save zelid/4d1eba93c4b24a9ba2b0379a50da367b to your computer and use it in GitHub Desktop.
Trivial xmake dependency
#include <iostream>
#include <string>
#include <zlib.h">
// #include <zlib/zlib.h>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}
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