blob: 7cc2198bb5dfb7a5f93fddd59ee78ab3eba928d3 [file] [log] [blame]
Christopher Wiley2f774172015-08-30 10:57:07 -07001#include "aidl.h"
2#include "options.h"
3
4#include <stdio.h>
5
6int
7main(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}