Skip to content

Commit

Permalink
Meta: CMakeLists invoke check_style.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed Jul 8, 2024
1 parent 34cd98a commit 38c92c0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,14 @@ include(CTest) # for BUILD_TESTING option, default ON
add_subdirectory(Ladybird)

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()

0 comments on commit 38c92c0

Please sign in to comment.