tor-browser

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

moz.build (1469B)


      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 Library('FuzzingAOM')
      8 
      9 LOCAL_INCLUDES += [
     10     '/media/libaom/config',
     11     '/third_party/aom',
     12 ]
     13 
     14 # We currently only support building on Linux for fuzzing here, as guarded
     15 # in media/libaom/moz.build. More support can be added later if necessary.
     16 if CONFIG['TARGET_CPU'] == 'x86_64':
     17     LOCAL_INCLUDES += [
     18         '/media/libaom/config/linux/x64/',
     19         '/media/libvpx/config/linux/x64/',
     20     ]
     21 elif CONFIG['TARGET_CPU'] == 'x86':
     22     LOCAL_INCLUDES += [
     23         '/media/libaom/config/linux/ia32/',
     24         '/media/libvpx/config/linux/ia32/',
     25     ]
     26 elif CONFIG['TARGET_CPU'] == 'arm':
     27     LOCAL_INCLUDES += [
     28         '/media/libaom/config/linux/arm/',
     29         '/media/libvpx/config/linux/arm/',
     30     ]
     31 elif CONFIG['TARGET_CPU'] == 'aarch64':
     32     LOCAL_INCLUDES += [
     33         '/media/libaom/config/generic/',
     34         '/media/libvpx/config/linux/arm64/',
     35     ]
     36 
     37 SOURCES += [
     38     '/media/libvpx/libvpx/ivfdec.c',
     39     '/third_party/aom/common/tools_common.c',
     40     'av1_fuzzer.cpp',
     41 ]
     42 
     43 # Ignore unused variables in the imported AV1 fuzzer
     44 SOURCES['av1_fuzzer.cpp'].flags += ['-Wno-unused-variable']
     45 
     46 include('/tools/fuzzing/libfuzzer-config.mozbuild')
     47 
     48 FINAL_LIBRARY = 'xul-gtest'