diff options
| author | Chloe M <chloe@faracom.org> | 2026-08-15 21:58:17 -0500 |
|---|---|---|
| committer | Chloe M <chloe@faracom.org> | 2026-08-15 22:02:24 -0500 |
| commit | bfd93a1c163673bad2e510867f8f6b9ff069775c (patch) | |
| tree | d2e23716d325db21545c5c6548cdd9e78526a901 /head | |
initial commit
Signed-off-by: Chloe M <chloe@faracom.org>
Diffstat (limited to 'head')
| -rw-r--r-- | head/bop/build.h | 18 | ||||
| -rw-r--r-- | head/bop/common.h | 21 | ||||
| -rw-r--r-- | head/bop/hook.h | 18 |
3 files changed, 57 insertions, 0 deletions
diff --git a/head/bop/build.h b/head/bop/build.h new file mode 100644 index 0000000..ff4c8e5 --- /dev/null +++ b/head/bop/build.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2026, Chloe M., et al. + * Provided under the BSD-3 clause. + */ + +#ifndef BOP_BUILD_H +#define BOP_BUILD_H 1 + +/* + * Build a directory + * + * @dirpath: Directory to build + * + * Returns zeron on success + */ +int bop_build_dir(const char *dirpath); + +#endif /* !BOP_BUILD_H */ diff --git a/head/bop/common.h b/head/bop/common.h new file mode 100644 index 0000000..4e41a1e --- /dev/null +++ b/head/bop/common.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2026, Chloe M., et al. + * Provided under the BSD-3 clause. + */ + +#ifndef BOP_COMMON_H +#define BOP_COMMON_H 1 + +/* ENV for bop build directory */ +#define BOP_BUILD_ENV "BOP_BUILD" + +/* BOP version */ +#define BOP_VERSION "v0.0.1" + +/* Default BOP cflags */ +#define BOP_DEFAULT_CFLAGS "-Wall", "-pedantic", "-Ihead" + +/* Default C compiler */ +#define BOP_CC "/usr/bin/clang" + +#endif /* !BOP_COMMON_H */ diff --git a/head/bop/hook.h b/head/bop/hook.h new file mode 100644 index 0000000..d78f2d7 --- /dev/null +++ b/head/bop/hook.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2026, Chloe M., et al. + * Provided under the BSD-3 clause. + */ + +#ifndef BOP_HOOK_H +#define BOP_HOOK_H 1 + +/* + * Run a shell script build hook + * + * @hook_path: Path to hook + * + * Returns zero on success + */ +int bop_shell_hook(const char *hook_path); + +#endif /* !BOP_HOOK_H */ |
