| 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 |  | 
| Vishnu Nair | 780b128 | 2017-10-10 13:57:24 -0700 | [diff] [blame] | 20 | static_libs: [ | 
|  | 21 | "libserviceutils", | 
|  | 22 | ], | 
|  | 23 |  | 
| Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 24 | clang: true, | 
| Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 25 | } | 
| Felipe Leme | 343175a | 2016-08-02 18:57:37 -0700 | [diff] [blame] | 26 |  | 
|  | 27 | // | 
|  | 28 | // Static library used in testing and executable | 
|  | 29 | // | 
|  | 30 |  | 
|  | 31 | cc_library_static { | 
|  | 32 | name: "libdumpsys", | 
|  | 33 |  | 
|  | 34 | defaults: ["dumpsys_defaults"], | 
|  | 35 |  | 
|  | 36 | export_include_dirs: ["."], | 
|  | 37 | } | 
|  | 38 |  | 
|  | 39 |  | 
|  | 40 | // | 
|  | 41 | // Executable | 
|  | 42 | // | 
|  | 43 |  | 
|  | 44 | cc_binary { | 
|  | 45 | name: "dumpsys", | 
|  | 46 |  | 
|  | 47 | defaults: ["dumpsys_defaults"], | 
|  | 48 |  | 
|  | 49 | srcs: [ | 
|  | 50 | "main.cpp", | 
|  | 51 | ], | 
|  | 52 | } | 
|  | 53 |  | 
|  | 54 | subdirs = ["tests"] |