-
Notifications
You must be signed in to change notification settings - Fork 7
/
meson_dav1d.mk
49 lines (37 loc) · 1.4 KB
/
meson_dav1d.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: Apache-2.0
#
# AOSPEXT project (https://github.com/GloDroid/aospext)
#
# Copyright (C) 2021 GlobalLogic Ukraine
# Copyright (C) 2021-2023 Roman Stratiienko ([email protected])
ifneq ($(filter true, $(BOARD_BUILD_AOSPEXT_DAV1D)),)
LOCAL_PATH := $(call my-dir)
include $(LOCAL_PATH)/aospext_cleanup.mk
AOSPEXT_PROJECT_NAME := DAV1D
AOSPEXT_BUILD_SYSTEM := meson
LOCAL_SHARED_LIBRARIES := libc
# Format: TYPE:REL_PATH_TO_INSTALL_ARTIFACT:VENDOR_SUBDIR:MODULE_NAME:SYMLINK_SUFFIX
# TYPE one of: lib, bin, etc
AOSPEXT_GEN_TARGETS := \
bin:dav1d::dav1d: \
lib:libdav1d.so::libdav1d: \
$(BOARD_DAV1D_EXTRA_TARGETS)
AOSPEXT_EXPORT_INSTALLED_INCLUDE_DIRS := vendor/include
LOCAL_MULTILIB := first
include $(LOCAL_PATH)/aospext_cross_compile.mk
TMP_AOSPEXT_TARGET_FIRST:=$(AOSPEXT_INTERNAL_BUILD_TARGET)
ifdef TARGET_2ND_ARCH
LOCAL_MULTILIB := 32
include $(LOCAL_PATH)/aospext_cross_compile.mk
TMP_AOSPEXT_TARGET_32:=$(AOSPEXT_INTERNAL_BUILD_TARGET)
endif
LOCAL_MULTILIB := first
AOSPEXT_INTERNAL_BUILD_TARGET:=$(TMP_AOSPEXT_TARGET_FIRST)
include $(LOCAL_PATH)/aospext_gen_targets.mk
ifdef TARGET_2ND_ARCH
LOCAL_MULTILIB := 32
AOSPEXT_INTERNAL_BUILD_TARGET:=$(TMP_AOSPEXT_TARGET_32)
include $(LOCAL_PATH)/aospext_gen_targets.mk
endif
#-------------------------------------------------------------------------------
endif # BOARD_BUILD_AOSPEXT_DAV1D