media/omx-plugin/moz.build

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
michael@0 2 # vim: set filetype=python:
michael@0 3 # Copyright 2013 Mozilla Foundation and Mozilla contributors
michael@0 4 #
michael@0 5 # Licensed under the Apache License, Version 2.0 (the "License");
michael@0 6 # you may not use this file except in compliance with the License.
michael@0 7 # You may obtain a copy of the License at
michael@0 8 #
michael@0 9 # http://www.apache.org/licenses/LICENSE-2.0
michael@0 10 #
michael@0 11 # Unless required by applicable law or agreed to in writing, software
michael@0 12 # distributed under the License is distributed on an "AS IS" BASIS,
michael@0 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
michael@0 14 # See the License for the specific language governing permissions and
michael@0 15 # limitations under the License.
michael@0 16
michael@0 17 SOURCES += [
michael@0 18 'OmxPlugin.cpp',
michael@0 19 ]
michael@0 20
michael@0 21 LIBRARY_NAME = 'omxplugin'
michael@0 22
michael@0 23 FORCE_SHARED_LIB = True
michael@0 24
michael@0 25 LOCAL_INCLUDES += [
michael@0 26 '../../content/media/plugins',
michael@0 27 ]
michael@0 28
michael@0 29 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 30 pass
michael@0 31 else:
michael@0 32 LOCAL_INCLUDES += [
michael@0 33 'include/ics',
michael@0 34 'include/ics/media/stagefright/openmax',
michael@0 35 ]
michael@0 36
michael@0 37 if CONFIG['GNU_CXX']:
michael@0 38 # Stagefright header files define many multichar constants.
michael@0 39 CXXFLAGS += ['-Wno-multichar']
michael@0 40
michael@0 41 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
michael@0 42 CXXFLAGS += [
michael@0 43 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
michael@0 44 'dalvik/libnativehelper/include/nativehelper',
michael@0 45 'frameworks/base/include/',
michael@0 46 'frameworks/base/include/binder/',
michael@0 47 'frameworks/base/include/utils/',
michael@0 48 'frameworks/base/include/media/',
michael@0 49 'frameworks/base/include/media/stagefright/openmax',
michael@0 50 'frameworks/base/media/libstagefright/include',
michael@0 51 'frameworks/base/native/include',
michael@0 52 'system/core/include',
michael@0 53 'hardware/libhardware/include',
michael@0 54 ]
michael@0 55 ]
michael@0 56
michael@0 57 # Don't use STL wrappers; this isn't Gecko code
michael@0 58 DISABLE_STL_WRAPPING = True

mercurial