mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 13:57:04 +00:00
Meta: CMakeLists invoke check_style.py
This commit is contained in:
@@ -85,11 +85,14 @@ if (ENABLE_GUI_TARGETS)
|
||||
endif()
|
||||
|
||||
add_custom_target(lint-shell-scripts
|
||||
COMMAND "${ladybird_SOURCE_DIR}/Meta/lint-shell-scripts.sh"
|
||||
USES_TERMINAL
|
||||
COMMAND "${ladybird_SOURCE_DIR}/Meta/lint-shell-scripts.sh"
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user