Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # Copyright 2013 Mozilla Foundation and Mozilla contributors
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 SOURCES += [
18 'BootAnimation.cpp',
19 ]
21 if CONFIG['ANDROID_VERSION'] >= '18':
22 SOURCES += [
23 'FramebufferSurface.cpp',
24 'GonkDisplayJB.cpp',
25 ]
26 elif CONFIG['ANDROID_VERSION'] == '17':
27 SOURCES += [
28 'FramebufferSurface.cpp',
29 'GonkDisplayJB.cpp',
30 'GraphicBufferAlloc.cpp',
31 ]
32 elif CONFIG['ANDROID_VERSION'] == '15':
33 SOURCES += [
34 'GonkDisplayICS.cpp'
35 ]
36 elif CONFIG['ANDROID_VERSION'] and CONFIG['COMPILE_ENVIRONMENT']:
37 error('Unsupported platform version: %s' % (CONFIG['ANDROID_VERSION']))
39 LIBRARY_NAME = 'display'
41 include('/ipc/chromium/chromium-config.mozbuild')
43 FORCE_STATIC_LIB = True
45 DEFINES['XPCOM_GLUE'] = True
47 DISABLE_STL_WRAPPING = True
49 CXXFLAGS += [
50 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
51 'frameworks/native/include/gui',
52 'frameworks/native/opengl/include',
53 'hardware/libhardware/include',
54 'hardware/libhardware_legacy/include',
55 'system/core/libsuspend/include',
56 ]
57 ]