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