Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ elseif (APPLE)
target_compile_definitions(${PROJECT_NAME}-impl PRIVATE COCOA_GUI)
target_sources(${PROJECT_NAME}-impl PRIVATE src/gui/gui-macos.mm)
target_link_libraries(${PROJECT_NAME}-impl PRIVATE "-framework Cocoa" "-framework CoreFoundation")
elseif (EMSCRIPTEN)
target_compile_definitions(${PROJECT_NAME}-impl PRIVATE WEBVIEW_GUI)
target_sources(${PROJECT_NAME}-impl PRIVATE src/gui/gui-unimpl.cpp)
else()
target_compile_definitions(${PROJECT_NAME}-impl PRIVATE X11_GUI)
target_sources(${PROJECT_NAME}-impl PRIVATE src/gui/gui-unimpl.cpp)
Expand All @@ -44,7 +47,7 @@ make_clapfirst_plugins(

COPY_AFTER_BUILD ${COPY_AFTER_BUILD}

PLUGIN_FORMATS CLAP # VST3 AUV2
PLUGIN_FORMATS CLAP WCLAP # VST3 AUV2

ASSET_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${PROJECT_NAME}_assets

Expand Down
2 changes: 1 addition & 1 deletion cmake/compile-options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
$<$<BOOL:${USE_SANITIZER}>:-fsanitize=address>
$<$<BOOL:${USE_SANITIZER}>:-fsanitize=undefined>
)
if (NOT APPLE)
if (NOT APPLE AND NOT EMSCRIPTEN)
add_compile_options(-march=nehalem)
endif()
endif()
Expand Down