tor-browser

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

moz.build (2002B)


      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 LOCAL_INCLUDES += ["/xpcom/build"]
      8 EXPORTS += [
      9     "FFVPXRuntimeLinker.h",
     10 ]
     11 
     12 UNIFIED_SOURCES += [
     13     "../FFmpegAudioDecoder.cpp",
     14     "../FFmpegAudioEncoder.cpp",
     15     "../FFmpegDataDecoder.cpp",
     16     "../FFmpegDataEncoder.cpp",
     17     "../FFmpegDecoderModule.cpp",
     18     "../FFmpegEncoderModule.cpp",
     19     "../FFmpegUtils.cpp",
     20     "../FFmpegVideoDecoder.cpp",
     21     "../FFmpegVideoEncoder.cpp",
     22 ]
     23 SOURCES += [
     24     "FFVPXRuntimeLinker.cpp",
     25 ]
     26 LOCAL_INCLUDES += [
     27     "..",
     28     "/media/ffvpx",
     29     "/media/mozva",
     30 ]
     31 
     32 CXXFLAGS += ["-Wno-deprecated-declarations"]
     33 if CONFIG["CC_TYPE"] == "clang":
     34     CXXFLAGS += [
     35         "-Wno-unknown-attributes",
     36     ]
     37 if CONFIG["CC_TYPE"] == "gcc":
     38     CXXFLAGS += [
     39         "-Wno-attributes",
     40     ]
     41 
     42 DEFINES["FFVPX_VERSION"] = 46465650
     43 DEFINES["USING_MOZFFVPX"] = True
     44 
     45 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
     46     CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"]
     47 if CONFIG["MOZ_ENABLE_VAAPI"] or CONFIG["MOZ_ENABLE_V4L2"]:
     48     UNIFIED_SOURCES += ["../FFmpegVideoFramePool.cpp"]
     49     CXXFLAGS += CONFIG["MOZ_LIBDRM_CFLAGS"]
     50     if not CONFIG["MOZ_SYSTEM_LIBDRM"]:
     51         LOCAL_INCLUDES += [
     52             "/third_party/drm/drm/include",
     53             "/third_party/drm/drm/include/libdrm",
     54         ]
     55     USE_LIBS += ["mozva"]
     56     DEFINES["MOZ_USE_HWDECODE"] = 1
     57 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
     58     DEFINES["MOZ_ENABLE_D3D11VA"] = 1
     59     DEFINES["MOZ_USE_HWDECODE"] = 1
     60     SOURCES += [
     61         "D3D11TextureWrapper.cpp",
     62     ]
     63     EXPORTS += ["D3D11TextureWrapper.h"]
     64 
     65 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
     66     DEFINES["MOZ_USE_HWDECODE"] = 1
     67 
     68 include("/ipc/chromium/chromium-config.mozbuild")
     69 
     70 LOCAL_INCLUDES += [
     71     "/media/libyuv/libyuv/include",
     72 ]
     73 
     74 FINAL_LIBRARY = "xul"