blob: a1629f10fdd2f31ca81c8fa36ac5df46f454fd79 [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. Hesseae271482016-12-01 15:51:12 +010015LOCAL_PATH := $(call my-dir)
16
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010017include $(CLEAR_VARS)
18
Christopher N. Hesse898e1fe2016-12-07 12:12:23 +010019LOCAL_SRC_FILES := lights_helper.c
20
21LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
22LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
23
24LOCAL_SHARED_LIBRARIES := liblog
25
26LOCAL_MODULE := liblights_helper
27LOCAL_MODULE_TAGS := optional
28
29include $(BUILD_STATIC_LIBRARY)
30
31ifneq ($(TARGET_PROVIDES_LIBLIGHT),true)
32
33include $(CLEAR_VARS)
34
Christopher N. Hesseae271482016-12-01 15:51:12 +010035LOCAL_SRC_FILES := lights.c
36
Christopher N. Hesseae271482016-12-01 15:51:12 +010037LOCAL_SHARED_LIBRARIES := liblog
Christopher N. Hesse898e1fe2016-12-07 12:12:23 +010038LOCAL_STATIC_LIBRARIES := liblights_helper
Christopher N. Hesseae271482016-12-01 15:51:12 +010039
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010040LOCAL_MODULE := lights.$(TARGET_BOOTLOADER_BOARD_NAME)
41LOCAL_MODULE_RELATIVE_PATH := hw
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010042LOCAL_MODULE_TAGS := optional
Diego Wilson6b2b66c2017-02-24 17:07:28 -080043LOCAL_PROPRIETARY_MODULE := true
Christopher N. Hesse79a9b152016-01-26 12:17:55 +010044
45include $(BUILD_SHARED_LIBRARY)
46
47endif