|
1 # This Source Code Form is subject to the terms of the Mozilla Public |
|
2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
|
4 # |
|
5 # nrappkit.gyp |
|
6 # |
|
7 # |
|
8 { |
|
9 'targets' : [ |
|
10 { |
|
11 'target_name' : 'nrappkit', |
|
12 'type' : 'static_library', |
|
13 |
|
14 'include_dirs' : [ |
|
15 # EXTERNAL |
|
16 # INTERNAL |
|
17 'src/event', |
|
18 'src/log', |
|
19 'src/port/generic/include', |
|
20 'src/registry', |
|
21 'src/share', |
|
22 'src/stats', |
|
23 'src/util', |
|
24 'src/util/libekr', |
|
25 ], |
|
26 |
|
27 'sources' : [ |
|
28 # Shared |
|
29 # './src/share/nr_api.h', |
|
30 './src/share/nr_common.h', |
|
31 # './src/share/nr_dynlib.h', |
|
32 './src/share/nr_reg_keys.h', |
|
33 # './src/share/nr_startup.c', |
|
34 # './src/share/nr_startup.h', |
|
35 # './src/share/nrappkit_static_plugins.c', |
|
36 './src/port/generic/include' |
|
37 |
|
38 # libekr |
|
39 './src/util/libekr/assoc.h', |
|
40 './src/util/libekr/debug.c', |
|
41 './src/util/libekr/debug.h', |
|
42 './src/util/libekr/r_assoc.c', |
|
43 './src/util/libekr/r_assoc.h', |
|
44 # './src/util/libekr/r_assoc_test.c', |
|
45 './src/util/libekr/r_bitfield.c', |
|
46 './src/util/libekr/r_bitfield.h', |
|
47 './src/util/libekr/r_common.h', |
|
48 './src/util/libekr/r_crc32.c', |
|
49 './src/util/libekr/r_crc32.h', |
|
50 './src/util/libekr/r_data.c', |
|
51 './src/util/libekr/r_data.h', |
|
52 './src/util/libekr/r_defaults.h', |
|
53 './src/util/libekr/r_errors.c', |
|
54 './src/util/libekr/r_errors.h', |
|
55 './src/util/libekr/r_includes.h', |
|
56 './src/util/libekr/r_list.c', |
|
57 './src/util/libekr/r_list.h', |
|
58 './src/util/libekr/r_macros.h', |
|
59 './src/util/libekr/r_memory.c', |
|
60 './src/util/libekr/r_memory.h', |
|
61 './src/util/libekr/r_replace.c', |
|
62 './src/util/libekr/r_thread.h', |
|
63 './src/util/libekr/r_time.c', |
|
64 './src/util/libekr/r_time.h', |
|
65 './src/util/libekr/r_types.h', |
|
66 './src/util/libekr/debug.c', |
|
67 './src/util/libekr/debug.h', |
|
68 |
|
69 # Utilities |
|
70 './src/util/byteorder.c', |
|
71 './src/util/byteorder.h', |
|
72 #'./src/util/escape.c', |
|
73 #'./src/util/escape.h', |
|
74 #'./src/util/filename.c', |
|
75 #'./src/util/getopt.c', |
|
76 #'./src/util/getopt.h', |
|
77 './src/util/hex.c', |
|
78 './src/util/hex.h', |
|
79 #'./src/util/mem_util.c', |
|
80 #'./src/util/mem_util.h', |
|
81 #'./src/util/mutex.c', |
|
82 #'./src/util/mutex.h', |
|
83 './src/util/p_buf.c', |
|
84 './src/util/p_buf.h', |
|
85 #'./src/util/ssl_util.c', |
|
86 #'./src/util/ssl_util.h', |
|
87 './src/util/util.c', |
|
88 './src/util/util.h', |
|
89 #'./src/util/util_db.c', |
|
90 #'./src/util/util_db.h', |
|
91 |
|
92 # Events |
|
93 # './src/event/async_timer.c', |
|
94 './src/event/async_timer.h', |
|
95 # './src/event/async_wait.c', |
|
96 './src/event/async_wait.h', |
|
97 './src/event/async_wait_int.h', |
|
98 |
|
99 # Logging |
|
100 './src/log/r_log.c', |
|
101 './src/log/r_log.h', |
|
102 #'./src/log/r_log_plugin.c', |
|
103 |
|
104 # Registry |
|
105 './src/registry/c2ru.c', |
|
106 './src/registry/c2ru.h', |
|
107 #'./src/registry/mod_registry/mod_registry.c', |
|
108 #'./src/registry/nrregctl.c', |
|
109 #'./src/registry/nrregistryctl.c', |
|
110 './src/registry/registry.c', |
|
111 './src/registry/registry.h', |
|
112 './src/registry/registry_int.h', |
|
113 './src/registry/registry_local.c', |
|
114 #'./src/registry/registry_plugin.c', |
|
115 './src/registry/registry_vtbl.h', |
|
116 './src/registry/registrycb.c', |
|
117 #'./src/registry/registryd.c', |
|
118 #'./src/registry/regrpc.h', |
|
119 #'./src/registry/regrpc_client.c', |
|
120 #'./src/registry/regrpc_client.h', |
|
121 #'./src/registry/regrpc_client_cb.c', |
|
122 #'./src/registry/regrpc_clnt.c', |
|
123 #'./src/registry/regrpc_server.c', |
|
124 #'./src/registry/regrpc_svc.c', |
|
125 #'./src/registry/regrpc_xdr.c', |
|
126 |
|
127 # Statistics |
|
128 #'./src/stats/nrstats.c', |
|
129 #'./src/stats/nrstats.h', |
|
130 #'./src/stats/nrstats_app.c', |
|
131 #'./src/stats/nrstats_int.h', |
|
132 #'./src/stats/nrstats_memory.c', |
|
133 ], |
|
134 |
|
135 'defines' : [ |
|
136 'SANITY_CHECKS', |
|
137 'R_PLATFORM_INT_TYPES=<stdint.h>', |
|
138 'R_DEFINED_INT2=int16_t', |
|
139 'R_DEFINED_UINT2=uint16_t', |
|
140 'R_DEFINED_INT4=int32_t', |
|
141 'R_DEFINED_UINT4=uint32_t', |
|
142 'R_DEFINED_INT8=int64_t', |
|
143 'R_DEFINED_UINT8=uint64_t', |
|
144 ], |
|
145 |
|
146 'conditions' : [ |
|
147 ## Mac and BSDs |
|
148 [ 'OS == "mac"', { |
|
149 'defines' : [ |
|
150 'DARWIN', |
|
151 ], |
|
152 }], |
|
153 [ 'os_bsd == 1', { |
|
154 'defines' : [ |
|
155 'BSD', |
|
156 ], |
|
157 }], |
|
158 [ 'OS == "mac" or os_bsd == 1', { |
|
159 'cflags_mozilla': [ |
|
160 '-Wall', |
|
161 '-Wno-parentheses', |
|
162 '-Wno-strict-prototypes', |
|
163 '-Wmissing-prototypes', |
|
164 ], |
|
165 'defines' : [ |
|
166 'HAVE_LIBM=1', |
|
167 'HAVE_STRDUP=1', |
|
168 'HAVE_STRLCPY=1', |
|
169 'HAVE_SYS_TIME_H=1', |
|
170 'HAVE_VFPRINTF=1', |
|
171 'NEW_STDIO' |
|
172 'RETSIGTYPE=void', |
|
173 'TIME_WITH_SYS_TIME_H=1', |
|
174 '__UNUSED__=__attribute__((unused))', |
|
175 ], |
|
176 |
|
177 'include_dirs': [ |
|
178 'src/port/darwin/include' |
|
179 ], |
|
180 |
|
181 'sources': [ |
|
182 './src/port/darwin/include/csi_platform.h', |
|
183 ], |
|
184 }], |
|
185 |
|
186 ## Win |
|
187 [ 'OS == "win"', { |
|
188 'defines' : [ |
|
189 'WIN', |
|
190 '__UNUSED__=', |
|
191 'HAVE_STRDUP=1', |
|
192 'NO_REG_RPC' |
|
193 ], |
|
194 |
|
195 'include_dirs': [ |
|
196 'src/port/win32/include' |
|
197 ], |
|
198 |
|
199 'sources': [ |
|
200 './src/port/win32/include/csi_platform.h', |
|
201 ], |
|
202 }], |
|
203 ## Linux |
|
204 [ '(OS == "linux") or (OS == "android")', { |
|
205 'cflags_mozilla': [ |
|
206 '-Wall', |
|
207 '-Wno-parentheses', |
|
208 '-Wno-strict-prototypes', |
|
209 '-Wmissing-prototypes', |
|
210 ], |
|
211 'defines' : [ |
|
212 'LINUX', |
|
213 'HAVE_LIBM=1', |
|
214 'HAVE_STRDUP=1', |
|
215 'HAVE_STRLCPY=1', |
|
216 'HAVE_SYS_TIME_H=1', |
|
217 'HAVE_VFPRINTF=1', |
|
218 'NEW_STDIO' |
|
219 'RETSIGTYPE=void', |
|
220 'TIME_WITH_SYS_TIME_H=1', |
|
221 'NO_REG_RPC=1', |
|
222 '__UNUSED__=__attribute__((unused))', |
|
223 ], |
|
224 |
|
225 'include_dirs': [ |
|
226 'src/port/linux/include' |
|
227 ], |
|
228 'sources': [ |
|
229 './src/port/linux/include/csi_platform.h', |
|
230 ], |
|
231 }] |
|
232 ] |
|
233 }] |
|
234 } |
|
235 |
|
236 |