Skip to content

Commit c54c7ec

Browse files
committed
loader: Add def file for Windows DLL.
Required to export un-decorated names.
1 parent e23c8b2 commit c54c7ec

2 files changed

Lines changed: 79 additions & 0 deletions

File tree

src/loader/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ run_xr_xml_generate(loader_source_generator.py xr_generated_loader.cpp)
5151
if(DYNAMIC_LOADER)
5252
add_definitions(-DXRAPI_DLL_EXPORT)
5353
set(LIBRARY_TYPE SHARED)
54+
if(WIN32)
55+
list(APPEND openxr_loader_RESOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/openxr-loader.def)
56+
endif()
5457
else() # build static lib
5558
set(LIBRARY_TYPE STATIC)
5659
endif()

src/loader/openxr-loader.def

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
;;;; Begin Copyright Notice ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3+
;
4+
; Copyright (c) 2019 The Khronos Group Inc.
5+
;
6+
; Licensed under the Apache License, Version 2.0 (the "License");
7+
; you may not use this file except in compliance with the License.
8+
; You may obtain a copy of the License at
9+
;
10+
; http://www.apache.org/licenses/LICENSE-2.0
11+
;
12+
; Unless required by applicable law or agreed to in writing, software
13+
; distributed under the License is distributed on an "AS IS" BASIS,
14+
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
; See the License for the specific language governing permissions and
16+
; limitations under the License.
17+
;
18+
;;;; End Copyright Notice ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
19+
20+
LIBRARY openxr_loader.dll
21+
EXPORTS
22+
xrCreateInstance
23+
xrDestroyInstance
24+
xrEnumerateApiLayerProperties
25+
xrEnumerateInstanceExtensionProperties
26+
xrGetInstanceProcAddr
27+
xrGetInstanceProperties
28+
xrPollEvent
29+
xrResultToString
30+
xrStructureTypeToString
31+
xrGetSystem
32+
xrGetSystemProperties
33+
xrEnumerateEnvironmentBlendModes
34+
xrCreateSession
35+
xrDestroySession
36+
xrEnumerateReferenceSpaces
37+
xrCreateReferenceSpace
38+
xrGetReferenceSpaceBoundsRect
39+
xrCreateActionSpace
40+
xrLocateSpace
41+
xrDestroySpace
42+
xrEnumerateViewConfigurations
43+
xrGetViewConfigurationProperties
44+
xrEnumerateViewConfigurationViews
45+
xrEnumerateSwapchainFormats
46+
xrCreateSwapchain
47+
xrDestroySwapchain
48+
xrEnumerateSwapchainImages
49+
xrAcquireSwapchainImage
50+
xrWaitSwapchainImage
51+
xrReleaseSwapchainImage
52+
xrBeginSession
53+
xrEndSession
54+
xrRequestExitSession
55+
xrWaitFrame
56+
xrBeginFrame
57+
xrEndFrame
58+
xrLocateViews
59+
xrStringToPath
60+
xrPathToString
61+
xrCreateActionSet
62+
xrDestroyActionSet
63+
xrCreateAction
64+
xrDestroyAction
65+
xrSuggestInteractionProfileBindings
66+
xrAttachSessionActionSets
67+
xrGetCurrentInteractionProfile
68+
xrGetActionStateBoolean
69+
xrGetActionStateFloat
70+
xrGetActionStateVector2f
71+
xrGetActionStatePose
72+
xrSyncActions
73+
xrEnumerateBoundSourcesForAction
74+
xrGetInputSourceLocalizedName
75+
xrApplyHapticFeedback
76+
xrStopHapticFeedback

0 commit comments

Comments
 (0)