mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: CMakeLists invoke check_style.py
This commit is contained in:
parent
0b34a60307
commit
9ced3ec84d
Notes:
sideshowbarker
2024-07-16 20:12:13 +09:00
Author: https://github.com/luozhiya Commit: https://github.com/LadybirdBrowser/ladybird/commit/9ced3ec84d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/489 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 8 additions and 5 deletions
|
@ -89,7 +89,10 @@ add_custom_target(lint-shell-scripts
|
|||
USES_TERMINAL
|
||||
)
|
||||
|
||||
add_custom_target(check-style
|
||||
COMMAND "${ladybird_SOURCE_DIR}/Meta/check-style.sh"
|
||||
find_package(Python3 COMPONENTS Interpreter)
|
||||
if (Python3_FOUND)
|
||||
add_custom_target(check-style
|
||||
COMMAND ${Python3_EXECUTABLE} "${ladybird_SOURCE_DIR}/Meta/check-style.py"
|
||||
USES_TERMINAL
|
||||
)
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue