mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Make all libraries STATIC for now
For shared library to work on Windows to work, we need to add declspec(export) and declspec(import) annotations to the symbols to export. This fixes the problem by making all libraries static on Windows, but we'll need to revisit and do proper symbol exports.
This commit is contained in:
committed by
Corentin Wallez
parent
5fbdff6888
commit
26275d0a16
@@ -138,7 +138,7 @@ if (APPLE)
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(nxt_backend SHARED ${BACKEND_SOURCES})
|
||||
add_library(nxt_backend STATIC ${BACKEND_SOURCES})
|
||||
target_link_libraries(nxt_backend opengl_autogen null_autogen glfw glad spirv-cross)
|
||||
if (APPLE)
|
||||
target_link_libraries(nxt_backend metal_autogen)
|
||||
|
||||
@@ -30,7 +30,7 @@ target_link_libraries(wire_autogen nxt)
|
||||
SetCXX14(wire_autogen)
|
||||
SetPic(wire_autogen)
|
||||
|
||||
add_library(nxt_wire SHARED
|
||||
add_library(nxt_wire STATIC
|
||||
${WIRE_DIR}/TerribleCommandBuffer.h
|
||||
${WIRE_DIR}/WireCmd.cpp
|
||||
${WIRE_DIR}/WireCmd.h
|
||||
|
||||
Reference in New Issue
Block a user