|
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. |
|
16 |
|
17 SOURCES += [ |
|
18 'BootAnimation.cpp', |
|
19 ] |
|
20 |
|
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'])) |
|
38 |
|
39 LIBRARY_NAME = 'display' |
|
40 |
|
41 include('/ipc/chromium/chromium-config.mozbuild') |
|
42 |
|
43 FORCE_STATIC_LIB = True |
|
44 |
|
45 DEFINES['XPCOM_GLUE'] = True |
|
46 |
|
47 DISABLE_STL_WRAPPING = True |
|
48 |
|
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 ] |