From bfd93a1c163673bad2e510867f8f6b9ff069775c Mon Sep 17 00:00:00 2001 From: Chloe M Date: Sat, 15 Aug 2026 21:58:17 -0500 Subject: initial commit Signed-off-by: Chloe M --- head/bop/build.h | 18 ++++++++++++++++++ head/bop/common.h | 21 +++++++++++++++++++++ head/bop/hook.h | 18 ++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 head/bop/build.h create mode 100644 head/bop/common.h create mode 100644 head/bop/hook.h (limited to 'head') 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 */ -- cgit v1.2.3