diff options
author | Colin Cross <ccross@android.com> | 2014-02-21 15:27:04 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-02-21 15:27:04 -0800 |
commit | 028a3e21476437685a1df497b7abac6a12f19885 (patch) | |
tree | e08865b7c8d42510ab9cb151524cf6e29572897b | |
parent | 823435f737de20d5ca9f4aa2ba0ae2950dbb5d4f (diff) | |
download | android_external_libnl-028a3e21476437685a1df497b7abac6a12f19885.tar.gz android_external_libnl-028a3e21476437685a1df497b7abac6a12f19885.tar.bz2 android_external_libnl-028a3e21476437685a1df497b7abac6a12f19885.zip |
libnl: build static library
android-clat needs a static libnl, so build a static library. To
avoid building everything twice, build the static library first
and then use LOCAL_WHOLE_STATIC_LIBRARIES to build a shared library.
Also use LOCAL_EXPORT_C_INCLUDE_DIRS to avoid each module that builds
against libnl to have to import its include dir, and remove the
unnecessary LOCAL_MODULE_TAGS.
Change-Id: Ib78e89e916c402787ba3f801bdf8400cbf0d784a
-rw-r--r-- | Android.mk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -27,8 +27,15 @@ LOCAL_SRC_FILES := lib/cache.c \ lib/error.c LOCAL_C_INCLUDES := $(LOCAL_PATH)/include +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include +LOCAL_MODULE := libnl + +include $(BUILD_STATIC_LIBRARY) + +include $(CLEAR_VARS) -LOCAL_MODULE_TAGS := eng +LOCAL_WHOLE_STATIC_LIBRARIES := libnl +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_MODULE := libnl include $(BUILD_SHARED_LIBRARY) |