Debian Codegraph @

media_driver/agnostic/gen9_kbl/codec/hal/media_srcs.cmake

raw
1 # Copyright (c) 2017-2022, Intel Corporation
2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the "Software"),
5 # to deal in the Software without restriction, including without limitation
6 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 # and/or sell copies of the Software, and to permit persons to whom the
8 # Software is furnished to do so, subject to the following conditions:
9 #
10 # The above copyright notice and this permission notice shall be included
11 # in all copies or substantial portions of the Software.
12 #
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 # OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 # OTHER DEALINGS IN THE SOFTWARE.
20
21 # encode
22 set(TMP_3_SOURCES_ "")
23
24 set(TMP_3_HEADERS_ "")
25
26 if ("${AVC_Encode_VME_Supported}" STREQUAL "yes" OR "${AVC_Encode_VDEnc_Supported}" STREQUAL "yes")
27 if ("${AVC_Encode_VME_Supported}" STREQUAL "yes")
28 set (TMP_3_SOURCES_
29 ${TMP_3_SOURCES_}
30 ${CMAKE_CURRENT_LIST_DIR}/codechal_encode_avc_g9_kbl.cpp
31 )
32 set (TMP_3_HEADERS_
33 ${TMP_3_HEADERS_}
34 ${CMAKE_CURRENT_LIST_DIR}/codechal_encode_avc_g9_kbl.h
35 )
36 endif ()
37
38 if ("${AVC_Encode_VDEnc_Supported}" STREQUAL "yes")
39 set (TMP_3_SOURCES_
40 ${TMP_3_SOURCES_}
41 ${CMAKE_CURRENT_LIST_DIR}/codechal_vdenc_avc_g9_kbl.cpp
42 )
43 set (TMP_3_HEADERS_
44 ${TMP_3_HEADERS_}
45 ${CMAKE_CURRENT_LIST_DIR}/codechal_vdenc_avc_g9_kbl.h
46 )
47 endif ()
48 endif ()
49
50 if(${HEVC_Encode_VME_Supported} STREQUAL "yes")
51 set(TMP_3_SOURCES_
52 ${TMP_3_SOURCES_}
53 ${CMAKE_CURRENT_LIST_DIR}/codechal_encode_hevc_g9_kbl.cpp
54 )
55 set(TMP_3_HEADERS_
56 ${TMP_3_HEADERS_}
57 ${CMAKE_CURRENT_LIST_DIR}/codechal_encode_hevc_g9_kbl.h
58 )
59 endif()
60
61
62 set(SOURCES_
63 ${SOURCES_}
64 ${TMP_3_SOURCES_}
65 )
66
67 set(HEADERS_
68 ${HEADERS_}
69 ${TMP_3_HEADERS_}
70 )
71
72
73 set(CODEC_SOURCES_
74 ${CODEC_SOURCES_}
75 ${TMP_3_SOURCES_}
76 )
77
78 set(CODEC_HEADERS_
79 ${CODEC_HEADERS_}
80 ${TMP_3_HEADERS_}
81 )
82
83 source_group( CodecHal\\Encode FILES ${TMP_3_SOURCES_} ${TMP_3_HEADERS_} )
84 set(TMP_3_SOURCES_ "")
85 set(TMP_3_HEADERS_ "")
86
87 set(TMP_4_SOURCES_
88 ${CMAKE_CURRENT_LIST_DIR}/codechal_hw_g9_kbl.cpp
89 )
90
91 set(TMP_4_HEADERS_
92 ${CMAKE_CURRENT_LIST_DIR}/codechal_hw_g9_kbl.h
93 )
94
95 set(SOURCES_
96 ${SOURCES_}
97 ${TMP_4_SOURCES_}
98 )
99
100 set(HEADERS_
101 ${HEADERS_}
102 ${TMP_4_HEADERS_}
103 )
104
105 set(CODEC_SOURCES_
106 ${CODEC_SOURCES_}
107 ${TMP_4_SOURCES_}
108 )
109
110 set(CODEC_HEADERS_
111 ${CODEC_HEADERS_}
112 ${TMP_4_HEADERS_}
113 )
114
115 source_group( "CodecHal\\HW Interface" FILES ${TMP_4_SOURCES_} ${TMP_4_HEADERS_} )
116 set(TMP_4_SOURCES_ "")
117 set(TMP_4_HEADERS_ "")
118
119 media_add_curr_to_include_path()