tor-browser

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

moz.build (1576B)


      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 DEFINES['VR_API_PUBLIC'] = True
     10 
     11 # Windows.h wrappers conflict with internal methods in openvr
     12 DEFINES['MOZ_DISABLE_WINDOWS_WRAPPER'] = True
     13 
     14 if CONFIG['OS_ARCH'] == 'WINNT':
     15     if CONFIG['HAVE_64BIT_BUILD']:
     16         DEFINES['WIN64'] = True
     17     else:
     18         DEFINES['WIN32'] = True
     19 
     20 if CONFIG['OS_ARCH'] == 'Darwin':
     21     DEFINES['POSIX'] = True
     22     DEFINES['OSX'] = True
     23     if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     24         CXXFLAGS += ['-xobjective-c++']
     25 
     26 if CONFIG['OS_ARCH'] == 'Linux':
     27     DEFINES['POSIX'] = True
     28     DEFINES['LINUX'] = True
     29     if CONFIG['HAVE_64BIT_BUILD']:
     30         DEFINES['LINUX64'] = True
     31     else:
     32         DEFINES['LINUX32'] = True
     33 
     34 LOCAL_INCLUDES += [
     35     '/toolkit/components/jsoncpp/include',
     36 ]
     37 
     38 USE_LIBS += [
     39     'jsoncpp',
     40 ]
     41 
     42 EXPORTS += [
     43     'headers/openvr.h',
     44 ]
     45 
     46 SOURCES += [
     47     'src/dirtools_public.cpp',
     48     'src/envvartools_public.cpp',
     49     'src/hmderrors_public.cpp',
     50     'src/openvr_api_public.cpp',
     51     'src/pathtools_public.cpp',
     52     'src/sharedlibtools_public.cpp',
     53     'src/strtools_public.cpp',
     54     'src/vrpathregistry_public.cpp',
     55 ]
     56 
     57 if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
     58     # Harmless warnings in 3rd party code
     59     CXXFLAGS += [
     60         '-Wno-error=parentheses',
     61         '-Wno-error=unused-variable',
     62     ]