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