aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch')
-rw-r--r--vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch b/vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch
new file mode 100644
index 0000000..1802d45
--- /dev/null
+++ b/vcpkg/ports/dawn/000-fix-emdawnwebgpu.patch
@@ -0,0 +1,19 @@
+diff --git a/emdawnwebgpu.port.py b/emdawnwebgpu.port.py
+index 4b90064..1956d0b 100644
+--- a/emdawnwebgpu.port.py
++++ b/emdawnwebgpu.port.py
+@@ -70,10 +70,10 @@ def _walk(path):
+ yield os.path.join(dirpath, filename)
+
+
+-_pkg_dir = os.path.dirname(os.path.realpath(__file__))
+-_c_include_dir = os.path.join(_pkg_dir, 'webgpu', 'include')
+-_cpp_include_dir = os.path.join(_pkg_dir, 'webgpu_cpp', 'include')
+-_src_dir = os.path.join(_pkg_dir, 'webgpu', 'src')
++_pkg_dir = os.path.dirname(os.path.realpath(os.path.join(__file__, '..', '..')))
++_c_include_dir = os.path.join(_pkg_dir, 'include')
++_cpp_include_dir = os.path.join(_pkg_dir, 'include')
++_src_dir = os.path.join(_pkg_dir, 'share', 'dawn', 'src')
+ _srcs = [
+ os.path.join(_src_dir, 'webgpu.cpp'),
+ ]