xref: /aosp_15_r20/external/intel-media-driver/Tools/MediaDriverTools/Android/mk/media_driver.tpl (revision ba62d9d3abf0e404f2022b4cd7a85e107f48596f)
1
2# Copyright(c) 2018 Intel Corporation
3
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files(the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and / or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10
11# The above copyright notice and this permission notice shall be included
12# in all copies or substantial portions of the Software.
13
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20# OTHER DEALINGS IN THE SOFTWARE.
21
22LOCAL_PATH:= $(call my-dir)
23
24include $(CLEAR_VARS)
25
26LOCAL_SRC_FILES := \
27@LOCAL_SRC_FILES
28
29LOCAL_SHARED_LIBRARIES := \
30    libsync \
31    libcutils \
32    libutils \
33    libdrm \
34    libva \
35    liblog \
36
37
38LOCAL_STATIC_LIBRARIES = \
39    libgmm_umd \
40
41LOCAL_CPPFLAGS = \
42    -DDRV_I915 \
43    -DOTC_GRALLOC \
44    -DANDROID_VERSION=800 \
45    -fexceptions \
46    -frtti \
47    -std=c++14 \
48@LOCAL_CFLAGS
49
50LOCAL_CONLYFLAGS = -x c++
51LOCAL_CFLAGS = $(LOCAL_CPPFLAGS)
52
53LOCAL_C_INCLUDES  = \
54@LOCAL_C_INCLUDES
55
56
57#LOCAL_CPP_FEATURES := rtti exceptions
58
59LOCAL_MODULE := i965_drv_video
60LOCAL_PROPRIETARY_MODULE := true
61
62include $(BUILD_SHARED_LIBRARY)
63