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

Unified Diff: gyp/microhttpd.gyp

Issue 1628363002: Build and link microhttpd from gyp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: spaces Created 4 years, 11 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 | « no previous file | gyp/skiaserve.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/microhttpd.gyp
diff --git a/gyp/microhttpd.gyp b/gyp/microhttpd.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..58ea0baa74acbda99b9fa72111f4ac65d687b6b4
--- /dev/null
+++ b/gyp/microhttpd.gyp
@@ -0,0 +1,43 @@
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+# A simple gyp file to generate microhttpd for internal purposes
+# most of the work(configure and make) is performed in a python script
+{
+ 'targets': [
+ {
+ 'target_name': 'microhttpd',
+ 'type': 'static_library',
+ 'variables': {
+ 'base_dir%': '../third_party/libmicrohttpd',
+ 'src_dir%': '../third_party/externals/microhttpd',
+ },
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(src_dir)/src/include',
+ ],
+ # for reasons I can't quite fathom, we need the below line to trigger
+ # a link
+ 'libraries': [
+ 'libmicrohttpd.a',
+ ],
+ },
+ 'actions': [
+ {
+ 'action_name': 'configure_and_build',
+ 'inputs': [
+ '<(PRODUCT_DIR)/',
+ ],
+ 'outputs': [ '<(PRODUCT_DIR)/libmicrohttpd.a' ],
+ 'action': [
+ 'python',
+ '<(base_dir)/build.py',
+ '--src', '<(src_dir)',
+ '--dst', '<(PRODUCT_DIR)',
+ ],
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « no previous file | gyp/skiaserve.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698