Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cc060617
Commit
cc060617
authored
Jul 13, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Jul 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Allow running make_vulkan from any working directory.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27f2f419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
make_vulkan
dlls/winevulkan/make_vulkan
+7
-0
No files found.
dlls/winevulkan/make_vulkan
View file @
cc060617
...
...
@@ -2721,6 +2721,11 @@ class VkRegistry(object):
self
.
handles
=
sorted
(
handles
,
key
=
lambda
handle
:
handle
.
name
)
self
.
structs
=
sorted
(
structs
,
key
=
lambda
struct
:
struct
.
name
)
def
set_working_directory
():
path
=
os
.
path
.
abspath
(
__file__
)
path
=
os
.
path
.
dirname
(
path
)
os
.
chdir
(
path
)
def
download_vk_xml
(
filename
):
url
=
"https://raw.github.com/KhronosGroup/Vulkan-Docs/v{0}/xml/vk.xml"
.
format
(
VK_XML_VERSION
)
if
not
os
.
path
.
isfile
(
filename
):
...
...
@@ -2738,6 +2743,8 @@ def main():
else
:
# > 1
LOGGER
.
setLevel
(
logging
.
DEBUG
)
set_working_directory
()
vk_xml
=
"vk-{0}.xml"
.
format
(
VK_XML_VERSION
)
download_vk_xml
(
vk_xml
)
registry
=
VkRegistry
(
vk_xml
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment