summaryrefslogtreecommitdiffstats
path: root/src/kmk/kmk_cc_exec.h
blob: 39c514202887e128af8eb04295b02bd2a7417cf0 (plain)
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
/* $Id: kmk_cc_exec.h 3154 2018-03-15 23:35:33Z bird $ */
/** @file
 * kmk_cc - Make "Compiler".
 */

/*
 * Copyright (c) 2015-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
 *
 * This file is part of kBuild.
 *
 * kBuild is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * kBuild is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with kBuild.  If not, see <http://www.gnu.org/licenses/>
 *
 */

#ifndef ___kmk_cc_and_exec_h
#define ___kmk_cc_and_exec_h
#ifdef CONFIG_WITH_COMPILER

#include <stdio.h>


void  kmk_cc_init(void);
void  kmk_cc_print_stats(void);

struct variable;
extern struct kmk_cc_expandprog *kmk_cc_compile_variable_for_expand(struct variable *pVar);
extern struct kmk_cc_evalprog   *kmk_cc_compile_variable_for_eval(struct variable *pVar);
extern struct kmk_cc_evalprog   *kmk_cc_compile_file_for_eval(FILE *pFile, const char *pszFilename);
extern char *kmk_exec_expand_to_var_buf(struct variable *pVar, char *pchDst);
extern void kmk_exec_eval_file(struct kmk_cc_evalprog *pProg);
extern void kmk_exec_eval_variable(struct variable *pVar);
extern void kmk_cc_variable_changed(struct variable *pVar);
extern void kmk_cc_variable_deleted(struct variable *pVar);


#endif /* CONFIG_WITH_COMPILER */
#endif