Hello,
I’m having some trouble getting exported include paths into the intermediate that is generated for a shared library.
I have a library called coreGL whose Android.mk file looks like This
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../\
$(LOCAL_PATH)/../../Vendor/fmt/include\
$(LOCAL_PATH)/../../Vendor/Eigen
# I have tried this with LOCAL_EXPORT_C_INCLUDE_DIRS as well
LOCAL_EXPORT_C_INCLUDES: := $(LOCAL_PATH)/../../
FILE_LIST := $(wildcard $(LOCAL_PATH)/*.cpp )
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_SRC_FILES += $(call all-cpp-files-under, Android )
LOCAL_LDLIBS += -lEGL
LOCAL_LDLIBS += -lGLESv3
LOCAL_LDLIBS += -llog
LOCAL_SHARED_LIBRARIES := com.rylo.coreBase\
com.rylo.fmt\
com.rylo.coreLog
ifeq ($(filter $(MESA_ANDROID_MAJOR_VERSION),5 6 7),)
LOCAL_SHARED_LIBRARIES += libnativewindow
endif
LOCAL_MODULE := com.rylo.coreGL
include $(BUILD_SHARED_LIBRARY)
I’m using the library in another module whose Android.mk looks like This
LOCAL_PATH := $(call my-dir)
CAMX_CHICDK_PATH := $(LOCAL_PATH)/../../qcom/proprietary/chi-cdk/
include $(CLEAR_VARS)
# Module supports function call tracing via ENABLE_FUNCTION_CALL_TRACE
# Required before including common.mk
SUPPORT_FUNCTION_CALL_TRACE := 1
# Get definitions common to the CAMX project here
include $(CAMX_CHICDK_PATH)/vendor/common.mk
LOCAL_INC_FILES := \
rylostitchnode.h
LOCAL_SRC_FILES := \
rylostitchnode.cpp
LOCAL_C_LIBS := $(CAMX_C_LIBS)
LOCAL_C_INCLUDES := \
$(CAMX_C_INCLUDES) \
$(CAMX_CDK_PATH)/node/ \
system/media/camera/include
# Compiler flags
LOCAL_CFLAGS := $(CAMX_CFLAGS)
LOCAL_CPPFLAGS := $(CAMX_CPPFLAGS)
LOCAL_SHARED_LIBRARIES := \
libcamera_metadata \
libcom.qti.chinodeutils\
com.rylo.coreGL
LOCAL_LDLIBS += -lEGL
LOCAL_LDLIBS += -lGLESv2
LOCAL_MODULE := com.qti.node.stich
LOCAL_MODULE_PATH := $(CAMX_LIB_OUTPUT_PATH)
include $(BUILD_SHARED_LIBRARY)
The include paths exported are not added to the -I flags when compiling the module.
I cleaned the coreGL lib, rebuilt it and went to out/target/…/SHARED_LIBRARIES/com.rylo.coreGL_intermediates/export_includes however it is empty
From what I understand, the LOCAL_EXPORT_C_INCLUDES should get added to the libraries export_includes. Can anyone tell what I’m doing wrong which result
the include paths not being exported ?
Thanks
Kartik
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.