tor-browser

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

moz.build (4200B)


      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 include("/dom/media/webrtc/third_party_build/webrtc.mozbuild")
      8 
      9 DEFINES["VISIBLE_TIMEUNIT_INTERNALS"] = True
     10 
     11 LOCAL_INCLUDES += [
     12     "!/dist/include/libwebrtc_overrides",
     13     "/dom/media/driftcontrol",
     14     "/dom/media/mediasink",
     15     "/dom/media/systemservices",
     16     "/dom/media/webrtc",
     17     "/dom/media/webrtc/common",
     18     "/third_party/abseil-cpp",
     19     "/third_party/libwebrtc",
     20 ]
     21 
     22 UNIFIED_SOURCES += [
     23     "MockMediaResource.cpp",
     24     "TestAudioBuffer.cpp",
     25     "TestAudioBuffers.cpp",
     26     "TestAudioCallbackDriver.cpp",
     27     "TestAudioCompactor.cpp",
     28     "TestAudioDecoderInputTrack.cpp",
     29     "TestAudioInputSource.cpp",
     30     "TestAudioMixer.cpp",
     31     "TestAudioPacketizer.cpp",
     32     "TestAudioRingBuffer.cpp",
     33     "TestAudioSampleFormat.cpp",
     34     "TestAudioSegment.cpp",
     35     "TestAudioSinkWrapper.cpp",
     36     "TestAudioTrackEncoder.cpp",
     37     "TestAudioTrackGraph.cpp",
     38     "TestBitWriter.cpp",
     39     "TestBlankVideoDataCreator.cpp",
     40     "TestBufferReader.cpp",
     41     "TestCubebInputStream.cpp",
     42     "TestDataMutex.cpp",
     43     "TestDecodedStream.cpp",
     44     "TestDeviceInputTrack.cpp",
     45     "TestDriftCompensation.cpp",
     46     "TestGMPUtils.cpp",
     47     "TestGroupId.cpp",
     48     "TestImageConversion.cpp",
     49     "TestIntervalSet.cpp",
     50     "TestMediaCodecsSupport.cpp",
     51     "TestMediaDataDecoder.cpp",
     52     "TestMediaDataEncoder.cpp",
     53     "TestMediaEventSource.cpp",
     54     "TestMediaFormatReader.cpp",
     55     "TestMediaInfo.cpp",
     56     "TestMediaMIMETypes.cpp",
     57     "TestMediaQueue.cpp",
     58     "TestMediaSpan.cpp",
     59     "TestMediaUtils.cpp",
     60     "TestMP3Demuxer.cpp",
     61     "TestMP4Demuxer.cpp",
     62     "TestMuxer.cpp",
     63     "TestOfflineClockDriver.cpp",
     64     "TestOggWriter.cpp",
     65     "TestOpusParser.cpp",
     66     "TestRust.cpp",
     67     "TestTimeUnit.cpp",
     68     "TestVideoFrameContainer.cpp",
     69     "TestVideoSegment.cpp",
     70     "TestVideoSink.cpp",
     71     "TestVideoTrackEncoder.cpp",
     72     "TestVideoUtils.cpp",
     73     "TestVPXDecoding.cpp",
     74     "TestWebMBuffered.cpp",
     75     "TestWebMWriter.cpp",
     76     "YUVBufferGenerator.cpp",
     77 ]
     78 
     79 if CONFIG["MOZ_WEBRTC"]:
     80     LOCAL_INCLUDES += [
     81         "/dom/media/webrtc/libwebrtcglue",
     82     ]
     83 
     84     UNIFIED_SOURCES += [
     85         "TestAudioInputProcessing.cpp",
     86         "TestRTCStatsTimestampMaker.cpp",
     87         "TestWebrtcTaskQueueWrapper.cpp",
     88     ]
     89 
     90 if CONFIG["OS_TARGET"] != "Android":
     91     UNIFIED_SOURCES += [
     92         "TestCDMStorage.cpp",
     93         "TestGMPCrossOrigin.cpp",
     94         "TestGMPRemoveAndDelete.cpp",
     95     ]
     96 
     97 if CONFIG["MOZ_WEBRTC"] and CONFIG["OS_TARGET"] != "Android":
     98     UNIFIED_SOURCES += [
     99         "TestAudioDeviceEnumerator.cpp",
    100         "TestPacer.cpp",
    101         "TestVideoFrameConverter.cpp",
    102     ]
    103 
    104 TEST_HARNESS_FILES.gtest += [
    105     "../test/av1.mp4",
    106     "../test/gizmo-frag.mp4",
    107     "../test/gizmo.mp4",
    108     "../test/vp9cake.webm",
    109     "dash_dashinit.mp4",
    110     "id3v2header.mp3",
    111     "negative_duration.mp4",
    112     "noise.mp3",
    113     "noise_vbr.mp3",
    114     "short-zero-in-moov.mp4",
    115     "short-zero-inband.mov",
    116     "small-shot-false-positive.mp3",
    117     "small-shot-partial-xing.mp3",
    118     "small-shot.mp3",
    119     "test.webm",
    120     "test_case_1224361.vp8.ivf",
    121     "test_case_1224363.vp8.ivf",
    122     "test_case_1224369.vp8.ivf",
    123     "test_InvalidElementId.webm",
    124     "test_InvalidElementSize.webm",
    125     "test_InvalidLargeEBMLMaxIdLength.webm",
    126     "test_InvalidLargeElementId.webm",
    127     "test_InvalidSmallEBMLMaxIdLength.webm",
    128     "test_ValidLargeEBMLMaxIdLength.webm",
    129     "test_ValidSmallEBMLMaxSizeLength.webm",
    130     "test_vbri.mp3",
    131 ]
    132 
    133 TEST_DIRS += [
    134     "mp4_demuxer",
    135 ]
    136 
    137 include("/ipc/chromium/chromium-config.mozbuild")
    138 
    139 LOCAL_INCLUDES += [
    140     "/dom/media",
    141     "/dom/media/encoder",
    142     "/dom/media/gmp",
    143     "/dom/media/mp4",
    144     "/dom/media/platforms",
    145     "/dom/media/platforms/agnostic",
    146     "/dom/media/webrtc",
    147     "/gfx/2d/",
    148     "/security/certverifier",
    149 ]
    150 
    151 FINAL_LIBRARY = "xul-gtest"
    152 
    153 if CONFIG["CC_TYPE"] in ("clang", "clang-cl"):
    154     CXXFLAGS += [
    155         "-Wno-inconsistent-missing-override",
    156     ]