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