Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "dumpsys_defaults", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 3 | |
Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 4 | cflags: [ |
| 5 | "-Wall", |
| 6 | "-Werror", |
| 7 | ], |
| 8 | |
| 9 | srcs: [ |
| 10 | "dumpsys.cpp", |
| 11 | ], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 12 | |
| 13 | shared_libs: [ |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 14 | "libbase", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 15 | "libutils", |
| 16 | "liblog", |
| 17 | "libbinder", |
| 18 | ], |
| 19 | |
Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 20 | clang: true, |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 21 | } |
Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 22 | |
| 23 | // |
| 24 | // Static library used in testing and executable |
| 25 | // |
| 26 | |
| 27 | cc_library_static { |
| 28 | name: "libdumpsys", |
| 29 | |
| 30 | defaults: ["dumpsys_defaults"], |
| 31 | |
| 32 | export_include_dirs: ["."], |
| 33 | } |
| 34 | |
| 35 | |
| 36 | // |
| 37 | // Executable |
| 38 | // |
| 39 | |
| 40 | cc_binary { |
| 41 | name: "dumpsys", |
| 42 | |
| 43 | defaults: ["dumpsys_defaults"], |
| 44 | |
| 45 | srcs: [ |
| 46 | "main.cpp", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | subdirs = ["tests"] |