|
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 'GonkPermission.h', |
|
19 'OrientationObserver.h', |
|
20 ] |
|
21 |
|
22 DIRS += ['libdisplay', 'nativewindow'] |
|
23 |
|
24 # libui files |
|
25 SOURCES += ['libui/' + src for src in [ |
|
26 'EventHub.cpp', |
|
27 'Input.cpp', |
|
28 'InputApplication.cpp', |
|
29 'InputDevice.cpp', |
|
30 'InputDispatcher.cpp', |
|
31 'InputListener.cpp', |
|
32 'InputReader.cpp', |
|
33 'InputTransport.cpp', |
|
34 'InputWindow.cpp', |
|
35 'Keyboard.cpp', |
|
36 'KeyCharacterMap.cpp', |
|
37 'KeyLayoutMap.cpp', |
|
38 'PointerController.cpp', |
|
39 'SpriteController.cpp', |
|
40 'Tokenizer.cpp', |
|
41 'VelocityControl.cpp', |
|
42 'VelocityTracker.cpp', |
|
43 'VirtualKeyMap.cpp', |
|
44 ]] |
|
45 |
|
46 SOURCES += [ |
|
47 'Framebuffer.cpp', |
|
48 'GfxInfo.cpp', |
|
49 'GonkMemoryPressureMonitoring.cpp', |
|
50 'GonkPermission.cpp', |
|
51 'HwcComposer2D.cpp', |
|
52 'HwcUtils.cpp', |
|
53 'nsAppShell.cpp', |
|
54 'nsClipboard.cpp', |
|
55 'nsIdleServiceGonk.cpp', |
|
56 'nsLookAndFeel.cpp', |
|
57 'nsWidgetFactory.cpp', |
|
58 'nsWindow.cpp', |
|
59 'OrientationObserver.cpp', |
|
60 'ParentProcessController.cpp', |
|
61 'ProcessOrientation.cpp', |
|
62 'WidgetTraceEvent.cpp' |
|
63 ] |
|
64 |
|
65 LIBRARY_NAME = 'widget_gonk' |
|
66 |
|
67 include('/ipc/chromium/chromium-config.mozbuild') |
|
68 |
|
69 FINAL_LIBRARY = 'xul' |
|
70 |
|
71 LOCAL_INCLUDES += [ |
|
72 '/content/media/omx/mediaresourcemanager', |
|
73 '/dom/system/android', |
|
74 '/gfx/skia/trunk/include/config', |
|
75 '/gfx/skia/trunk/include/core', |
|
76 '/widget/shared', |
|
77 '/widget/xpwidgets', |
|
78 ] |
|
79 |
|
80 DEFINES['HAVE_OFF64_T'] = True |
|
81 DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True |
|
82 |
|
83 if CONFIG['MOZ_OMX_DECODER']: |
|
84 DEFINES['MOZ_OMX_DECODER'] = True |
|
85 |
|
86 CXXFLAGS += [ |
|
87 '-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ |
|
88 'hardware/libhardware/include', |
|
89 'hardware/libhardware_legacy/include', |
|
90 'frameworks/native/opengl/include', |
|
91 ] |
|
92 ] |