OSDN Git Service

Fix a misstike when LogicalDisplaymanager do present
[android-x86/external-IA-Hardware-Composer.git] / Android.mk
1 # Copyright (c) 2017 Intel Corporation
2 #
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
15
16 ifeq ($(strip $(BOARD_USES_IA_HWCOMPOSER)), true)
17
18 # Obtain root HWC source path
19 HWC_PATH := $(call my-dir)
20 include $(CLEAR_VARS)
21 include $(HWC_PATH)/Android.common.mk
22
23 LOCAL_WHOLE_STATIC_LIBRARIES := \
24         libhwcomposer_common \
25         libhwcomposer_wsi
26
27 LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
28 LOCAL_MODULE_TAGS := optional
29 # Preffered paths for all vendor hals /vendor/lib/hw
30 LOCAL_PROPRIETARY_MODULE := true
31 LOCAL_MODULE_RELATIVE_PATH := hw
32 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
33 LOCAL_MODULE_SUFFIX := $(TARGET_SHLIB_SUFFIX)
34 include $(BUILD_SHARED_LIBRARY)
35
36 ifeq ($(strip $(TARGET_USES_HWC2)), true)
37 # libhwcservice
38 HWC_BUILD_DIRS := \
39 $(HWC_PATH)/os/android/libhwcservice/Android.mk \
40 $(HWC_PATH)/os/android/libhwcservice/test/Android.mk \
41
42 # Include tests only if eng build
43 ifneq (,$(filter eng,$(TARGET_BUILD_VARIANT)))
44 #include $(HWC_PATH)/tests/hwc-val/tests/hwc/Android.mk
45 endif
46
47 include $(HWC_BUILD_DIRS)
48 endif
49
50 # Static lib: libhwcomposer_common and libhwcomposer_wsi
51 include $(HWC_PATH)/common/Android.mk
52 include $(HWC_PATH)/wsi/Android.mk
53
54 endif