• 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
17# libelf is not available in the Mac build as of June 2016, but we currently
18# only need to use this tool on Linux, so exclude this from non-Linux builds
19ifeq ($(HOST_OS),linux)
20
21LOCAL_PATH := $(call my-dir)
22
23include $(CLEAR_VARS)
24
25LOCAL_SRC_FILES := \
26    postprocess.c \
27    ../../lib/nanohub/nanoapp.c \
28
29LOCAL_CFLAGS := -Wall -Werror -Wextra
30
31LOCAL_C_INCLUDES += \
32    device/google/contexthub/lib/include \
33
34LOCAL_MODULE := nanoapp_postprocess
35
36# libelf needed for ELF parsing support, libz required by libelf
37LOCAL_STATIC_LIBRARIES := libelf libz
38
39# Statically linking libc++ so this binary can be copied out of the tree and
40# still work (needed by dependencies)
41LOCAL_CXX_STL := libc++_static
42
43LOCAL_MODULE_TAGS := optional
44
45include $(BUILD_HOST_EXECUTABLE)
46
47endif # linux
48