File tree Expand file tree Collapse file tree 7 files changed +17
-15
lines changed
test/unit_test/offline_compiler Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ if(BUILD_WITH_L0)
467
467
endif ()
468
468
endif ()
469
469
470
- append_sources_from_properties (L0_SHARED_LIB_SRCS L0_SRCS_DLL NEO_CORE_SRCS_LINK )
470
+ append_sources_from_properties (L0_SHARED_LIB_SRCS L0_SRCS_DLL NEO_CORE_SRCS_LINK NEO_SRCS_ENABLE_CORE )
471
471
target_sources (${TARGET_NAME_L0} PRIVATE $< TARGET_OBJECTS:${L0_RELEASE_LIB_NAME} > ${L0_SHARED_LIB_SRCS} )
472
472
473
473
target_link_libraries (${TARGET_NAME_L0}
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (C) 2018-2021 Intel Corporation
2
+ # Copyright (C) 2018-2022 Intel Corporation
3
3
#
4
4
# SPDX-License-Identifier: MIT
5
5
#
@@ -40,7 +40,10 @@ set(RUNTIME_SRCS_DLL_BASE
40
40
${EXPORTS_FILENAME}
41
41
)
42
42
43
- append_sources_from_properties (RUNTIME_SRCS_DLL_BASE NEO_CORE_SRCS_LINK )
43
+ append_sources_from_properties (RUNTIME_SRCS_DLL_BASE
44
+ NEO_CORE_SRCS_LINK
45
+ NEO_SRCS_ENABLE_CORE
46
+ )
44
47
45
48
set (RUNTIME_SRCS_DLL_LINUX
46
49
${NEO_SHARED_DIRECTORY} /dll/linux/drm_neo_create.cpp
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ set(IGDRCL_SRCS_offline_compiler_tests
78
78
${CLOC_LIB_SRCS_LIB}
79
79
${CLOC_LIB_SRCS_UTILITIES}
80
80
)
81
+ append_sources_from_properties (IGDRCL_SRCS_offline_compiler_tests NEO_SRCS_ENABLE_CORE )
81
82
82
83
if (WIN32 )
83
84
list (APPEND IGDRCL_SRCS_offline_compiler_tests
Original file line number Diff line number Diff line change @@ -153,10 +153,6 @@ macro(macro_for_each_core_type)
153
153
if (EXISTS ${SRC_FILE} _${CORE_TYPE_LOWER}.cpp )
154
154
list (APPEND CLOC_LIB_SRCS_LIB ${SRC_FILE} _${CORE_TYPE_LOWER}.cpp )
155
155
endif ()
156
- set (SRC_FILE ${NEO_SHARED_DIRECTORY}${BRANCH}${CORE_TYPE_LOWER}${BRANCH_DIR} enable_${CORE_TYPE_LOWER}.cpp )
157
- if (EXISTS ${SRC_FILE} )
158
- list (APPEND CLOC_LIB_SRCS_LIB ${SRC_FILE} )
159
- endif ()
160
156
endforeach ()
161
157
endforeach ()
162
158
endforeach ()
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright (C) 2019-2021 Intel Corporation
2
+ # Copyright (C) 2019-2022 Intel Corporation
3
3
#
4
4
# SPDX-License-Identifier: MIT
5
5
#
@@ -193,7 +193,10 @@ else()
193
193
endif ()
194
194
endif ()
195
195
196
- set_property (GLOBAL PROPERTY NEO_CORE_SRCS_LINK ${CORE_SRCS_LINK} )
196
+ set_property (GLOBAL APPEND PROPERTY NEO_CORE_SRCS_LINK ${CORE_SRCS_LINK} )
197
+
198
+ get_property (NEO_SRCS_ENABLE_CORE GLOBAL PROPERTY NEO_SRCS_ENABLE_CORE )
199
+ target_sources (ocloc_lib PRIVATE ${NEO_SRCS_ENABLE_CORE} )
197
200
if (UNIX )
198
201
set_property (GLOBAL APPEND PROPERTY NEO_CORE_SRCS_LINK ${CORE_SRCS_LINK_LINUX} )
199
202
endif ()
Original file line number Diff line number Diff line change @@ -139,13 +139,9 @@ macro(macro_for_each_core_type)
139
139
list (APPEND ${CORE_TYPE} _SRC_LINK_BASE ${SRC_FILE} )
140
140
endif ()
141
141
142
- set (SRC_FILE ${CORE_COREX_PREFIX}${BRANCH_DIR} enable_${CORE_TYPE_LOWER}.cpp )
143
- if (EXISTS ${SRC_FILE} )
144
- list (APPEND ${CORE_TYPE} _SRC_LINK_BASE ${SRC_FILE} )
145
- endif ()
146
142
set (SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${CORE_TYPE_LOWER} /enable_${CORE_TYPE_LOWER}.cpp )
147
143
if (EXISTS ${SRC_FILE} )
148
- list (APPEND ${CORE_TYPE} _SRC_LINK_BASE ${SRC_FILE} )
144
+ list (APPEND NEO_SRCS_ENABLE_CORE ${SRC_FILE} )
149
145
endif ()
150
146
151
147
set (SRC_FILE "${CORE_COREX_PREFIX} /os_agnostic_hw_info_config_${CORE_TYPE_LOWER} .inl" )
@@ -191,3 +187,4 @@ set_property(GLOBAL PROPERTY CORE_SRCS_COREX_ALL_BASE ${CORE_SRCS_COREX_ALL_BASE
191
187
set_property (GLOBAL PROPERTY CORE_SRCS_COREX_ALL_LINUX ${CORE_SRCS_COREX_ALL_LINUX} )
192
188
set_property (GLOBAL PROPERTY CORE_SRCS_COREX_ALL_WDDM ${CORE_SRCS_COREX_ALL_WDDM} )
193
189
set_property (GLOBAL PROPERTY CORE_SRCS_COREX_ALL_WINDOWS ${CORE_SRCS_COREX_ALL_WINDOWS} )
190
+ set_property (GLOBAL APPEND PROPERTY NEO_SRCS_ENABLE_CORE ${NEO_SRCS_ENABLE_CORE} )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ macro(macro_for_each_core_type)
40
40
if (EXISTS ${SRC_FILE} )
41
41
list (APPEND neo_libult_common_SRCS_ENABLE_TESTED_HW ${SRC_FILE} )
42
42
endif ()
43
- foreach (SRC_IT "enable_" " enable_family_full_core_" "implicit_scaling_" )
43
+ foreach (SRC_IT "enable_family_full_core_" "implicit_scaling_" )
44
44
set (SRC_FILE ${NEO_SHARED_DIRECTORY}${BRANCH}${CORE_TYPE_LOWER}${BRANCH_DIR}${SRC_IT}${CORE_TYPE_LOWER} .cpp )
45
45
if (EXISTS ${SRC_FILE} )
46
46
list (APPEND neo_libult_common_SRCS_ENABLE_TESTED_HW ${SRC_FILE} )
@@ -58,6 +58,8 @@ endmacro()
58
58
59
59
apply_macro_for_each_core_type ("TESTED" )
60
60
61
+ append_sources_from_properties (neo_libult_common_SRCS_ENABLE_TESTED_HW NEO_SRCS_ENABLE_CORE )
62
+
61
63
set (neo_libult_common_SRCS_LIB_ULT
62
64
${NEO_SHARED_TEST_DIRECTORY} /common/fixtures/aub_command_stream_receiver_fixture.h
63
65
${NEO_SHARED_TEST_DIRECTORY} /common/fixtures/device_fixture.cpp
You can’t perform that action at this time.
0 commit comments