blob: 1ce8626522f9db034a8a1ec87db411f22d0ad3d3 [file] [log] [blame]
Jeff Brownd5fdf7d2010-11-18 20:52:43 -08001# Copyright (C) 2010 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Dan Stoza01049c82014-11-11 10:32:31 -080015LOCAL_PATH := $(call my-dir)
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080016include $(CLEAR_VARS)
17
Dan Stoza01049c82014-11-11 10:32:31 -080018LOCAL_CLANG := true
Dan Stozad3182402014-11-17 12:03:59 -080019LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror
20
21# The static constructors and destructors in this library have not been noted to
22# introduce significant overheads
23LOCAL_CPPFLAGS += -Wno-exit-time-destructors
24LOCAL_CPPFLAGS += -Wno-global-constructors
25
26# We only care about compiling as C++14
27LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic
28
29# We use four-character constants for the GraphicBuffer header, and don't care
30# that they're non-portable as long as they're consistent within one execution
31LOCAL_CPPFLAGS += -Wno-four-char-constants
Dan Stoza01049c82014-11-11 10:32:31 -080032
Dan Stoza42af2782014-12-01 15:03:34 -080033# Don't warn about struct padding
34LOCAL_CPPFLAGS += -Wno-padded
35
Dan Stoza01049c82014-11-11 10:32:31 -080036LOCAL_SRC_FILES := \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070037 Fence.cpp \
Mathias Agopian0926f502009-05-04 14:17:04 -070038 FramebufferNativeWindow.cpp \
Svetoslavd85084b2014-03-20 10:28:31 -070039 FrameStats.cpp \
Mathias Agopian3330b202009-10-05 17:07:12 -070040 GraphicBuffer.cpp \
41 GraphicBufferAllocator.cpp \
42 GraphicBufferMapper.cpp \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080043 PixelFormat.cpp \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080044 Rect.cpp \
Andy McFadden4803b742012-09-24 19:07:20 -070045 Region.cpp \
46 UiConfig.cpp
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080047
48LOCAL_SHARED_LIBRARIES := \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080049 libcutils \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070050 libhardware \
51 libsync \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070052 libutils \
53 liblog
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080054
Dima Zavinc6cd27c2012-02-22 14:37:57 -080055ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),)
56LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT)
57endif
58
Dan Stoza01049c82014-11-11 10:32:31 -080059LOCAL_MODULE := libui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080060
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080061include $(BUILD_SHARED_LIBRARY)
Jeff Brown8575a872010-06-30 16:10:35 -070062
63
64# Include subdirectory makefiles
65# ============================================================
66
67# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
68# team really wants is to build the stuff defined by this makefile.
69ifeq (,$(ONE_SHOT_MAKEFILE))
70include $(call first-makefiles-under,$(LOCAL_PATH))
71endif