mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-28 18:40:29 +00:00
CMake: Add 'setup-and-run' target to perform all prereqs and run the image
Running 'ninja install && ninja image && ninja run` is kind of annoying. I got tired, and came up with this instead, which does the right thing and I don't have to type out the incantation.
This commit is contained in:
parent
e8ff61e64b
commit
566b916364
Notes:
sideshowbarker
2024-07-18 22:15:46 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/566b9163641 Pull-request: https://github.com/SerenityOS/serenity/pull/5356 Reviewed-by: https://github.com/emanuele6
1 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,18 @@ add_custom_target(run
|
|||
USES_TERMINAL
|
||||
)
|
||||
|
||||
# This can currently only be implemented by ordered commands
|
||||
# as cmake doesn't support inter dependency ordering, and we
|
||||
# would like to avoid inject dependencies on the existing
|
||||
# custom commands to allow people to run commands adhoc with
|
||||
# out forcing re-builds when they might not want them.
|
||||
add_custom_target(setup-and-run
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM} install
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM} image
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM} run
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
add_custom_target(image
|
||||
DEPENDS qemu-image
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue