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

Side by Side Diff: gyp/microhttpd.gyp

Issue 1781853002: Revert of Create explicit microhttpd.gyp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/most.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # A simple gyp file to generate microhttpd for internal purposes
6 # most of the work(configure and make) is performed in a python script
5 { 7 {
6 'variables': { 8 'targets': [
7 'skia_warnings_as_errors': 0, 9 {
8 }, 10 'target_name': 'microhttpd',
9 'targets': [{ 11 'type': 'none',
10 'target_name': 'microhttpd', 12 'variables': {
11 'type': 'static_library', 13 'base_dir%': '../third_party/libmicrohttpd',
12 14 'out_dir%': '<(INTERMEDIATE_DIR)/build',
13 'direct_dependent_settings': { 15 'src_dir%': '../third_party/externals/microhttpd',
14 'include_dirs': [ '../third_party/externals/microhttpd/src/include' ] 16 },
17 'direct_dependent_settings': {
18 'include_dirs': [
19 '<(src_dir)/src/include',
20 ],
21 # Link the built library to dependents.
22 'libraries': [
23 '<(PRODUCT_DIR)/libmicrohttpd.a',
24 ],
25 },
26 'actions': [
27 {
28 'action_name': 'configure_and_build',
29 'inputs': [
30 '<(base_dir)/build.py',
31 '<(src_dir)/.git/HEAD', # This does not support local changes, but d oes support DEPS.
32 ],
33 'outputs': [ '<(PRODUCT_DIR)/libmicrohttpd.a' ],
34 'action': [
35 'python',
36 '<(base_dir)/build.py',
37 '--src', '<(src_dir)',
38 '--out', '<(out_dir)',
39 '--dst', '<(PRODUCT_DIR)',
40 ],
41 },
42 ],
15 }, 43 },
16 'include_dirs': [ 44 ],
17 '../third_party/externals/microhttpd/src/include',
18 '../third_party/libmicrohttpd',
19 ],
20 'sources': [
21 '../third_party/externals/microhttpd/src/microhttpd/base64.c',
22 '../third_party/externals/microhttpd/src/microhttpd/basicauth.c',
23 '../third_party/externals/microhttpd/src/microhttpd/connection.c',
24 '../third_party/externals/microhttpd/src/microhttpd/daemon.c',
25 '../third_party/externals/microhttpd/src/microhttpd/digestauth.c',
26 '../third_party/externals/microhttpd/src/microhttpd/internal.c',
27 '../third_party/externals/microhttpd/src/microhttpd/md5.c',
28 '../third_party/externals/microhttpd/src/microhttpd/memorypool.c',
29 '../third_party/externals/microhttpd/src/microhttpd/postprocessor.c',
30 '../third_party/externals/microhttpd/src/microhttpd/reason_phrase.c',
31 '../third_party/externals/microhttpd/src/microhttpd/response.c',
32 '../third_party/externals/microhttpd/src/microhttpd/tsearch.c',
33 ],
34 'conditions': [
35 # For each platform, run configure and scrape the generated MHD_config.h
36 # to get a list of platform specific defines
37 # the options to use for configure are:
38 # --disable-doc --disable-exapmles --enable-https=no --disable-curl
39 # --enable-spdy=no --enable-shared=no
40 ['skia_os == "linux"', {
41 'cflags': [ '-w' ],
42 'libraries': [
43 '-lpthread',
44 ],
45 'defines=': [ # equals sign throws away most Skia defines (j ust noise)
46 "_GNU_SOURCE=1",
47 "BAUTH_SUPPORT=1",
48 "DAUTH_SUPPORT=1",
49 "EPOLL_SUPPORT=1",
50 "HAVE_ACCEPT4=1",
51 "HAVE_ARPA_INET_H=1",
52 "HAVE_CLOCK_GETTIME=1",
53 "HAVE_DECL_SOCK_NONBLOCK=1",
54 "HAVE_DECL_TCP_CORK=1",
55 "HAVE_DECL_TCP_NOPUSH=0",
56 "HAVE_DLFCN_H=1",
57 "HAVE_EPOLL_CREATE1=1",
58 "HAVE_ERRNO_H=1",
59 "HAVE_FCNTL_H=1",
60 "HAVE_FSEEKO=1",
61 "HAVE_GCRYPT_H=1",
62 "HAVE_INET6=1",
63 "HAVE_INTTYPES_H=1",
64 "HAVE_LIMITS_H=1",
65 "HAVE_LISTEN_SHUTDOWN=1",
66 "HAVE_LOCALE_H=1",
67 "HAVE_MATH_H=1",
68 "HAVE_MEMMEM=1",
69 "HAVE_MEMORY_H=1",
70 "HAVE_MESSAGES=1",
71 "HAVE_NETDB_H=1",
72 "HAVE_NETINET_IN_H=1",
73 "HAVE_NETINET_TCP_H=1",
74 "HAVE_POLL=1",
75 "HAVE_POLL_H=1",
76 "HAVE_POSTPROCESSOR=1",
77 "HAVE_PTHREAD_H=1",
78 "HAVE_PTHREAD_PRIO_INHERIT=1",
79 "HAVE_PTHREAD_SETNAME_NP=1",
80 "HAVE_SEARCH_H=1",
81 "HAVE_SOCK_NONBLOCK=1",
82 "HAVE_STDINT_H=1",
83 "HAVE_STDIO_H=1",
84 "HAVE_STDLIB_H=1",
85 "HAVE_STRINGS_H=1",
86 "HAVE_STRING_H=1",
87 "HAVE_SYS_MMAN_H=1",
88 "HAVE_SYS_MSG_H=1",
89 "HAVE_SYS_SELECT_H=1",
90 "HAVE_SYS_SOCKET_H=1",
91 "HAVE_SYS_STAT_H=1",
92 "HAVE_SYS_TIME_H=1",
93 "HAVE_SYS_TYPES_H=1",
94 "HAVE_TIME_H=1",
95 "HAVE_UNISTD_H=1",
96 "HTTPS_SUPPORT=0",
97 "LINUX=1",
98 'LT_OBJDIR=".libs/"',
99 "MHD_USE_POSIX_THREADS=1",
100 'PACKAGE="libmicrohttpd"',
101 'PACKAGE_BUGREPORT="libmicrohttpd@gnu.org"',
102 'PACKAGE_NAME="libmicrohttp"',
103 'PACKAGE_STRING="libmicrohttpd 0.9.42"',
104 'PACKAGE_TARNAME="libmicrohttpd"',
105 'PACKAGE_URL=""',
106 'PACKAGE_VERSION="0.9.42"',
107 "SPDY_SUPPORT=0",
108 "STDC_HEADERS=1",
109 'VERSION="0.9.42"',
110 '_MHD_EXTERN=__attribute__((visibility("default"))) extern',
111 ],
112 }],
113 ['skia_os == "mac"', {
114 'cflags': [ '-w' ],
115 'libraries': [
116 '-lpthread',
117 ],
118 'defines=': [ # equals sign throws away most Skia defines (j ust noise)
119 "_GNU_SOURCE=1",
120 "BAUTH_SUPPORT=1",
121 "DAUTH_SUPPORT=1",
122 "EPOLL_SUPPORT=0",
123 "HAVE_ARPA_INET_H=1",
124 "HAVE_CLOCK_GETTIME=1",
125 "HAVE_DECL_SOCK_NONBLOCK=0",
126 "HAVE_DECL_TCP_CORK=0",
127 "HAVE_DECL_TCP_NOPUSH=1",
128 "HAVE_DLFCN_H=1",
129 "HAVE_ERRNO_H=1",
130 "HAVE_FCNTL_H=1",
131 "HAVE_FSEEKO=1",
132 "HAVE_INET6=1",
133 "HAVE_INTTYPES_H=1",
134 "HAVE_LIMITS_H=1",
135 "HAVE_LOCALE_H=1",
136 "HAVE_MATH_H=1",
137 "HAVE_MEMMEM=1",
138 "HAVE_MEMORY_H=1",
139 "HAVE_MESSAGES=1",
140 "HAVE_NETDB_H=1",
141 "HAVE_NETINET_IN_H=1",
142 "HAVE_NETINET_TCP_H=1",
143 "HAVE_POLL=1",
144 "HAVE_POLL_H=1",
145 "HAVE_POSTPROCESSOR=1",
146 "HAVE_PTHREAD_H=1",
147 "HAVE_PTHREAD_PRIO_INHERIT=1",
148 "HAVE_SEARCH_H=1",
149 "HAVE_STDINT_H=1",
150 "HAVE_STDIO_H=1",
151 "HAVE_STDLIB_H=1",
152 "HAVE_STRINGS_H=1",
153 "HAVE_STRING_H=1",
154 "HAVE_SYS_MMAN_H=1",
155 "HAVE_SYS_MSG_H=1",
156 "HAVE_SYS_SELECT_H=1",
157 "HAVE_SYS_SOCKET_H=1",
158 "HAVE_SYS_STAT_H=1",
159 "HAVE_SYS_TIME_H=1",
160 "HAVE_SYS_TYPES_H=1",
161 "HAVE_TIME_H=1",
162 "HAVE_UNISTD_H=1",
163 "HTTPS_SUPPORT=0",
164 "OSX=1",
165 'LT_OBJDIR=".libs/"',
166 "MHD_USE_POSIX_THREADS=1",
167 'PACKAGE="libmicrohttpd"',
168 'PACKAGE_BUGREPORT="libmicrohttpd@gnu.org"',
169 'PACKAGE_NAME="libmicrohttp"',
170 'PACKAGE_STRING="libmicrohttpd 0.9.42"',
171 'PACKAGE_TARNAME="libmicrohttpd"',
172 'PACKAGE_URL=""',
173 'PACKAGE_VERSION="0.9.42"',
174 "SPDY_SUPPORT=0",
175 "STDC_HEADERS=1",
176 'VERSION="0.9.42"',
177 '_MHD_EXTERN=__attribute__((visibility("default"))) extern',
178 ],
179 }],
180 ]
181 }]
182 } 45 }
OLDNEW
« no previous file with comments | « gyp/common_variables.gypi ('k') | gyp/most.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698