meta: add build system and stub tool source code

This commit is contained in:
2025-07-07 13:56:20 +01:00
parent 2bc7a0d900
commit ba40290eea
27 changed files with 990 additions and 0 deletions

4
rovem/CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
file(GLOB sources *.c *.h)
add_executable(rovem ${sources})
target_link_libraries(rovem Bluelib::Core Bluelib::Object Bluelib::Io Bluelib::Term Bluelib::Cmd)

0
rovem/add-package.c Normal file
View File

12
rovem/commands.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef COMMANDS_H_
#define COMMANDS_H_
enum {
CMD_ROOT,
CMD_CREATE,
CMD_QUERY,
CMD_ADD_PACKAGE,
CMD_REMOVE_PACKAGE,
};
#endif

0
rovem/create.c Normal file
View File

19
rovem/main.c Normal file
View File

@@ -0,0 +1,19 @@
#include "commands.h"
#include <blue/cmd.h>
B_COMMAND(CMD_ROOT, B_COMMAND_INVALID_ID)
{
B_COMMAND_NAME("rovem");
B_COMMAND_DESC(
"Rosetta package vendor management tool. This tool is used to "
"create and manage a Rosetta package vendor, from which "
"packages can be retrieved and installed by clients.");
B_COMMAND_FLAGS(B_COMMAND_SHOW_HELP_BY_DEFAULT);
B_COMMAND_HELP_OPTION();
}
int main(int argc, const char **argv)
{
return b_command_dispatch(CMD_ROOT, argc, argv);
}

0
rovem/query.c Normal file
View File

0
rovem/remove-package.c Normal file
View File