1 Commits
Author SHA1 Message Date
FoxyzandClaude Opus 5.5 ef96868b87 0.1.9: Windows build fix (D8021: '/W3 /WX' as one cl argument)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:31:25 +03:00
3 changed files with 13 additions and 10 deletions

No files matched your search

+6
View File
@@ -1,3 +1,9 @@
## 0.1.9
* Windows: the plugin builds again. Its per-source compile options passed
"/W3 /WX" to cl.exe as one argument (error D8021); now plain /W3 for all
sources, without warnings-as-errors.
## 0.1.8 ## 0.1.8
* Linux, debug builds only: a Flutter hot restart no longer crashes apps that * Linux, debug builds only: a Flutter hot restart no longer crashes apps that
+1 -1
View File
@@ -1,6 +1,6 @@
name: fox_utils name: fox_utils
description: A collection of reusable Flutter widgets and extensions. description: A collection of reusable Flutter widgets and extensions.
version: 0.1.8 version: 0.1.9
environment: environment:
sdk: ^3.9.2 sdk: ^3.9.2
+6 -9
View File
@@ -19,15 +19,12 @@ target_include_directories(${PLUGIN_NAME} INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/include") "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin) target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin)
# GdiPlus doesn't compile with /W4 warning level; strict flags are scoped to # GdiPlus doesn't compile with /W4 (the template's level): all sources use
# this package's own sources. The vendored desktop_drop engine is compiled # /W3, one option per list entry ("/W3 /WX" in one entry reaches cl.exe as a
# as upstream ships it (no warnings-as-errors) since it is not ours to churn. # single bad argument, D8021). No warnings-as-errors: a newer MSVC's new
set_source_files_properties("fox_utils_plugin.cpp" "pasteboard_plugin.cpp" # warning must not break app releases.
PROPERTIES COMPILE_OPTIONS set_source_files_properties("fox_utils_plugin.cpp" "pasteboard_plugin.cpp" "desktop_drop_plugin.cpp"
"$<$<CXX_COMPILER_ID:MSVC>:/W3 /WX>;$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Wpedantic -Werror>") PROPERTIES COMPILE_OPTIONS "/W3")
set_source_files_properties("desktop_drop_plugin.cpp"
PROPERTIES COMPILE_OPTIONS
"$<$<CXX_COMPILER_ID:MSVC>:/W3>")
# List of absolute paths to libraries that should be bundled with the plugin # List of absolute paths to libraries that should be bundled with the plugin
set(fox_utils_bundled_libraries set(fox_utils_bundled_libraries