diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-22 21:34:10 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-02-28 21:25:45 +0100 |
commit | fc568111ee52494c28bedfd72f5bc6e35649c646 (patch) | |
tree | 0c8b66258cacedc43347608dd6e856a2c262c131 /Android.mk | |
parent | c137579d09b0de9a903bd764bb0cb8196190dff3 (diff) | |
download | hardware_replicant_libsamsung-ipc-fc568111ee52494c28bedfd72f5bc6e35649c646.tar.gz hardware_replicant_libsamsung-ipc-fc568111ee52494c28bedfd72f5bc6e35649c646.tar.bz2 hardware_replicant_libsamsung-ipc-fc568111ee52494c28bedfd72f5bc6e35649c646.zip |
Android.mk: Also ship headers
Without that, the Android components that are using
libsamsung-ipc have to hardcode the location of
libsamsung-ipc to be able to access the headers.
LOCAL_EXPORT_C_INCLUDE_DIRS also enables the other
components depending on libsamsung-ipc to automatically add
the exported header directory to the header search path
during compilation.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -77,6 +77,29 @@ libsamsung_ipc_local_src_files := \ samsung-ipc/rfs.c \ samsung-ipc/gen.c +libsamsung_ipc_local_copy_headers := \ + include/call.h \ + include/disp.h \ + include/gen.h \ + include/gprs.h \ + include/imei.h \ + include/misc.h \ + include/net.h \ + include/pb.h \ + include/protocol.h \ + include/pwr.h \ + include/rfs.h \ + include/samsung-ipc.h \ + include/sat.h \ + include/sec.h \ + include/sms.h \ + include/snd.h \ + include/ss.h \ + include/svc.h \ + +local_export_c_include_dirs := \ + $(TARGET_OUT_HEADERS)/libsamsung-ipc + libsamsung_ipc_local_c_includes := \ $(LOCAL_PATH)/include \ $(LOCAL_PATH)/samsung-ipc \ @@ -108,6 +131,11 @@ LOCAL_C_INCLUDES := $(libsamsung_ipc_local_c_includes) LOCAL_CFLAGS := $(libsamsung_local_cflags) LOCAL_SHARED_LIBRARIES := $(libsamsung_ipc_local_shared_libraries) +LOCAL_COPY_HEADERS_TO := libsamsung-ipc +LOCAL_COPY_HEADERS := $(libsamsung_ipc_local_copy_headers) + +LOCAL_EXPORT_C_INCLUDE_DIRS := $(local_export_c_include_dirs) + include $(BUILD_STATIC_LIBRARY) ############################################ @@ -125,6 +153,8 @@ LOCAL_C_INCLUDES := $(libsamsung_ipc_local_c_includes) LOCAL_CFLAGS := $(libsamsung_local_cflags) LOCAL_SHARED_LIBRARIES := $(libsamsung_ipc_local_shared_libraries) +LOCAL_EXPORT_C_INCLUDE_DIRS := $(local_export_c_include_dirs) + include $(BUILD_SHARED_LIBRARY) ################## |