summaryrefslogtreecommitdiff
path: root/utils/platform_lib_abstractions/loc_stub/src/Android.mk
diff options
context:
space:
mode:
authorDante Russo <drusso@codeaurora.org>2017-06-26 17:59:41 -0700
committerDante Russo <drusso@codeaurora.org>2017-06-27 17:36:14 -0700
commitdc29f91ec62c028866c595a1eae622ab04b42f2b (patch)
treeb4790013a9c8664563ef4cbd72eb625acd178580 /utils/platform_lib_abstractions/loc_stub/src/Android.mk
parent1e31567ced60ed7970a990543bdf385ce0975b43 (diff)
downloadgps-dc29f91ec62c028866c595a1eae622ab04b42f2b.tar.gz
Removing header copying to out folder
Replace copying header files to out folder for use by other modules to instead build headers into separate libraries that end with _headers that can be used by other modules. Change-Id: I073967cd34e5c79110895908a4eef1b7d17bf9ea CRs-fixed: 2068129
Diffstat (limited to 'utils/platform_lib_abstractions/loc_stub/src/Android.mk')
-rw-r--r--utils/platform_lib_abstractions/loc_stub/src/Android.mk15
1 files changed, 6 insertions, 9 deletions
diff --git a/utils/platform_lib_abstractions/loc_stub/src/Android.mk b/utils/platform_lib_abstractions/loc_stub/src/Android.mk
index e899ca3..041ba64 100644
--- a/utils/platform_lib_abstractions/loc_stub/src/Android.mk
+++ b/utils/platform_lib_abstractions/loc_stub/src/Android.mk
@@ -31,15 +31,6 @@ LOCAL_LDFLAGS += -Wl,--export-dynamic
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/../include \
-
-LOCAL_COPY_HEADERS_TO:= libloc_stub/
-LOCAL_COPY_HEADERS:= \
- ../include/loc_stub_android_runtime.h \
- ../include/loc_stub_gettid.h \
- ../include/loc_stub_property_service.h \
- ../include/loc_stub_sched_policy.h \
- ../include/loc_stub_time.h
-
LOCAL_MODULE := libloc_stub
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
@@ -48,5 +39,11 @@ LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := libloc_stub_headers
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include
+include $(BUILD_HEADER_LIBRARY)
+
endif # not BUILD_TINY_ANDROID
endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE