OLD | NEW |
---|---|
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 | |
7 { | 5 { |
8 'targets': [ | 6 'variables': { |
9 { | 7 'skia_warnings_as_errors': 0, |
10 'target_name': 'microhttpd', | 8 }, |
11 'type': 'none', | 9 'targets': [{ |
12 'variables': { | 10 'target_name': 'microhttpd', |
13 'base_dir%': '../third_party/libmicrohttpd', | 11 'type': 'static_library', |
14 'out_dir%': '<(INTERMEDIATE_DIR)/build', | 12 |
15 'src_dir%': '../third_party/externals/microhttpd', | 13 'direct_dependent_settings': { |
16 }, | 14 'include_dirs': [ '../third_party/externals/microhttpd/src/include' ] |
17 'direct_dependent_settings': { | 15 }, |
18 'include_dirs': [ | 16 'sources': [ |
19 '<(src_dir)/src/include', | 17 '../third_party/externals/microhttpd/src/microhttpd/base64.c', |
18 '../third_party/externals/microhttpd/src/microhttpd/basicauth.c', | |
19 '../third_party/externals/microhttpd/src/microhttpd/connection.c', | |
20 '../third_party/externals/microhttpd/src/microhttpd/daemon.c', | |
21 '../third_party/externals/microhttpd/src/microhttpd/digestauth.c', | |
22 '../third_party/externals/microhttpd/src/microhttpd/internal.c', | |
23 '../third_party/externals/microhttpd/src/microhttpd/md5.c', | |
24 '../third_party/externals/microhttpd/src/microhttpd/memorypool.c', | |
25 '../third_party/externals/microhttpd/src/microhttpd/postprocessor.c', | |
26 '../third_party/externals/microhttpd/src/microhttpd/reason_phrase.c', | |
27 '../third_party/externals/microhttpd/src/microhttpd/response.c', | |
28 '../third_party/externals/microhttpd/src/microhttpd/tsearch.c', | |
29 ], | |
30 'conditions': [ | |
31 ['skia_os == "linux"', { | |
32 'cflags': [ '-w' ], | |
33 'libraries': [ | |
34 '-lpthread', | |
20 ], | 35 ], |
21 # Link the built library to dependents. | 36 'include_dirs': [ |
37 '../third_party/externals/microhttpd/src/include', | |
38 '../third_party/libmicrohttpd', | |
39 ], | |
40 'defines=': [ # equals sign throws away most Skia defines (j ust noise) | |
bungeman-skia
2016/03/09 20:57:01
It should at least save some time in the future if
| |
41 "_GNU_SOURCE=1", | |
42 "BAUTH_SUPPORT=1", | |
43 "DAUTH_SUPPORT=1", | |
44 "EPOLL_SUPPORT=1", | |
45 "HAVE_ACCEPT4=1", | |
46 "HAVE_ARPA_INET_H=1", | |
47 "HAVE_CLOCK_GETTIME=1", | |
48 "HAVE_DECL_SOCK_NONBLOCK=1", | |
49 "HAVE_DECL_TCP_CORK=1", | |
50 "HAVE_DECL_TCP_NOPUSH=0", | |
51 "HAVE_DLFCN_H=1", | |
52 "HAVE_EPOLL_CREATE1=1", | |
53 "HAVE_ERRNO_H=1", | |
54 "HAVE_FCNTL_H=1", | |
55 "HAVE_FSEEKO=1", | |
56 "HAVE_GCRYPT_H=1", | |
57 "HAVE_INET6=1", | |
58 "HAVE_INTTYPES_H=1", | |
59 "HAVE_LIMITS_H=1", | |
60 "HAVE_LISTEN_SHUTDOWN=1", | |
61 "HAVE_LOCALE_H=1", | |
62 "HAVE_MATH_H=1", | |
63 "HAVE_MEMMEM=1", | |
64 "HAVE_MEMORY_H=1", | |
65 "HAVE_MESSAGES=1", | |
66 "HAVE_NETDB_H=1", | |
67 "HAVE_NETINET_IN_H=1", | |
68 "HAVE_NETINET_TCP_H=1", | |
69 "HAVE_POLL=1", | |
70 "HAVE_POLL_H=1", | |
71 "HAVE_POSTPROCESSOR=1", | |
72 "HAVE_PTHREAD_H=1", | |
73 "HAVE_PTHREAD_PRIO_INHERIT=1", | |
74 "HAVE_PTHREAD_SETNAME_NP=1", | |
75 "HAVE_SEARCH_H=1", | |
76 "HAVE_SOCK_NONBLOCK=1", | |
77 "HAVE_STDINT_H=1", | |
78 "HAVE_STDIO_H=1", | |
79 "HAVE_STDLIB_H=1", | |
80 "HAVE_STRINGS_H=1", | |
81 "HAVE_STRING_H=1", | |
82 "HAVE_SYS_MMAN_H=1", | |
83 "HAVE_SYS_MSG_H=1", | |
84 "HAVE_SYS_SELECT_H=1", | |
85 "HAVE_SYS_SOCKET_H=1", | |
86 "HAVE_SYS_STAT_H=1", | |
87 "HAVE_SYS_TIME_H=1", | |
88 "HAVE_SYS_TYPES_H=1", | |
89 "HAVE_TIME_H=1", | |
90 "HAVE_UNISTD_H=1", | |
91 "HTTPS_SUPPORT=0", | |
92 "LINUX=1", | |
93 'LT_OBJDIR=".libs/"', | |
94 "MHD_USE_POSIX_THREADS=1", | |
95 'PACKAGE="libmicrohttpd"', | |
96 'PACKAGE_BUGREPORT="libmicrohttpd@gnu.org"', | |
97 'PACKAGE_NAME="libmicrohttp"', | |
98 'PACKAGE_STRING="libmicrohttpd 0.9.42"', | |
99 'PACKAGE_TARNAME="libmicrohttpd"', | |
100 'PACKAGE_URL=""', | |
101 'PACKAGE_VERSION="0.9.42"', | |
102 "SPDY_SUPPORT=0", | |
103 "STDC_HEADERS=1", | |
104 'VERSION="0.9.42"', | |
105 '_MHD_EXTERN=__attribute__((visibility("default"))) extern', | |
106 ], | |
107 }], | |
108 ['skia_os == "mac"', { | |
109 'cflags': [ '-w' ], | |
22 'libraries': [ | 110 'libraries': [ |
23 '<(PRODUCT_DIR)/libmicrohttpd.a', | 111 '-lpthread', |
24 ], | 112 ], |
25 }, | 113 'include_dirs': [ |
bungeman-skia
2016/03/09 20:57:00
It seems these are always going to be the include_
| |
26 'actions': [ | 114 '../third_party/externals/microhttpd/src/include', |
27 { | 115 '../third_party/libmicrohttpd', |
28 'action_name': 'configure_and_build', | 116 ], |
29 'inputs': [ | 117 'defines=': [ # equals sign throws away most Skia defines (j ust noise) |
30 '<(base_dir)/build.py', | 118 "_GNU_SOURCE=1", |
31 '<(src_dir)/.git/HEAD', # This does not support local changes, but d oes support DEPS. | 119 "BAUTH_SUPPORT=1", |
32 ], | 120 "DAUTH_SUPPORT=1", |
33 'outputs': [ '<(PRODUCT_DIR)/libmicrohttpd.a' ], | 121 "EPOLL_SUPPORT=0", |
34 'action': [ | 122 "HAVE_ARPA_INET_H=1", |
35 'python', | 123 "HAVE_CLOCK_GETTIME=1", |
36 '<(base_dir)/build.py', | 124 "HAVE_DECL_SOCK_NONBLOCK=0", |
37 '--src', '<(src_dir)', | 125 "HAVE_DECL_TCP_CORK=0", |
38 '--out', '<(out_dir)', | 126 "HAVE_DECL_TCP_NOPUSH=1", |
39 '--dst', '<(PRODUCT_DIR)', | 127 "HAVE_DLFCN_H=1", |
40 ], | 128 "HAVE_ERRNO_H=1", |
41 }, | 129 "HAVE_FCNTL_H=1", |
42 ], | 130 "HAVE_FSEEKO=1", |
43 }, | 131 "HAVE_INET6=1", |
44 ], | 132 "HAVE_INTTYPES_H=1", |
133 "HAVE_LIMITS_H=1", | |
134 "HAVE_LOCALE_H=1", | |
135 "HAVE_MATH_H=1", | |
136 "HAVE_MEMMEM=1", | |
137 "HAVE_MEMORY_H=1", | |
138 "HAVE_MESSAGES=1", | |
139 "HAVE_NETDB_H=1", | |
140 "HAVE_NETINET_IN_H=1", | |
141 "HAVE_NETINET_TCP_H=1", | |
142 "HAVE_POLL=1", | |
143 "HAVE_POLL_H=1", | |
144 "HAVE_POSTPROCESSOR=1", | |
145 "HAVE_PTHREAD_H=1", | |
146 "HAVE_PTHREAD_PRIO_INHERIT=1", | |
147 "HAVE_SEARCH_H=1", | |
148 "HAVE_STDINT_H=1", | |
149 "HAVE_STDIO_H=1", | |
150 "HAVE_STDLIB_H=1", | |
151 "HAVE_STRINGS_H=1", | |
152 "HAVE_STRING_H=1", | |
153 "HAVE_SYS_MMAN_H=1", | |
154 "HAVE_SYS_MSG_H=1", | |
155 "HAVE_SYS_SELECT_H=1", | |
156 "HAVE_SYS_SOCKET_H=1", | |
157 "HAVE_SYS_STAT_H=1", | |
158 "HAVE_SYS_TIME_H=1", | |
159 "HAVE_SYS_TYPES_H=1", | |
160 "HAVE_TIME_H=1", | |
161 "HAVE_UNISTD_H=1", | |
162 "HTTPS_SUPPORT=0", | |
163 "OSX=1", | |
164 'LT_OBJDIR=".libs/"', | |
165 "MHD_USE_POSIX_THREADS=1", | |
166 'PACKAGE="libmicrohttpd"', | |
167 'PACKAGE_BUGREPORT="libmicrohttpd@gnu.org"', | |
168 'PACKAGE_NAME="libmicrohttp"', | |
169 'PACKAGE_STRING="libmicrohttpd 0.9.42"', | |
170 'PACKAGE_TARNAME="libmicrohttpd"', | |
171 'PACKAGE_URL=""', | |
172 'PACKAGE_VERSION="0.9.42"', | |
173 "SPDY_SUPPORT=0", | |
174 "STDC_HEADERS=1", | |
175 'VERSION="0.9.42"', | |
176 '_MHD_EXTERN=__attribute__((visibility("default"))) extern', | |
177 ], | |
178 }], | |
179 ] | |
180 }] | |
45 } | 181 } |
OLD | NEW |