tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nrappkit.gyp (6139B)


      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/port/generic/include'
     30 
     31               # libekr
     32               './src/util/libekr/assoc.h',
     33               './src/util/libekr/r_assoc.c',
     34               './src/util/libekr/r_assoc.h',
     35               './src/util/libekr/r_common.h',
     36               './src/util/libekr/r_crc32.c',
     37               './src/util/libekr/r_crc32.h',
     38               './src/util/libekr/r_data.c',
     39               './src/util/libekr/r_data.h',
     40               './src/util/libekr/r_defaults.h',
     41               './src/util/libekr/r_errors.c',
     42               './src/util/libekr/r_errors.h',
     43               './src/util/libekr/r_includes.h',
     44               './src/util/libekr/r_macros.h',
     45               './src/util/libekr/r_memory.c',
     46               './src/util/libekr/r_memory.h',
     47               './src/util/libekr/r_time.c',
     48               './src/util/libekr/r_time.h',
     49               './src/util/libekr/r_types.h',
     50 
     51               # Utilities
     52               './src/util/byteorder.c',
     53               './src/util/byteorder.h',
     54               './src/util/hex.c',
     55               './src/util/hex.h',
     56               './src/util/p_buf.c',
     57               './src/util/p_buf.h',
     58               './src/util/util.c',
     59               './src/util/util.h',
     60 
     61               # Events
     62               './src/event/async_timer.h',
     63               './src/event/async_wait.h',
     64 
     65               # Logging
     66               './src/log/r_log.c',
     67               './src/log/r_log.h',
     68 
     69               # Registry
     70               './src/registry/registry.c',
     71               './src/registry/registry.h',
     72               './src/registry/registry_int.h',
     73               './src/registry/registry_local.c',
     74               './src/registry/registrycb.c',
     75           ],
     76 
     77           'defines' : [
     78               'SANITY_CHECKS',
     79               'R_PLATFORM_INT_TYPES=<stdint.h>',
     80               'R_DEFINED_INT2=int16_t',
     81               'R_DEFINED_UINT2=uint16_t',
     82               'R_DEFINED_INT4=int32_t',
     83               'R_DEFINED_UINT4=uint32_t',
     84               'R_DEFINED_INT8=int64_t',
     85               'R_DEFINED_UINT8=uint64_t',
     86           ],
     87 
     88           'conditions' : [
     89               ## Mac and BSDs
     90               [ 'OS == "mac"', {
     91                 'defines' : [
     92                     'DARWIN',
     93                 ],
     94               }],
     95               [ 'os_bsd == 1', {
     96                 'defines' : [
     97                     'BSD',
     98                 ],
     99               }],
    100               [ 'OS == "mac" or OS == "ios" or os_bsd == 1', {
    101                 'cflags_mozilla': [
    102                     '-Wall',
    103                     '-Wno-parentheses',
    104                     '-Wno-strict-prototypes',
    105                     '-Wmissing-prototypes',
    106                     '-Wno-format',
    107                     '-Wno-format-security',
    108                  ],
    109                  'defines' : [
    110                      'HAVE_LIBM=1',
    111                      'HAVE_STRDUP=1',
    112                      'HAVE_STRLCPY=1',
    113                      'HAVE_SYS_TIME_H=1',
    114                      'HAVE_VFPRINTF=1',
    115                      'NEW_STDIO'
    116                      'RETSIGTYPE=void',
    117                      'TIME_WITH_SYS_TIME_H=1',
    118                      '__UNUSED__=__attribute__((unused))',
    119                  ],
    120 
    121                  'include_dirs': [
    122                      'src/port/darwin/include'
    123                  ],
    124 
    125                  'sources': [
    126                       './src/port/darwin/include/csi_platform.h',
    127                  ],
    128               }],
    129 
    130               ## Win
    131               [ 'OS == "win"', {
    132                  'defines' : [
    133                      'WIN',
    134                      '__UNUSED__=',
    135                      'HAVE_STRDUP=1',
    136                      'NO_REG_RPC'
    137                  ],
    138 
    139                  'include_dirs': [
    140                      'src/port/win32/include'
    141                  ],
    142 
    143                  'sources': [
    144                       './src/port/win32/include/csi_platform.h',
    145                  ],
    146               }],
    147 
    148               # Windows, clang-cl build
    149               [ 'clang_cl == 1', {
    150                 'cflags_mozilla': [
    151                     '-Xclang',
    152                     '-Wall',
    153                     '-Xclang',
    154                     '-Wno-parentheses',
    155                     '-Wno-strict-prototypes',
    156                     '-Wmissing-prototypes',
    157                     '-Wno-format',
    158                     '-Wno-format-security',
    159                  ],
    160               }],
    161 
    162               ## Linux/Android
    163               [ '(OS == "linux") or (OS == "android")', {
    164                  'cflags_mozilla': [
    165                      '-Wall',
    166                      '-Wno-parentheses',
    167                      '-Wno-strict-prototypes',
    168                      '-Wmissing-prototypes',
    169                      '-Wno-format',
    170                      '-Wno-format-security',
    171                  ],
    172                  'defines' : [
    173                      'LINUX',
    174                      'HAVE_LIBM=1',
    175                      'HAVE_STRDUP=1',
    176                      'HAVE_STRLCPY=1',
    177                      'HAVE_SYS_TIME_H=1',
    178                      'HAVE_VFPRINTF=1',
    179                      'NEW_STDIO'
    180                      'RETSIGTYPE=void',
    181                      'TIME_WITH_SYS_TIME_H=1',
    182                      'NO_REG_RPC=1',
    183                      '__UNUSED__=__attribute__((unused))',
    184                  ],
    185 
    186                  'include_dirs': [
    187                      'src/port/linux/include'
    188                  ],
    189                  'sources': [
    190                       './src/port/linux/include/csi_platform.h',
    191                  ],
    192               }]
    193           ]
    194       }]
    195 }
    196 
    197