summaryrefslogtreecommitdiffstats
path: root/liblights/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'liblights/Android.mk')
-rw-r--r--liblights/Android.mk19
1 files changed, 16 insertions, 3 deletions
diff --git a/liblights/Android.mk b/liblights/Android.mk
index 3acc7ba..03af771 100644
--- a/liblights/Android.mk
+++ b/liblights/Android.mk
@@ -12,17 +12,30 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
-
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := lights.c
+LOCAL_SRC_FILES := lights_helper.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
+
+LOCAL_SHARED_LIBRARIES := liblog
+
+LOCAL_MODULE := liblights_helper
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_STATIC_LIBRARY)
+
+ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := lights.c
LOCAL_SHARED_LIBRARIES := liblog
+LOCAL_STATIC_LIBRARIES := liblights_helper
LOCAL_MODULE := lights.$(TARGET_BOOTLOADER_BOARD_NAME)
LOCAL_MODULE_RELATIVE_PATH := hw