Add version information to ze_intel_gpu DLL
*Adds template for setting level zero version *Updates level zero cmakelists to include resource file if defined Related-To: NEO-5648 Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
This commit is contained in:
parent
ed31aaedb8
commit
b563c59e76
|
@ -213,6 +213,7 @@ if(BUILD_WITH_L0)
|
|||
include_directories(experimental/source/tracing)
|
||||
|
||||
# Create our shared library/DLL
|
||||
configure_file(ze_intel_gpu_version.h.in ${NEO_BUILD_DIR}/ze_intel_gpu_version.h)
|
||||
add_library(${TARGET_NAME_L0}
|
||||
SHARED
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
|
@ -255,6 +256,11 @@ if(BUILD_WITH_L0)
|
|||
dxgi
|
||||
ws2_32
|
||||
)
|
||||
if(DEFINED L0_DLL_RC_FILE)
|
||||
message(STATUS "Setting L0 Resource Info")
|
||||
configure_file(${L0_DLL_RC_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/ze_intel_gpu.rc COPYONLY)
|
||||
target_sources(${TARGET_NAME_L0} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/ze_intel_gpu.rc)
|
||||
endif()
|
||||
else()
|
||||
target_sources(${TARGET_NAME_L0}
|
||||
PRIVATE
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ZE_INTEL_GPU_VERSION_H
|
||||
#define ZE_INTEL_GPU_VERSION_H
|
||||
|
||||
#define VER_FILEVERSION ${PROJECT_VERSION_MAJOR},${PROJECT_VERSION_MINOR},${PROJECT_VERSION_PATCH}
|
||||
#define VER_FILEVERSION_STR "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\0"
|
||||
|
||||
#endif /* ZE_INTEL_GPU_VERSION_H */
|
Loading…
Reference in New Issue