2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-05-08 07:58:22 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# Copyright 2013 Mozilla Foundation and Mozilla contributors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'BootAnimation.cpp',
|
|
|
|
]
|
|
|
|
|
2015-04-23 16:49:40 +03:00
|
|
|
if CONFIG['ANDROID_VERSION'] >= '19':
|
|
|
|
SOURCES += [
|
|
|
|
'FramebufferSurface.cpp',
|
|
|
|
'GonkDisplayJB.cpp',
|
|
|
|
'VirtualDisplaySurface.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['ANDROID_VERSION'] == '18':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-09-18 06:04:03 +04:00
|
|
|
'FramebufferSurface.cpp',
|
|
|
|
'GonkDisplayJB.cpp',
|
|
|
|
]
|
|
|
|
elif CONFIG['ANDROID_VERSION'] == '17':
|
2013-10-25 03:23:05 +04:00
|
|
|
SOURCES += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'FramebufferSurface.cpp',
|
|
|
|
'GonkDisplayJB.cpp',
|
2013-10-24 03:00:23 +04:00
|
|
|
'GraphicBufferAlloc.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-11-21 00:37:22 +04:00
|
|
|
elif CONFIG['ANDROID_VERSION'] and CONFIG['COMPILE_ENVIRONMENT']:
|
2013-04-24 01:54:15 +04:00
|
|
|
error('Unsupported platform version: %s' % (CONFIG['ANDROID_VERSION']))
|
2013-08-15 17:02:09 +04:00
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('display')
|
2013-08-15 17:02:09 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-10-24 21:51:00 +04:00
|
|
|
FORCE_STATIC_LIB = True
|
2013-11-27 17:55:07 +04:00
|
|
|
|
|
|
|
DEFINES['XPCOM_GLUE'] = True
|
2014-03-05 04:39:06 +04:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-03-11 04:13:14 +04:00
|
|
|
|
2015-11-04 08:28:42 +03:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'%' + '%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [
|
2016-07-28 15:38:07 +03:00
|
|
|
'frameworks/native/include/gui',
|
|
|
|
'frameworks/native/opengl/include',
|
2014-03-11 04:13:14 +04:00
|
|
|
'hardware/libhardware/include',
|
|
|
|
'hardware/libhardware_legacy/include',
|
2016-07-28 15:38:07 +03:00
|
|
|
'system/core/libsuspend/include',
|
2014-03-11 04:13:14 +04:00
|
|
|
]
|
|
|
|
]
|