Use mintaka shared libraries (#1)

* Add libhv and test http client

* Remove cpp-httplib

* Update premake5.lua

* Update client.cpp

* Update premake5.lua

* Add more windows libs

* Use mintaka http client
This commit is contained in:
Guilherme Werner
2023-12-08 17:03:09 -03:00
committed by GitHub
parent 7297e2e383
commit d9c7010888
46 changed files with 26003 additions and 9522 deletions

View File

@@ -10,5 +10,17 @@ int main(int argc, char **argv)
{
auto client = new TribufuClient(0, "client_secret");
std::cout << "client_id: " << client->get_id() << std::endl;
json json_obj = {
{"nome", "John"},
{"idade", 25},
{"cidade", "Exemplo"}};
std::string json_str = json_obj.dump(4);
std::cout << json_str << std::endl;
client->get_token();
return 0;
}

View File

@@ -20,7 +20,7 @@ project "example"
includedirs
{
"../include",
"../vendor",
"../vendor/*/include",
}
libdirs
@@ -75,6 +75,10 @@ project "example"
{
}
postbuildcommands
{
}
filter { "platforms:mac-*" }
system "macosx"
systemversion "10.15"
@@ -97,6 +101,10 @@ project "example"
{
}
postbuildcommands
{
}
filter { "platforms:linux-*" }
system "linux"
@@ -118,6 +126,10 @@ project "example"
{
}
postbuildcommands
{
}
filter { "platforms:android-*" }
system "android"
@@ -139,6 +151,10 @@ project "example"
{
}
postbuildcommands
{
}
filter { "platforms:ios-*" }
system "ios"
systemversion "13.0"