tor-browser

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

moz.build (2591B)


      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 # Due to duplicate file names, we compile libavutil/x86 in its own
      8 # moz.build file.
      9 if CONFIG['FFVPX_ASFLAGS']:
     10     if CONFIG['TARGET_CPU'] == 'x86' or CONFIG['TARGET_CPU'] == 'x86_64':
     11         DIRS += ['x86']
     12     elif CONFIG['TARGET_CPU'] == 'arm':
     13         DIRS += ['arm']
     14 
     15 if CONFIG['TARGET_CPU'] == 'aarch64':
     16     DIRS += ['aarch64']
     17 
     18 SharedLibrary('mozavutil')
     19 SOURCES += [
     20     'avsscanf.c',
     21     'avstring.c',
     22     'bprint.c',
     23     'buffer.c',
     24     'channel_layout.c',
     25     'container_fifo.c',
     26     'cpu.c',
     27     'crc.c',
     28     'dict.c',
     29     'error.c',
     30     'eval.c',
     31     'fifo.c',
     32     'fixed_dsp.c',
     33     'float_dsp.c',
     34     'frame.c',
     35     'hwcontext.c',
     36     'imgutils.c',
     37     'log.c',
     38     'log2_tab.c',
     39     'mastering_display_metadata.c',
     40     'mathematics.c',
     41     'mem.c',
     42     'opt.c',
     43     'parseutils.c',
     44     'pixdesc.c',
     45     'rational.c',
     46     'refstruct.c',
     47     'reverse.c',
     48     'samplefmt.c',
     49     'slicethread.c',
     50     'time.c',
     51     'tx.c',
     52     'tx_double.c',
     53     'tx_float.c',
     54     'tx_int32.c',
     55     'utils.c'
     56 ]
     57 
     58 if not CONFIG['MOZ_FFVPX_AUDIOONLY']:
     59     SOURCES += [
     60         'adler32.c',
     61         'base64.c',
     62         'film_grain_params.c',
     63         'hdr_dynamic_metadata.c',
     64         'integer.c',
     65         'intmath.c',
     66         'lls.c',
     67         'pixelutils.c',
     68         'threadmessage.c',
     69         'timecode.c',
     70         'video_enc_params.c'
     71     ]
     72     if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
     73         LOCAL_INCLUDES += ['/media/mozva']
     74         SOURCES += [
     75             'hwcontext_vaapi.c',
     76         ]
     77         USE_LIBS += ['mozva']
     78     elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
     79         SOURCES += [
     80             'hwcontext_d3d11va.c',
     81         ]
     82     elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
     83         SOURCES += [
     84             'hwcontext_mediacodec.c',
     85         ]
     86 
     87 EXPORTS.ffvpx += [
     88     "tx.h"
     89 ]
     90 
     91 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
     92     EXPORTS.ffvpx += [
     93         "hwcontext_d3d11va.h"
     94     ]
     95 
     96 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
     97     EXPORTS.ffvpx += [
     98         "hwcontext_mediacodec.h"
     99     ]
    100 
    101 SYMBOLS_FILE =  'avutil.symbols'
    102 NoVisibilityFlags()
    103 
    104 OS_LIBS += CONFIG['REALTIME_LIBS']
    105 if CONFIG['OS_TARGET'] != 'WINNT':
    106     OS_LIBS += ['m']
    107 
    108 OS_LIBS += CONFIG["LIBATOMIC_LIBS"]
    109 
    110 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "android":
    111     OS_LIBS += ['android']
    112 
    113 include("../ffvpxcommon.mozbuild")