1 # Copyright (c) 2017 Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 ifeq ($(strip $(BOARD_USES_IA_HWCOMPOSER)), true)
17 # Obtain root HWC source path
18 HWC_PATH := $(call my-dir)
20 LOCAL_PATH := $(call my-dir)
22 include $(HWC_PATH)/Android.common.mk
24 LOCAL_WHOLE_STATIC_LIBRARIES := \
25 libhwcomposer_common \
28 LOCAL_MODULE := libhwcomposer.$(TARGET_BOARD_PLATFORM)
29 include $(BUILD_STATIC_LIBRARY)
31 # Static lib: libhwcomposer_common and libhwcomposer_wsi
32 include $(HWC_PATH)/common/Android.mk
33 include $(HWC_PATH)/wsi/Android.mk
35 ifeq ($(strip $(TARGET_USES_HWC2)), true)
38 $(HWC_PATH)/os/android/libhwcservice/Android.mk \
40 include $(HWC_BUILD_DIRS)
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