11 Commits

Author SHA1 Message Date
Anna (navi) Figueiredo Gomes
dc3ce8692f *: use access(..., F_OK) instead of exists/stat.2
the exists() helper uses stat.2 unnecessarily, while calling access is
simpler and does not require filling a struct stat for no reason.

since this would make exists() into a wrapper that calls a single
function and nothing else, let's just inline the calls to access and
remove the helper.
2025-06-16 10:53:07 +02:00
Anna (navi) Figueiredo Gomes
3e65b8ca0a build: drop 'os' option and use host_machine.system()
to specify a different host, meson's machine files should be used
instead.
2025-05-27 13:38:43 +02:00
Anna (navi) Figueiredo Gomes
6f9dc39a5f build: add project arguments instead of adhoc c_args 2025-05-27 13:38:43 +02:00
Anna (navi) Figueiredo Gomes
20b93f00ee build: use declare_dependency for librc 2025-05-27 13:38:43 +02:00
Anna (navi) Figueiredo Gomes
e7db99edc9 build: use declare_dependency for libeinfo 2025-05-27 13:38:43 +02:00
Anna (navi) Figueiredo Gomes
543bb09ed1 build: use static_library and declare_dependency for shared code 2025-05-27 13:38:43 +02:00
NRK
ab07655d49 kill_all: use rc_exec 2025-03-23 23:38:21 +01:00
NRK
156c3dd5b0 kill_all: don't use WEXITSTATUS without WIFEXITED 2025-03-23 23:38:21 +01:00
Anna (navi) Figueiredo Gomes
64c3b3e757 misc: Replace rc_getline and getline with xgetline.
rc_getline is an implementation from when getline wasn't available on
most libcs, and is planned for removal, however much of of the code
relies on it's behaviour of removing new lines at the end of strings.

To avoid duplicating the new line removal logic in a dozen places, we
introduce a new helper function xgetline, which just wraps around
getline but removes the new line at the end.
2024-09-24 13:36:13 -05:00
Sam James
bcd1975fe7 kill_all: missing includes from IWYU 2023-01-29 11:32:22 -06:00
William Hubbs
391d12db48 migrate fully to meson build system
- drop old build system
- move shared include and source files to common directory
- drop "rc-" prefix from shared include and source files
- move executable-specific code to individual directories under src
- adjust top-level .gitignore file for new build system

This closes #489.
2022-04-06 10:51:55 -05:00