blob: 3acc7ba30e550d6c5c1675addd1371a6d593188e [file] [log] [blame]
Christopher N. Hesseae271482016-12-01 15:51:12 +01001# Copyright (C) 2015-2016 The CyanogenMod Project
Christopher N. Hesse79a9b152016-01-26 12:17:55 +01002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010015ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
16
Christopher N. Hesseae271482016-12-01 15:51:12 +010017LOCAL_PATH := $(call my-dir)
18
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010019include $(CLEAR_VARS)
20
Christopher N. Hesseae271482016-12-01 15:51:12 +010021LOCAL_SRC_FILES := lights.c
22
23LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
24
25LOCAL_SHARED_LIBRARIES := liblog
26
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010027LOCAL_MODULE := lights.$(TARGET_BOOTLOADER_BOARD_NAME)
28LOCAL_MODULE_RELATIVE_PATH := hw
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010029LOCAL_MODULE_TAGS := optional
30
31include $(BUILD_SHARED_LIBRARY)
32
33endif