-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
101 lines (85 loc) · 1.35 KB
/
common.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#ifndef __COMMON_H__
#define __COMMON_H__
enum module_type {
MODULE_SHARED_LIBRARY,
MODULE_STATIC_LIBRARY,
MODULE_EXECUTABLE,
};
enum library_type {
LIBRARY_NDK,
LIBRARY_UNSUPPORTED,
LIBRARY_EXTERNAL,
LIBRARY_STATIC,
LIBRARY_WHOLE_STATIC,
LIBRARY_FLAG
};
enum script_type {
SCRIPT_SUBDIRECTORY,
SCRIPT_TOP,
};
enum build_type {
BUILD_NDK,
BUILD_EXTERNAL
};
enum tags {
TAG_NONE = 0,
TAG_USER = 1,
TAG_ENG = 2,
TAG_TESTS = 4,
TAG_OPTIONAL = 8,
TAG_DEBUG = 16
};
struct generator {
};
struct passthrough {
char *name;
};
struct source {
char *name;
struct generator *gen;
};
struct flag {
char *flag;
};
struct library {
char *name;
enum library_type ltype;
};
struct subdir {
char *name;
};
struct header {
char *name;
};
struct module {
char *name; //local_module;
enum module_type mtype;
char *header_target;
struct header *header;
int headers;
struct source *source;
int sources;
struct flag *cflag;
int cflags;
struct flag *cppflag;
int cppflags;
struct library *library;
int libraries;
struct library *libfilter;
int libfilters;
struct passthrough *passthrough;
int passthroughs;
int tags;
};
struct project {
char *name;
struct module *module;
int modules;
struct subdir *subdir;
int subdirs;
enum build_type btype;
enum script_type stype;
char *abs_top;
char *rel_top;
};
#endif /*__COMMON_H__*/