Jeff Brown | d5fdf7d | 2010-11-18 20:52:43 -0800 | [diff] [blame] | 1 | # 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 Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | include $(CLEAR_VARS) |
| 17 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 18 | LOCAL_CLANG := true |
Dan Stoza | d318240 | 2014-11-17 12:03:59 -0800 | [diff] [blame] | 19 | LOCAL_CPPFLAGS := -std=c++1y -Weverything -Werror |
Dan Austin | ff7ede3 | 2015-09-08 14:53:00 -0700 | [diff] [blame] | 20 | LOCAL_SANITIZE := integer |
Dan Stoza | d318240 | 2014-11-17 12:03:59 -0800 | [diff] [blame] | 21 | |
| 22 | # The static constructors and destructors in this library have not been noted to |
| 23 | # introduce significant overheads |
| 24 | LOCAL_CPPFLAGS += -Wno-exit-time-destructors |
| 25 | LOCAL_CPPFLAGS += -Wno-global-constructors |
| 26 | |
| 27 | # We only care about compiling as C++14 |
| 28 | LOCAL_CPPFLAGS += -Wno-c++98-compat-pedantic |
| 29 | |
| 30 | # We use four-character constants for the GraphicBuffer header, and don't care |
| 31 | # that they're non-portable as long as they're consistent within one execution |
| 32 | LOCAL_CPPFLAGS += -Wno-four-char-constants |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 33 | |
Dan Stoza | 42af278 | 2014-12-01 15:03:34 -0800 | [diff] [blame] | 34 | # Don't warn about struct padding |
| 35 | LOCAL_CPPFLAGS += -Wno-padded |
| 36 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 37 | LOCAL_SRC_FILES := \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 38 | Fence.cpp \ |
Svetoslav | d85084b | 2014-03-20 10:28:31 -0700 | [diff] [blame] | 39 | FrameStats.cpp \ |
Mathias Agopian | 3330b20 | 2009-10-05 17:07:12 -0700 | [diff] [blame] | 40 | GraphicBuffer.cpp \ |
| 41 | GraphicBufferAllocator.cpp \ |
| 42 | GraphicBufferMapper.cpp \ |
Dan Stoza | 7d7ae73 | 2016-03-16 12:23:40 -0700 | [diff] [blame] | 43 | HdrCapabilities.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | PixelFormat.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | Rect.cpp \ |
Andy McFadden | 4803b74 | 2012-09-24 19:07:20 -0700 | [diff] [blame] | 46 | Region.cpp \ |
| 47 | UiConfig.cpp |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | |
| 49 | LOCAL_SHARED_LIBRARIES := \ |
Dan Stoza | 7d7ae73 | 2016-03-16 12:23:40 -0700 | [diff] [blame] | 50 | libbinder \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | libcutils \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 52 | libhardware \ |
| 53 | libsync \ |
Ying Wang | 8a0cb4e | 2013-04-09 21:55:39 -0700 | [diff] [blame] | 54 | libutils \ |
| 55 | liblog |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 56 | |
Dima Zavin | c6cd27c | 2012-02-22 14:37:57 -0800 | [diff] [blame] | 57 | ifneq ($(BOARD_FRAMEBUFFER_FORCE_FORMAT),) |
| 58 | LOCAL_CFLAGS += -DFRAMEBUFFER_FORCE_FORMAT=$(BOARD_FRAMEBUFFER_FORCE_FORMAT) |
| 59 | endif |
| 60 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 61 | LOCAL_MODULE := libui |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 62 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 63 | include $(BUILD_SHARED_LIBRARY) |
Jeff Brown | 8575a87 | 2010-06-30 16:10:35 -0700 | [diff] [blame] | 64 | |
| 65 | |
| 66 | # Include subdirectory makefiles |
| 67 | # ============================================================ |
| 68 | |
| 69 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 70 | # team really wants is to build the stuff defined by this makefile. |
| 71 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 72 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 73 | endif |