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

40
ropam/commands.h Normal file
View File

@@ -0,0 +1,40 @@
#ifndef COMMANDS_H_
#define COMMANDS_H_
enum {
CMD_ROOT,
CMD_SYNC,
CMD_REMOVE,
CMD_QUERY,
CMD_VENDOR,
CMD_VENDOR_ADD,
CMD_VENDOR_REMOVE,
CMD_VENDOR_LIST,
};
enum {
OPT_SYSROOT = 0x1000,
OPT_SYSROOT_PATH,
};
#define SYSROOT_OPTION \
B_COMMAND_OPTION(OPT_SYSROOT) \
{ \
B_OPTION_SHORT_NAME('s'); \
B_OPTION_LONG_NAME("sysroot"); \
B_OPTION_DESC( \
"the system directory to use. if no " \
"sysroot is specified, the root directory is used. " \
"alternatively, the ROSETTA_SYSROOT environment " \
"variable can be used to specify the system root " \
"directory"); \
\
B_OPTION_ARG(OPT_SYSROOT_PATH) \
{ \
B_ARG_NAME("path"); \
B_ARG_NR_VALUES(1); \
} \
}
#endif