tor-browser

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

moz.build (1009B)


      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('FuzzingDav1d')
      8 
      9 LOCAL_INCLUDES += [
     10     '/media/libdav1d',
     11     '/third_party/dav1d',
     12     '/third_party/dav1d/include',
     13     '/third_party/dav1d/tests/libfuzzer/',
     14 ]
     15 
     16 # We currently only support building on Linux for fuzzing here, as guarded
     17 # in media/libaom/moz.build. More support can be added later if necessary.
     18 if CONFIG['TARGET_CPU'] == 'x86_64':
     19     LOCAL_INCLUDES += [
     20         '/media/libdav1d/asm/x86_64/',
     21     ]
     22 elif CONFIG['TARGET_CPU'] == 'x86':
     23     LOCAL_INCLUDES += [
     24         '/media/libdav1d/asm/x86_32/',
     25     ]
     26 
     27 SOURCES += [
     28     '/third_party/dav1d/tests/libfuzzer/dav1d_fuzzer.c',
     29     'dav1d_fuzz_adapter.cpp',
     30 ]
     31 
     32 include('/tools/fuzzing/libfuzzer-config.mozbuild')
     33 
     34 FINAL_LIBRARY = 'xul-gtest'