diff options
author | mtklein <mtklein@chromium.org> | 2016-09-22 11:51:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-22 11:51:24 -0700 |
commit | ecbc526418414f6f9d29b176ea0ad8037fff2e2d (patch) | |
tree | d30b81603e03e85738aa4faa867a4cc165908ae4 /tools/skiaserve | |
parent | bac104605ef3d9a8ed0022694990f00518b809e9 (diff) |
GN: build skiaserve
I trimmed the libmicrohttpd sources and defines down to the minimum needed to build and run. This builds and runs on Linux and Android for me.
Request.h was missing an include for SkTypes.h, which supplies the default for SK_GPU_SUPPORTED if not otherwise defined.
To build on Android, exit() -> _exit().
build.py was unused.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2367513002
NOTREECHECKS=true
Review-Url: https://codereview.chromium.org/2367513002
Diffstat (limited to 'tools/skiaserve')
-rw-r--r-- | tools/skiaserve/Request.h | 2 | ||||
-rw-r--r-- | tools/skiaserve/urlhandlers/QuitHandler.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/skiaserve/Request.h b/tools/skiaserve/Request.h index 7a5daf55d1..0b6ed3b467 100644 --- a/tools/skiaserve/Request.h +++ b/tools/skiaserve/Request.h @@ -8,6 +8,8 @@ #ifndef Request_DEFINED #define Request_DEFINED +#include "SkTypes.h" + #if SK_SUPPORT_GPU #include "GrContextFactory.h" #endif diff --git a/tools/skiaserve/urlhandlers/QuitHandler.cpp b/tools/skiaserve/urlhandlers/QuitHandler.cpp index a9196a0c69..fa8045cda9 100644 --- a/tools/skiaserve/urlhandlers/QuitHandler.cpp +++ b/tools/skiaserve/urlhandlers/QuitHandler.cpp @@ -22,5 +22,5 @@ bool QuitHandler::canHandle(const char* method, const char* url) { int QuitHandler::handle(Request* request, MHD_Connection* connection, const char* url, const char* method, const char* upload_data, size_t* upload_data_size) { - exit(0); + _exit(0); } |