|
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 EXPORTS += [ |
|
18 'GonkBufferQueue.h', |
|
19 'GonkNativeWindow.h', |
|
20 'GonkNativeWindowClient.h', |
|
21 ] |
|
22 |
|
23 if CONFIG['ANDROID_VERSION'] == '19': |
|
24 EXPORTS += [ |
|
25 'GonkBufferQueueKK.h', |
|
26 'GonkConsumerBaseKK.h', |
|
27 'GonkNativeWindowClientKK.h', |
|
28 'GonkNativeWindowKK.h', |
|
29 'IGonkGraphicBufferConsumer.h', |
|
30 ] |
|
31 elif CONFIG['ANDROID_VERSION'] in ('17', '18'): |
|
32 EXPORTS += [ |
|
33 'GonkBufferQueueJB.h', |
|
34 'GonkConsumerBaseJB.h', |
|
35 'GonkNativeWindowClientJB.h', |
|
36 'GonkNativeWindowJB.h', |
|
37 ] |
|
38 elif CONFIG['ANDROID_VERSION'] == '15': |
|
39 EXPORTS += [ |
|
40 'GonkNativeWindowClientICS.h', |
|
41 'GonkNativeWindowICS.h', |
|
42 ] |
|
43 |
|
44 if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER'] or CONFIG['MOZ_WEBRTC']: |
|
45 if CONFIG['ANDROID_VERSION'] == '19': |
|
46 SOURCES += [ |
|
47 'GonkBufferQueueKK.cpp', |
|
48 'GonkConsumerBaseKK.cpp', |
|
49 'GonkNativeWindowClientKK.cpp', |
|
50 'GonkNativeWindowKK.cpp', |
|
51 'IGonkGraphicBufferConsumer.cpp', |
|
52 ] |
|
53 elif CONFIG['ANDROID_VERSION'] in ('17', '18'): |
|
54 SOURCES += [ |
|
55 'GonkBufferQueueJB.cpp', |
|
56 'GonkConsumerBaseJB.cpp', |
|
57 'GonkNativeWindowClientJB.cpp', |
|
58 'GonkNativeWindowJB.cpp', |
|
59 ] |
|
60 elif CONFIG['ANDROID_VERSION'] == '15': |
|
61 SOURCES += [ |
|
62 'GonkNativeWindowClientICS.cpp', |
|
63 'GonkNativeWindowICS.cpp', |
|
64 ] |
|
65 |
|
66 if CONFIG['MOZ_B2G_CAMERA'] or CONFIG['MOZ_OMX_DECODER']: |
|
67 if CONFIG['ANDROID_VERSION'] >= '18': |
|
68 SOURCES += [ |
|
69 'FakeSurfaceComposer.cpp', |
|
70 ] |
|
71 |
|
72 FAIL_ON_WARNINGS = True |
|
73 |
|
74 include('/ipc/chromium/chromium-config.mozbuild') |
|
75 |
|
76 FINAL_LIBRARY = 'xul' |
|
77 |
|
78 DISABLE_STL_WRAPPING = True |