1# Copyright (C) 2018 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 15LOCAL_PATH:= $(call my-dir) 16include $(LOCAL_PATH)/../common.mk 17include $(CLEAR_VARS) 18 19LOCAL_MODULE := libhistogram 20LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 21LOCAL_LICENSE_CONDITIONS := notice 22LOCAL_VENDOR_MODULE := true 23LOCAL_MODULE_TAGS := optional 24LOCAL_HEADER_LIBRARIES := display_headers 25LOCAL_SHARED_LIBRARIES := libdrm liblog libcutils libutils libbase 26LOCAL_C_INCLUDES := $(kernel_includes) \ 27 -isystem external/libdrm 28LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 29LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \ 30 -Wthread-safety 31LOCAL_CLANG := true 32LOCAL_SRC_FILES := histogram_collector.cpp ringbuffer.cpp 33 34include $(BUILD_SHARED_LIBRARY) 35 36 37include $(CLEAR_VARS) 38 39LOCAL_HEADER_LIBRARIES := display_headers 40LOCAL_MODULE := color_sampling_tool 41LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 42LOCAL_LICENSE_CONDITIONS := notice 43LOCAL_SRC_FILES := color_sampling_tool.cpp 44LOCAL_SHARED_LIBRARIES := libhistogram libdrm liblog libcutils libutils libbase 45LOCAL_C_INCLUDES := $(kernel_includes) \ 46 -isystem external/libdrm 47LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 48LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \ 49 -Wthread-safety 50LOCAL_CLANG := true 51LOCAL_MODULE_TAGS := optional 52LOCAL_VENDOR_MODULE := true 53 54include $(BUILD_EXECUTABLE) 55 56include $(CLEAR_VARS) 57 58LOCAL_HEADER_LIBRARIES := display_headers 59LOCAL_MODULE := color_sampling_test 60LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 61LOCAL_LICENSE_CONDITIONS := notice 62LOCAL_SRC_FILES := ringbuffer_test.cpp 63LOCAL_STATIC_LIBRARIES := libgtest libgmock 64LOCAL_SHARED_LIBRARIES := libhistogram libdrm liblog libcutils libutils libbase 65LOCAL_C_INCLUDES := $(kernel_includes) \ 66 -isystem external/libdrm 67LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 68LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \ 69 -Wthread-safety 70LOCAL_CLANG := true 71LOCAL_MODULE_TAGS := optional 72LOCAL_VENDOR_MODULE := true 73 74include $(BUILD_EXECUTABLE) 75