File: custom_target.h

package info (click to toggle)
muon-meson 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,112 kB
  • sloc: ansic: 61,516; python: 4,429; cpp: 1,968; javascript: 586; sh: 443; asm: 178; xml: 67; objc: 36; makefile: 21; modula3: 8; f90: 7
file content (57 lines) | stat: -rw-r--r-- 1,342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
 * SPDX-License-Identifier: GPL-3.0-only
 */

#ifndef MUON_FUNCTIONS_KERNEL_CUSTOM_TARGET_H
#define MUON_FUNCTIONS_KERNEL_CUSTOM_TARGET_H
#include "lang/workspace.h"

struct make_custom_target_opts {
	obj name;
	uint32_t input_node;
	uint32_t output_node;
	uint32_t command_node;
	obj input_orig;
	obj output_orig;
	const char *output_dir, *build_dir;
	obj command_orig;
	obj depfile_orig;
	obj extra_args;
	bool capture;
	bool feed;
	bool extra_args_valid, extra_args_used;
};

bool make_custom_target(struct workspace *wk, struct make_custom_target_opts *opts, obj *res);

bool
install_custom_target(struct workspace *wk,
	struct obj_custom_target *tgt,
	const struct args_kw *kw_install,
	const struct args_kw *kw_build_by_default,
	obj install_dir,
	obj install_mode);

struct process_custom_target_commandline_opts {
	uint32_t err_node;
	bool relativize;
	obj name;
	obj input;
	obj output;
	obj depfile;
	obj depends;
	obj extra_args;
	const char *build_dir;
	bool extra_args_valid, extra_args_used;
};

bool process_custom_target_commandline(struct workspace *wk,
	struct process_custom_target_commandline_opts *opts,
	obj arr,
	obj *res);

bool func_custom_target(struct workspace *wk, obj _, obj *res);

bool func_vcs_tag(struct workspace *wk, obj _, obj *res);
#endif