OSDN Git Service

fix build error
[android-x86/external-IA-Hardware-Composer.git] / Android.static.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 # Obtain root HWC source path
18 HWC_PATH := $(call my-dir)
19
20 LOCAL_PATH := $(call my-dir)
21 include $(CLEAR_VARS)
22 include $(HWC_PATH)/Android.common.mk
23
24 LOCAL_WHOLE_STATIC_LIBRARIES := \
25         libhwcomposer_common \
26         libhwcomposer_wsi
27
28 LOCAL_MODULE := libhwcomposer.$(TARGET_BOARD_PLATFORM)
29 include $(BUILD_STATIC_LIBRARY)
30
31 # Static lib: libhwcomposer_common and libhwcomposer_wsi
32 include $(HWC_PATH)/common/Android.mk
33 include $(HWC_PATH)/wsi/Android.mk
34
35 ifeq ($(strip $(TARGET_USES_HWC2)), true)
36 # libhwcservice
37 HWC_BUILD_DIRS := \
38 $(HWC_PATH)/os/android/libhwcservice/Android.mk \
39
40 include $(HWC_BUILD_DIRS)
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 endif
48
49 endif