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)
18 # Obtain root HWC source path
19 HWC_PATH := $(call my-dir)
21 include $(HWC_PATH)/Android.common.mk
23 LOCAL_WHOLE_STATIC_LIBRARIES := \
24 libhwcomposer_common \
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)
36 ifeq ($(strip $(TARGET_USES_HWC2)), true)
39 $(HWC_PATH)/os/android/libhwcservice/Android.mk \
40 $(HWC_PATH)/os/android/libhwcservice/test/Android.mk \
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
47 include $(HWC_BUILD_DIRS)
50 # Static lib: libhwcomposer_common and libhwcomposer_wsi
51 include $(HWC_PATH)/common/Android.mk
52 include $(HWC_PATH)/wsi/Android.mk