Home | History | Annotate | Download | only in nanoapp_postprocess
      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
     19 ifeq ($(HOST_OS),linux)
     20 
     21 LOCAL_PATH := $(call my-dir)
     22 
     23 include $(CLEAR_VARS)
     24 
     25 LOCAL_SRC_FILES := \
     26     postprocess_elf.c \
     27 
     28 LOCAL_CFLAGS := -Wall -Werror -Wextra
     29 
     30 LOCAL_STATIC_LIBRARIES := libnanohub_common
     31 
     32 LOCAL_MODULE := nanoapp_postprocess
     33 
     34 # libelf needed for ELF parsing support, libz required by libelf
     35 LOCAL_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)
     39 LOCAL_CXX_STL := libc++_static
     40 
     41 LOCAL_MODULE_TAGS := optional
     42 
     43 include $(BUILD_HOST_EXECUTABLE)
     44 
     45 endif # linux
     46