Skip to content

Commit

Permalink
More work
Browse files Browse the repository at this point in the history
  • Loading branch information
abique committed Nov 22, 2024
1 parent 16ed8dd commit b993790
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,8 @@
{
"name": "vcpkg",
"hidden": true,
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
},
"CLAP_PLUGINS_EMBED_QML": {
"type": "BOOL",
"value": true
Expand Down
3 changes: 3 additions & 0 deletions cmake/toolchains/wasm-clang-linux.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
set(CMAKE_SYSTEM_NAME WASI)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR wasm32)
set(CMAKE_CROSSCOMPILING TRUE)

set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)

set(triple "wasm32-unknown-wasi")

Expand Down
4 changes: 2 additions & 2 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ target_link_libraries(clap-plugins-core PUBLIC clap-helpers)

set(clap_plugins_src clap-entry.cc)

if (CMAKE_SYSTEM_PROCESSOR MATCHES wasm)
add_executable(clap-plugins MODULE ${clap_plugins_src})
if (true OR CMAKE_SYSTEM_PROCESSOR MATCHES wasm)
add_executable(clap-plugins ${clap_plugins_src})
else()
add_library(clap-plugins MODULE ${clap_plugins_src})
endif()
Expand Down

0 comments on commit b993790

Please sign in to comment.