• 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_elf.c \
27
28LOCAL_CFLAGS := -Wall -Werror -Wextra
29
30LOCAL_STATIC_LIBRARIES := libnanohub_common
31
32LOCAL_MODULE := nanoapp_postprocess
33
34# libelf needed for ELF parsing support, libz required by libelf
35LOCAL_STATIC_LIBRARIES += libelf libz
36
37# Statically linking libc++ so this binary can be copied out of the tree and
38# still work (needed by dependencies)
39LOCAL_CXX_STL := libc++_static
40
41LOCAL_MODULE_TAGS := optional
42
43include $(BUILD_HOST_EXECUTABLE)
44
45endif # linux
46