Skip to content

Commit

Permalink
libtinycompress: use kernel headers when used as a shared lib
Browse files Browse the repository at this point in the history
Change-Id: Ib6ceff06cf8f9b2780523b673f46b6dba6f46320
Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
  • Loading branch information
pbeeler committed Mar 8, 2015
1 parent a0a11c2 commit 4105621
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/binary.mk
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,22 @@ ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),true)
endif
endif

# Have anything that builds with libtinycompress as a shared lib use kernel headers.

ifdef LOCAL_SHARED_LIBRARIES
ifeq (1,$(words $(filter libtinycompress, $(LOCAL_SHARED_LIBRARIES))))
ifdef LOCAL_C_INCLUDES
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
else
LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
endif
ifdef LOCAL_ADDITIONAL_DEPENDENCIES
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
else
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
endif
endif
endif

#end SaberMod

Expand Down

0 comments on commit 4105621

Please sign in to comment.