1# Copyright (C) 2016 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_SRC_FILES := \
19        main.cpp
20
21LOCAL_MODULE := incident
22
23LOCAL_SHARED_LIBRARIES := \
24        libbase \
25        libbinder \
26        libcutils \
27        liblog \
28        libutils \
29        libincident
30
31LOCAL_CFLAGS += \
32        -Wall -Werror -Wno-missing-field-initializers -Wno-unused-variable -Wunused-parameter
33
34LOCAL_MODULE_CLASS := EXECUTABLES
35gen_src_dir := $(local-generated-sources-dir)
36
37gen := $(gen_src_dir)/incident_sections.cpp
38$(gen): $(HOST_OUT_EXECUTABLES)/incident-section-gen
39$(gen): PRIVATE_CUSTOM_TOOL = \
40    $(HOST_OUT_EXECUTABLES)/incident-section-gen > $@
41$(gen): $(HOST_OUT_EXECUTABLES)/incident-section-gen
42	$(transform-generated-source)
43LOCAL_GENERATED_SOURCES += $(gen)
44
45gen_src_dir:=
46gen:=
47
48include $(BUILD_EXECUTABLE)
49