Christopher Wiley | 2f77417 | 2015-08-30 10:57:07 -0700 | [diff] [blame] | 1 | #include "aidl.h" |
2 | #include "options.h" | ||||
3 | |||||
4 | #include <stdio.h> | ||||
5 | |||||
6 | int | ||||
7 | main(int argc, const char **argv) | ||||
8 | { | ||||
9 | Options options; | ||||
10 | int result = parse_options(argc, argv, &options); | ||||
11 | if (result) { | ||||
12 | return result; | ||||
13 | } | ||||
14 | |||||
15 | switch (options.task) { | ||||
16 | case COMPILE_AIDL: | ||||
17 | return compile_aidl(options); | ||||
18 | case PREPROCESS_AIDL: | ||||
19 | return preprocess_aidl(options); | ||||
20 | } | ||||
21 | fprintf(stderr, "aidl: internal error\n"); | ||||
22 | return 1; | ||||
23 | } |