mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 01:24:11 +01:00
[dxvk] Log build target and compiler used
This commit is contained in:
parent
9b272fb3f6
commit
8bca36460a
6
buildenv.h.in
Normal file
6
buildenv.h.in
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define DXVK_TARGET "@BUILD_TARGET@"
|
||||||
|
#define DXVK_COMPILER "@BUILD_COMPILER@"
|
||||||
|
#define DXVK_COMPILER_VERSION "@BUILD_COMPILER_VERSION@"
|
||||||
|
|
10
meson.build
10
meson.build
@ -205,6 +205,16 @@ dxvk_version = vcs_tag(
|
|||||||
output: 'version.h',
|
output: 'version.h',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
conf_data = configuration_data()
|
||||||
|
conf_data.set('BUILD_COMPILER', cpp.get_id())
|
||||||
|
conf_data.set('BUILD_COMPILER_VERSION', cpp.version())
|
||||||
|
conf_data.set('BUILD_TARGET', cpu_family)
|
||||||
|
dxvk_buildenv = configure_file(
|
||||||
|
configuration : conf_data,
|
||||||
|
input: 'buildenv.h.in',
|
||||||
|
output: 'buildenv.h',
|
||||||
|
)
|
||||||
|
|
||||||
if platform != 'windows'
|
if platform != 'windows'
|
||||||
subdir('include/native')
|
subdir('include/native')
|
||||||
endif
|
endif
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
#include <buildenv.h>
|
||||||
|
|
||||||
#include "dxvk_instance.h"
|
#include "dxvk_instance.h"
|
||||||
#include "dxvk_openvr.h"
|
#include "dxvk_openvr.h"
|
||||||
@ -20,6 +21,7 @@ namespace dxvk {
|
|||||||
DxvkInstance::DxvkInstance(const DxvkInstanceImportInfo& args, DxvkInstanceFlags flags) {
|
DxvkInstance::DxvkInstance(const DxvkInstanceImportInfo& args, DxvkInstanceFlags flags) {
|
||||||
Logger::info(str::format("Game: ", env::getExeName()));
|
Logger::info(str::format("Game: ", env::getExeName()));
|
||||||
Logger::info(str::format("DXVK: ", DXVK_VERSION));
|
Logger::info(str::format("DXVK: ", DXVK_VERSION));
|
||||||
|
Logger::info(str::format("Build: ", DXVK_TARGET, " ", DXVK_COMPILER, " ", DXVK_COMPILER_VERSION));
|
||||||
|
|
||||||
wsi::init();
|
wsi::init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user