2017-12-27 22:12:27 +08:00
|
|
|
# Copyright (c) 2018, Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
# copy of this software and associated documentation files (the "Software"),
|
|
|
|
# to deal in the Software without restriction, including without limitation
|
|
|
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
# and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
# Software is furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included
|
|
|
|
# in all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
|
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
|
|
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
# OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
set(IGDRCL_SRCS_tests_gen9
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cmd_parse_gen9.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/coherency_tests.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_kernel.cpp
|
2018-01-17 15:37:47 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/enqueue_media_kernel.cpp
|
2017-12-21 07:45:38 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gen_cmd_parse.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/hw_helper_tests.cpp
|
2018-01-23 20:40:37 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/image_tests.cpp
|
2018-01-24 17:23:11 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sampler_tests.cpp
|
2018-03-09 21:40:31 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sip_tests.cpp
|
2017-12-21 07:45:38 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_device_caps.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_device_queue_hw.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_platform_caps.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_preemption.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/test_sample.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/linux/drm_mapper_tests.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/linux/device_factory_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
endif(NOT MSVC)
|
|
|
|
|
|
|
|
if(TESTS_SKL)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_skl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/device_tests_skl.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/test_device_caps_skl.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/test_preamble_skl.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/test_sample_skl.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_skl_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/linux/hw_info_config_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-05 15:54:46 +08:00
|
|
|
|
|
|
|
list(APPEND IGDRCL_SRCS_linux_dll_tests_gen9
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/skl/linux/dll/device_id_tests.cpp
|
|
|
|
)
|
2017-12-21 07:45:38 +08:00
|
|
|
endif(NOT MSVC)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(TESTS_GLK)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_glk
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/glk/test_device_caps_glk.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_glk_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/glk/linux/hw_info_config_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-07 15:32:09 +08:00
|
|
|
|
|
|
|
list(APPEND IGDRCL_SRCS_linux_dll_tests_gen9
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/glk/linux/dll/device_id_tests.cpp
|
|
|
|
)
|
2017-12-21 07:45:38 +08:00
|
|
|
endif(NOT MSVC)
|
|
|
|
endif()
|
|
|
|
|
2017-12-27 22:12:27 +08:00
|
|
|
if(TESTS_CFL)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_cfl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cfl/test_device_caps_cfl.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_cfl_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cfl/linux/hw_info_config_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-05 15:54:46 +08:00
|
|
|
|
|
|
|
list(APPEND IGDRCL_SRCS_linux_dll_tests_gen9
|
2018-02-27 21:43:54 +08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/cfl/linux/dll/${BRANCH_DIR_SUFFIX}/device_id_tests.cpp
|
2018-02-05 15:54:46 +08:00
|
|
|
)
|
2017-12-27 22:12:27 +08:00
|
|
|
endif(NOT MSVC)
|
|
|
|
endif()
|
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
if(TESTS_BXT)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_bxt
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bxt/device_tests_bxt.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bxt/test_device_caps_bxt.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_bxt_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bxt/linux/hw_info_config_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-05 15:54:46 +08:00
|
|
|
|
|
|
|
list(APPEND IGDRCL_SRCS_linux_dll_tests_gen9
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bxt/linux/dll/device_id_tests.cpp
|
|
|
|
)
|
2017-12-21 07:45:38 +08:00
|
|
|
endif(NOT MSVC)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(TESTS_KBL)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_kbl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/kbl/test_device_caps_kbl.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_kbl_linux
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/kbl/linux/hw_info_config_tests.cpp
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-05 15:54:46 +08:00
|
|
|
|
|
|
|
list(APPEND IGDRCL_SRCS_linux_dll_tests_gen9
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/kbl/linux/dll/device_id_tests.cpp
|
|
|
|
)
|
2017-12-21 07:45:38 +08:00
|
|
|
endif(NOT MSVC)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
set(IGDRCL_SRCS_tests_gen9_windows
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/windows/wddm_mapper_tests.cpp"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/windows/os_interface_tests.cpp"
|
2018-02-05 18:48:58 +08:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/windows/translationtable_callbacks_tests.cpp"
|
2017-12-21 07:45:38 +08:00
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2018-02-05 15:54:46 +08:00
|
|
|
else()
|
|
|
|
set(IGDRCL_SRCS_linux_dll_tests_gen9
|
|
|
|
${IGDRCL_SRCS_linux_dll_tests_gen9}
|
|
|
|
PARENT_SCOPE
|
|
|
|
)
|
2017-12-21 07:45:38 +08:00
|
|
|
endif(MSVC)
|