mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:47:45 +00:00
Meta+CMake: Remove "image" ninja target in favor of "qemu-image"
"image" was an alias for "qemu-image". I want to add an `image` userland utility, which clashes with that shortname. So remove the existing "image" target. It was just an alias for "qemu-image". If you use serenity.sh to build, nothing changes. This only affects you if you run ninja manually -- you now have to say `ninja qemu-image` to build the disk image.
This commit is contained in:
parent
952222ec4d
commit
3cff36b7ab
5 changed files with 6 additions and 10 deletions
|
@ -73,15 +73,11 @@ add_custom_target(run
|
|||
# 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} qemu-image
|
||||
COMMAND ${CMAKE_MAKE_PROGRAM} run
|
||||
USES_TERMINAL
|
||||
)
|
||||
|
||||
add_custom_target(image
|
||||
DEPENDS qemu-image
|
||||
)
|
||||
|
||||
add_custom_target(qemu-image
|
||||
COMMAND "${CMAKE_COMMAND}" -E env "SERENITY_SOURCE_DIR=${SerenityOS_SOURCE_DIR}" "SERENITY_ARCH=${SERENITY_ARCH}" "SERENITY_TOOLCHAIN=${CMAKE_CXX_COMPILER_ID}" "LLVM_VERSION=${CMAKE_CXX_COMPILER_VERSION}" "${SerenityOS_SOURCE_DIR}/Meta/build-image-qemu.sh"
|
||||
BYPRODUCTS "${CMAKE_BINARY_DIR}/_disk_image"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue