• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18
19bootio_lib_src_files := \
20        protos.proto \
21        bootio_collector.cpp \
22
23bootio_src_files := \
24        bootio.cpp \
25
26bootio_shared_libs := \
27        libbase \
28        libcutils \
29        liblog \
30        libprotobuf-cpp-lite \
31
32bootio_cflags := \
33        -Wextra \
34
35define bootio_proto_include
36$(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
37endef
38
39# bootio static library
40# -----------------------------------------------------------------------------
41
42include $(CLEAR_VARS)
43
44LOCAL_MODULE := libbootio
45LOCAL_MODULE_CLASS := SHARED_LIBRARIES
46
47LOCAL_C_INCLUDES := \
48    $(LOCAL_PATH)/.. \
49    $(call bootio_proto_include) \
50
51LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
52LOCAL_CFLAGS := $(bootio_cflags)
53LOCAL_SHARED_LIBRARIES := $(bootio_shared_libs)
54LOCAL_PROTOC_OPTIMIZE_TYPE := lite
55LOCAL_SRC_FILES := $(bootio_lib_src_files)
56# Clang is required because of C++14
57LOCAL_CLANG := true
58
59include $(BUILD_SHARED_LIBRARY)
60
61
62# bootio binary
63# -----------------------------------------------------------------------------
64
65include $(CLEAR_VARS)
66
67LOCAL_MODULE := bootio
68LOCAL_CFLAGS := $(bootio_cflags)
69LOCAL_SHARED_LIBRARIES := \
70    $(bootio_shared_libs) \
71    libbootio \
72
73LOCAL_INIT_RC := bootio.rc
74LOCAL_SRC_FILES := $(bootio_src_files)
75# Clang is required because of C++14
76LOCAL_CLANG := true
77
78include $(BUILD_EXECUTABLE)
79