Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: third_party/libmicrohttpd/BUILD.gn

Issue 2367513002: GN: build skiaserve (Closed)
Patch Set: sys/socket Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | third_party/libmicrohttpd/build.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libmicrohttpd/BUILD.gn
diff --git a/third_party/libmicrohttpd/BUILD.gn b/third_party/libmicrohttpd/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..723807723f636f6fbc1fee306231c3191ac3db11
--- /dev/null
+++ b/third_party/libmicrohttpd/BUILD.gn
@@ -0,0 +1,36 @@
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+declare_args() {
+}
+
+import("../third_party.gni")
+
+third_party("libmicrohttpd") {
+ public_include_dirs = [ "../externals/microhttpd/src/include" ]
+
+ include_dirs = [ "." ]
+ sources = [
+ "../externals/microhttpd/src/microhttpd/base64.c",
+ "../externals/microhttpd/src/microhttpd/connection.c",
+ "../externals/microhttpd/src/microhttpd/daemon.c",
+ "../externals/microhttpd/src/microhttpd/internal.c",
+ "../externals/microhttpd/src/microhttpd/memorypool.c",
+ "../externals/microhttpd/src/microhttpd/postprocessor.c",
+ "../externals/microhttpd/src/microhttpd/reason_phrase.c",
+ "../externals/microhttpd/src/microhttpd/response.c",
+ ]
+
+ defines = [ "DAUTH_SUPPORT=1" ]
+
+ if (!is_win) {
+ defines += [
+ "HAVE_NETINET_IN_H=1",
+ "HAVE_PTHREAD_H=1",
+ "HAVE_SYS_SOCKET_H=1",
+ "MHD_USE_POSIX_THREADS=1",
+ ]
+ }
+}
« no previous file with comments | « BUILD.gn ('k') | third_party/libmicrohttpd/build.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698