-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update resources script/metadata for windows dlls builds
- Loading branch information
Showing
5 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ | |
|
||
#include <xrlib/session.hpp> | ||
#include <xrlib/vulkan.hpp> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* xrlib: | ||
* Copyright (c) 2024 Rune Berg (http://runeberg.io | https://github.com/1runeberg) | ||
* Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* openxr_loader: | ||
* Copyright (c) 2017-2024, The Khronos Group Inc. | ||
* Copyright (c) 2017 Valve Corporation | ||
* Copyright (c) 2017 LunarG, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 OR MIT | ||
* Initial Author: Mark Young <[email protected]> | ||
* | ||
* ============================================================================= | ||
* THIS WINDOWS RESOURCE FILE REPLACES OPENXR'S LOADER RC DURING XRLIB CMAKE RUN | ||
* ============================================================================= | ||
*/ | ||
|
||
#ifdef __MINGW32__ | ||
#include "winresrc.h" // For GCC/GNU toolchain | ||
#else | ||
#include "winres.h" // MSVC toolchain | ||
#endif | ||
|
||
#define XRLIB_NAME "xrlib" | ||
#define XRLIB_VERSION_MAJOR 1 | ||
#define XRLIB_VERSION_MINOR 0 | ||
#define XRLIB_VERSION_PATCH 0 | ||
#define XRLIB_VERSION_TWEAK 0 | ||
|
||
#define XRLIB_VERSION XRLIB_VERSION_MAJOR "." XRLIB_VERSION_MINOR "." XRLIB_VERSION_PATCH "." XRLIB_VERSION_TWEAK | ||
#define OPENXR_VERSION "1.1.38" | ||
#define XRLIB_PRODUCT_NAME "xrlib 1.0.0.0 | openxr_loader 1.1.38" | ||
|
||
#define XRLIB_COMPANY_NAME "https://github.com/1runeberg/xrlib" | ||
#define XRLIB_FILE_DESC "xrlib - OpenXR wrapper library for modern C++" | ||
#define XRLIB_FILENAME XRLIB_NAME ".dll" | ||
#define XRLIB_COPYRIGHT "xrlib (c) 2024 Rune Berg | openxr_loader (c) 2017-24 The Khronos Group Inc." | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION XRLIB_VERSION_MAJOR,XRLIB_VERSION_MINOR,XRLIB_VERSION_PATCH,XRLIB_VERSION_TWEAK // Define the file version using macros from version.h | ||
PRODUCTVERSION XRLIB_VERSION_MAJOR,XRLIB_VERSION_MINOR,XRLIB_VERSION_PATCH,XRLIB_VERSION_TWEAK // Define the product version using macros from version.h | ||
FILEFLAGSMASK 0x3fL // Specify which flags in FILEFLAGS are valid (0x3fL means all six defined flags can be used) | ||
|
||
#ifdef _DEBUG | ||
FILEFLAGS VS_FF_DEBUG // If this is a debug build, set the debug flag | ||
#else | ||
FILEFLAGS 0x0L // Otherwise, no special flags are set | ||
#endif | ||
|
||
FILEOS VOS_NT_WINDOWS32 // Targeting Windows NT-based OS (both 32-bit and 64-bit) | ||
FILETYPE VFT_DLL // Identify as a shared library (dll) | ||
FILESUBTYPE VFT2_UNKNOWN // No specific subtype | ||
|
||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904B0" // Language and code page: 0x0409 is U.S. English, 0x04B0 is Unicode | ||
BEGIN | ||
VALUE "CompanyName", XRLIB_COMPANY_NAME | ||
VALUE "FileDescription", XRLIB_FILE_DESC | ||
VALUE "FileVersion", XRLIB_VERSION | ||
VALUE "InternalName", XRLIB_NAME | ||
VALUE "OriginalFilename", XRLIB_FILENAME | ||
VALUE "ProductName", XRLIB_PRODUCT_NAME | ||
VALUE "ProductVersion", XRLIB_VERSION | ||
VALUE "Copyright", XRLIB_COPYRIGHT | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x1409, 0x04B0 // Language: 0x0409 (U.S. English), Code page: 0x04B0 (Unicode) | ||
END | ||
END | ||
|