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_SRC_FILES := histogram_collector.cpp ringbuffer.cpp
21LOCAL_SHARED_LIBRARIES := libdrm liblog libcutils libutils libbase
22LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
23	-Wthread-safety
24LOCAL_CLANG  := true
25LOCAL_MODULE_TAGS := optional
26LOCAL_VENDOR_MODULE := true
27
28include $(BUILD_STATIC_LIBRARY)
29
30
31include $(CLEAR_VARS)
32
33LOCAL_HEADER_LIBRARIES := display_headers
34LOCAL_MODULE := color_sampling_tool
35LOCAL_SRC_FILES := color_sampling_tool.cpp
36
37LOCAL_STATIC_LIBRARIES := libhistogram
38LOCAL_SHARED_LIBRARIES := libdrm liblog libcutils libutils libbase
39LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
40	-Wthread-safety
41LOCAL_CLANG  := true
42LOCAL_MODULE_TAGS := optional
43LOCAL_VENDOR_MODULE := true
44
45include $(BUILD_EXECUTABLE)
46
47include $(CLEAR_VARS)
48
49LOCAL_HEADER_LIBRARIES := display_headers
50LOCAL_MODULE := color_sampling_test
51LOCAL_SRC_FILES := ringbuffer_test.cpp
52
53LOCAL_STATIC_LIBRARIES := libhistogram libgtest libgmock
54LOCAL_SHARED_LIBRARIES := libdrm liblog libcutils libutils libbase
55LOCAL_CFLAGS := -DLOG_TAG=\"SDM-histogram\" -Wall -std=c++14 -Werror -fno-operator-names \
56	-Wthread-safety
57LOCAL_CLANG  := true
58LOCAL_MODULE_TAGS := optional
59LOCAL_VENDOR_MODULE := true
60
61include $(BUILD_EXECUTABLE)
62