mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 06:04:57 +00:00

Along with this, Port.h is include which helps generalising common information for the port package, like it's name and version. With SemVer complaint versions, it is possible to show positive change (upgrade) or negative change (downgrade) in the installed ports. However, for some non-complaint versions (eg. using git commit hash), non-equality (`!=`) is used to notify upgrade. Since there is no algorithm (without git history) to check the order of commits, it is not possible to inform whether it is an upgrade or downgrade.
15 lines
367 B
CMake
15 lines
367 B
CMake
serenity_component(
|
|
PackageManager
|
|
RECOMMENDED
|
|
TARGETS PackageManager
|
|
DEPENDS FileSystemAccessServer
|
|
)
|
|
|
|
set(SOURCES
|
|
AvailablePort.cpp
|
|
InstalledPort.cpp
|
|
main.cpp
|
|
)
|
|
|
|
serenity_app(PackageManager ICON app-assistant)
|
|
target_link_libraries(PackageManager PRIVATE LibCore LibSemVer LibMain LibFileSystem LibProtocol LibHTTP LibMarkdown LibShell)
|