mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
Build: rename image
target => qemu-image
Also add a new `image` target which is just an alias to `qemu-image`. This makes the CMakeLists.txt file more readable in my opinion.
This commit is contained in:
parent
4a784d4d1b
commit
22aa4cbf92
1 changed files with 8 additions and 6 deletions
|
@ -12,17 +12,19 @@ set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
add_custom_target(image
|
|
||||||
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-qemu.sh
|
|
||||||
BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image
|
|
||||||
USES_TERMINAL
|
|
||||||
)
|
|
||||||
|
|
||||||
add_custom_target(run
|
add_custom_target(run
|
||||||
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
COMMAND ${CMAKE_SOURCE_DIR}/Meta/run.sh
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_target(image
|
||||||
|
DEPENDS qemu-image
|
||||||
|
)
|
||||||
|
add_custom_target(qemu-image
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-qemu.sh
|
||||||
|
BYPRODUCTS ${CMAKE_BINARY_DIR}/_disk_image
|
||||||
|
USES_TERMINAL
|
||||||
|
)
|
||||||
add_custom_target(grub-image
|
add_custom_target(grub-image
|
||||||
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-grub.sh
|
COMMAND ${CMAKE_COMMAND} -E env "SERENITY_ROOT=${CMAKE_SOURCE_DIR}" ${CMAKE_SOURCE_DIR}/Meta/build-image-grub.sh
|
||||||
BYPRODUCTS ${CMAKE_BINARY_DIR}/grub_disk_image
|
BYPRODUCTS ${CMAKE_BINARY_DIR}/grub_disk_image
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue