summaryrefslogtreecommitdiff
path: root/location/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 /location/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 'location/Android.mk')
-rw-r--r--location/Android.mk15
1 files changed, 7 insertions, 8 deletions
diff --git a/location/Android.mk b/location/Android.mk
index 6d2c9fa..ad66aff 100644
--- a/location/Android.mk
+++ b/location/Android.mk
@@ -24,18 +24,17 @@ LOCAL_SRC_FILES += \
LOCAL_CFLAGS += \
-fno-short-enums
-LOCAL_C_INCLUDES:= \
- $(TARGET_OUT_HEADERS)/gps.utils
-
-LOCAL_COPY_HEADERS_TO:= liblocation_api/
-LOCAL_COPY_HEADERS:= \
- LocationAPI.h \
- LocationAPIClientBase.h \
- location_interface.h
+LOCAL_HEADER_LIBRARIES := \
+ libgps.utils_headers
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
+include $(CLEAR_VARS)
+LOCAL_MODULE := liblocation_api_headers
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
+include $(BUILD_HEADER_LIBRARY)
+
endif # not BUILD_TINY_ANDROID
endif # BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE