tor-browser

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

moz.build (1369B)


      1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
      2 # vim: set filetype=python:
      3 # This Source Code Form is subject to the terms of the Mozilla Public
      4 # License, v. 2.0. If a copy of the MPL was not distributed with this
      5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      6 
      7 FINAL_LIBRARY = 'xul'
      8 
      9 # We allow warnings for third-party code that can be updated from upstream.
     10 AllowCompilerWarnings()
     11 
     12 # Suppress warnings in third-party code.
     13 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     14     CXXFLAGS += [
     15         '-Wno-sign-compare',
     16         '-Wno-unused-function'
     17     ]
     18 
     19 EXPORTS.snappy += [
     20     'snappy-stubs-public.h',
     21     'src/snappy-c.h',
     22     'src/snappy.h',
     23 ]
     24 
     25 UNIFIED_SOURCES += [
     26     'src/snappy-c.cc',
     27     'src/snappy-sinksource.cc',
     28     'src/snappy-stubs-internal.cc',
     29     'src/snappy.cc',
     30 ]
     31 
     32 DEFINES['HAVE_ATTRIBUTE_ALWAYS_INLINE'] = 1
     33 DEFINES['HAVE_BUILTIN_CTZ'] = 1
     34 DEFINES['HAVE_BUILTIN_EXPECT'] = 1
     35 DEFINES['HAVE_BUILTIN_PREFETCH'] = 1
     36 
     37 if CONFIG["OS_TARGET"] == "WINNT":
     38     DEFINES['HAVE_WINDOWS_H'] = 1
     39 else:
     40     DEFINES['HAVE_SYS_MMAN_H'] = 1
     41     DEFINES['HAVE_SYS_RESOURCE_H'] = 1
     42     DEFINES['HAVE_SYS_TIME_H'] = 1
     43     DEFINES['HAVE_SYS_UIO_H'] = 1
     44     DEFINES['HAVE_UNISTD_H'] = 1
     45 
     46 if CONFIG['TARGET_CPU'] == 'aarch64':
     47     DEFINES['SNAPPY_HAVE_NEON'] = 1
     48 
     49 if CONFIG['TARGET_ENDIANNESS'] == 'big':
     50     DEFINES['SNAPPY_IS_BIG_ENDIAN'] = 1
     51