summaryrefslogtreecommitdiffstats
path: root/media/mtransport/third_party/nrappkit/nrappkit.gyp
blob: c6ff299994ec7c0d6e1d7f228b5dd4f939687347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# nrappkit.gyp
#
#
{
  'targets' : [
      {
        	'target_name' : 'nrappkit',
          'type' : 'static_library',

          'include_dirs' : [
              # EXTERNAL
              # INTERNAL
	      'src/event',
	      'src/log',
              'src/port/generic/include',
	      'src/registry',
	      'src/share',
	      'src/stats',
	      'src/util',
	      'src/util/libekr',
          ],

          'sources' : [
	      # Shared
#              './src/share/nr_api.h',
              './src/share/nr_common.h',
#              './src/share/nr_dynlib.h',
              './src/share/nr_reg_keys.h',
#              './src/share/nr_startup.c',
#              './src/share/nr_startup.h',
#              './src/share/nrappkit_static_plugins.c',
	       './src/port/generic/include'

              # libekr
              './src/util/libekr/assoc.h',
              './src/util/libekr/debug.c',
              './src/util/libekr/debug.h',
              './src/util/libekr/r_assoc.c',
              './src/util/libekr/r_assoc.h',
#              './src/util/libekr/r_assoc_test.c',
              './src/util/libekr/r_common.h',
              './src/util/libekr/r_crc32.c',
              './src/util/libekr/r_crc32.h',
              './src/util/libekr/r_data.c',
              './src/util/libekr/r_data.h',
              './src/util/libekr/r_defaults.h',
              './src/util/libekr/r_errors.c',
              './src/util/libekr/r_errors.h',
              './src/util/libekr/r_includes.h',
              './src/util/libekr/r_list.c',
              './src/util/libekr/r_list.h',
              './src/util/libekr/r_macros.h',
              './src/util/libekr/r_memory.c',
              './src/util/libekr/r_memory.h',
              './src/util/libekr/r_replace.c',
              './src/util/libekr/r_thread.h',
              './src/util/libekr/r_time.c',
              './src/util/libekr/r_time.h',
              './src/util/libekr/r_types.h',
              './src/util/libekr/debug.c',
              './src/util/libekr/debug.h',

	      # Utilities
              './src/util/byteorder.c',
              './src/util/byteorder.h',
              #'./src/util/escape.c',
              #'./src/util/escape.h',
              #'./src/util/filename.c',
              #'./src/util/getopt.c',
              #'./src/util/getopt.h',
              './src/util/hex.c',
              './src/util/hex.h',
	      #'./src/util/mem_util.c',
              #'./src/util/mem_util.h',
              #'./src/util/mutex.c',
              #'./src/util/mutex.h',
              './src/util/p_buf.c',
              './src/util/p_buf.h',
              #'./src/util/ssl_util.c',
              #'./src/util/ssl_util.h',
              './src/util/util.c',
              './src/util/util.h',
              #'./src/util/util_db.c',
              #'./src/util/util_db.h',

	      # Events
#              './src/event/async_timer.c',
              './src/event/async_timer.h',
#              './src/event/async_wait.c',
              './src/event/async_wait.h',
              './src/event/async_wait_int.h',

	      # Logging
              './src/log/r_log.c',
              './src/log/r_log.h',
              #'./src/log/r_log_plugin.c',

	      # Registry
              './src/registry/c2ru.c',
              './src/registry/c2ru.h',
              #'./src/registry/mod_registry/mod_registry.c',
              #'./src/registry/nrregctl.c',
              #'./src/registry/nrregistryctl.c',
              './src/registry/registry.c',
              './src/registry/registry.h',
              './src/registry/registry_int.h',
              './src/registry/registry_local.c',
              #'./src/registry/registry_plugin.c',
              './src/registry/registry_vtbl.h',
              './src/registry/registrycb.c',
              #'./src/registry/registryd.c',
              #'./src/registry/regrpc.h',
              #'./src/registry/regrpc_client.c',
              #'./src/registry/regrpc_client.h',
              #'./src/registry/regrpc_client_cb.c',
              #'./src/registry/regrpc_clnt.c',
              #'./src/registry/regrpc_server.c',
              #'./src/registry/regrpc_svc.c',
              #'./src/registry/regrpc_xdr.c',

	      # Statistics
              #'./src/stats/nrstats.c',
              #'./src/stats/nrstats.h',
              #'./src/stats/nrstats_app.c',
              #'./src/stats/nrstats_int.h',
              #'./src/stats/nrstats_memory.c',
          ],
          
          'defines' : [
              'SANITY_CHECKS',
	      'R_PLATFORM_INT_TYPES=<stdint.h>',
	      'R_DEFINED_INT2=int16_t',
	      'R_DEFINED_UINT2=uint16_t',
	      'R_DEFINED_INT4=int32_t',
	      'R_DEFINED_UINT4=uint32_t',
	      'R_DEFINED_INT8=int64_t',
	      'R_DEFINED_UINT8=uint64_t',
          ],
          
          'conditions' : [
              ## Mac and BSDs
              [ 'OS == "mac"', {
                'defines' : [
                    'DARWIN',
                ],
              }],
              [ 'os_bsd == 1', {
                'defines' : [
                    'BSD',
                ],
              }],
              [ 'OS == "mac" or OS == "ios" or os_bsd == 1', {
                'cflags_mozilla': [
                    '-Wall',
                    '-Wno-parentheses',
                    '-Wno-strict-prototypes',
                    '-Wmissing-prototypes',
                 ],
                 'defines' : [
                     'HAVE_LIBM=1',
                     'HAVE_STRDUP=1',
                     'HAVE_STRLCPY=1',
                     'HAVE_SYS_TIME_H=1',
                     'HAVE_VFPRINTF=1',
                     'NEW_STDIO'
                     'RETSIGTYPE=void',
                     'TIME_WITH_SYS_TIME_H=1',
                     '__UNUSED__=__attribute__((unused))',
                 ],

		 'include_dirs': [
		     'src/port/darwin/include'
		 ],
		 
		 'sources': [
              	      './src/port/darwin/include/csi_platform.h',
		 ],
              }],
              
              ## Win
              [ 'OS == "win"', {
                 'defines' : [
                     'WIN',
                     '__UNUSED__=',
                     'HAVE_STRDUP=1',
                     'NO_REG_RPC'
                 ],

		 'include_dirs': [
		     'src/port/win32/include'
		 ],

		 'sources': [
              	      './src/port/win32/include/csi_platform.h',
		 ],
              }],
              ## Linux
              [ '(OS == "linux") or (OS == "android")', {
                 'cflags_mozilla': [
                     '-Wall',
                     '-Wno-parentheses',
                     '-Wno-strict-prototypes',
                     '-Wmissing-prototypes',
                 ],
                 'defines' : [
                     'LINUX',
                     'HAVE_LIBM=1',
                     'HAVE_STRDUP=1',
                     'HAVE_STRLCPY=1',
                     'HAVE_SYS_TIME_H=1',
                     'HAVE_VFPRINTF=1',
                     'NEW_STDIO'
                     'RETSIGTYPE=void',
                     'TIME_WITH_SYS_TIME_H=1',
                     'NO_REG_RPC=1',
                     '__UNUSED__=__attribute__((unused))',
                 ],

		 'include_dirs': [
		     'src/port/linux/include'
		 ],
		 'sources': [
              	      './src/port/linux/include/csi_platform.h',
		 ],
              }]
          ]
      }]
}