File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,22 @@ ifneq ($(strip $(LOCAL_IS_HOST_MODULE)),true)
137137 endif
138138endif
139139
140+ # Have anything that builds with libtinycompress as a shared lib use kernel headers.
141+
142+ ifdef LOCAL_SHARED_LIBRARIES
143+ ifneq (1,$(words $(filter libtinycompress, $(LOCAL_SHARED_LIBRARIES))))
144+ ifdef LOCAL_C_INCLUDES
145+ LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES ) /KERNEL_OBJ/usr/include
146+ else
147+ LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES ) /KERNEL_OBJ/usr/include
148+ endif
149+ ifdef LOCAL_ADDITIONAL_DEPENDENCIES
150+ LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES ) /KERNEL_OBJ/usr
151+ else
152+ LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES ) /KERNEL_OBJ/usr
153+ endif
154+ endif
155+ endif
140156
141157# end SaberMod
142158
You can’t perform that action at this time.
0 commit comments