Skip to content

Commit afecb61

Browse files
committed
static
1 parent 77d98e1 commit afecb61

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

cmake/vcpkg-ports/dawn/portfile.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NOTE: dynamic library vs. static library
22
#
3-
# The Dawn vcpkg port requires to be built as a shared library, and we are building Dawn as a shared library. However,
4-
# we need to set the `BUILD_SHARED_LIBS` option to `OFF` in this portfile. See the explanation below.
3+
# We are building Dawn as a shared library `webgpu_dawn`. However, we need to set the `BUILD_SHARED_LIBS` option to
4+
# `OFF` in this portfile. See the explanation below.
55
#
66
# In CMake convention, the `BUILD_SHARED_LIBS` option is used to control whether a library is built as a shared library or a static library.
77
# However, in the Dawn repository, there are multiple targets. Instead of building each target as a shared library, Dawn

cmake/vcpkg-ports/dawn/vcpkg.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"platform": "(windows | linux) & (arm64 | x64)"
3737
}
3838
],
39-
"supports": "!static",
4039
"features": {
4140
"windows-use-d3d12": {
4241
"description": "Enable D3D12 backend on Windows.",

tools/python/util/vcpkg_helpers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ def add_port_configs(f, has_exception: bool, is_emscripten: bool, enable_minimal
7878
endif() # End ONNX-specific block
7979
""")
8080

81-
# Add Dawn specific flags
82-
f.write(r"""
83-
if(PORT STREQUAL "dawn")
84-
set(VCPKG_LIBRARY_LINKAGE dynamic) # Always use dynamic link for Dawn
85-
endif()
86-
""")
87-
8881

8982
def add_copyright_header(f) -> None:
9083
"""

0 commit comments

Comments
 (0)