Skip to content

Commit

Permalink
util: Log build target name
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Nov 27, 2024
1 parent 791d20e commit a49e4b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ nvapi_src = files([
'nvapi_interface.cpp',
])

nvapi_dll = shared_library('nvapi'+target_suffix, [ nvapi_src, dxvk_nvapi_version ],
target_name = 'nvapi'+target_suffix
nvapi_dll = shared_library(target_name, [ nvapi_src, dxvk_nvapi_version ],
cpp_args : '-DDXVK_NVAPI_TARGET_NAME="'+target_name+'"',
name_prefix : '',
dependencies : [ lib_dxgi, lib_d3d11, lib_version ],
include_directories : [ nvapi_headers, vk_headers ],
Expand All @@ -47,7 +49,9 @@ nvofapi_src = files([

# Only build 64-bit versions of nvofapi
if dxvk_cpu_family == 'x86_64'
nvofapi_dll = shared_library('nvofapi'+target_suffix, [ nvofapi_src, dxvk_nvapi_version ],
target_name = 'nvofapi'+target_suffix
nvofapi_dll = shared_library(target_name, [ nvofapi_src, dxvk_nvapi_version ],
cpp_args : '-DDXVK_NVAPI_TARGET_NAME="'+target_name+'"',
name_prefix : '',
dependencies : [ lib_version ],
include_directories : [ nvapi_headers, vk_headers ],
Expand Down
2 changes: 1 addition & 1 deletion src/util/util_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace dxvk::log {
std::setfill('0'), std::setw(4), std::hex, ::GetCurrentProcessId(), ":",
std::setfill('0'), std::setw(4), std::hex, ::GetCurrentThreadId(), ":",
level, ":",
"dxvk-nvapi:",
DXVK_NVAPI_TARGET_NAME, ":",
message);

print(logMessage);
Expand Down
4 changes: 3 additions & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ nvapi_tests_src = files([
'util.cpp',
])

nvapi_exe = executable('nvapi'+target_suffix+'-tests', [ nvapi_src, catch2_src, nvapi_tests_src, dxvk_nvapi_version ],
target_name = 'nvapi'+target_suffix+'-tests'
nvapi_exe = executable(target_name, [ nvapi_src, catch2_src, nvapi_tests_src, dxvk_nvapi_version ],
cpp_args : '-DDXVK_NVAPI_TARGET_NAME="'+target_name+'"',
dependencies : [ lib_dxgi, lib_d3d11, lib_version ],
include_directories : [ nvapi_headers, vk_headers ],
install : true)

0 comments on commit a49e4b8

Please sign in to comment.