Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["frameworks_native_cmds_cmd_license"], |
| 3 | } |
| 4 | |
| 5 | // Added automatically by a large-scale-change |
| 6 | // See: http://go/android-license-faq |
| 7 | license { |
| 8 | name: "frameworks_native_cmds_cmd_license", |
| 9 | visibility: [":__subpackages__"], |
| 10 | license_kinds: [ |
| 11 | "SPDX-license-identifier-Apache-2.0", |
| 12 | ], |
| 13 | license_text: [ |
| 14 | "NOTICE", |
| 15 | ], |
| 16 | } |
| 17 | |
Alex Buynytskyy | a39d87a | 2018-12-12 17:40:52 -0800 | [diff] [blame] | 18 | cc_library_static { |
| 19 | name: "libcmd", |
| 20 | |
| 21 | srcs: ["cmd.cpp"], |
| 22 | export_include_dirs: ["."], |
| 23 | |
| 24 | shared_libs: [ |
| 25 | "libutils", |
| 26 | "liblog", |
| 27 | "libselinux", |
| 28 | "libbinder", |
| 29 | ], |
| 30 | |
| 31 | cflags: [ |
| 32 | "-Wall", |
| 33 | "-Werror", |
Alex Buynytskyy | a39d87a | 2018-12-12 17:40:52 -0800 | [diff] [blame] | 34 | ], |
| 35 | } |
| 36 | |
Dan Willemsen | d960894 | 2018-11-16 16:08:45 -0800 | [diff] [blame] | 37 | cc_binary { |
| 38 | name: "cmd", |
| 39 | |
Alex Buynytskyy | a39d87a | 2018-12-12 17:40:52 -0800 | [diff] [blame] | 40 | srcs: ["main.cpp"], |
| 41 | |
| 42 | static_libs: [ |
| 43 | "libcmd", |
| 44 | ], |
Dan Willemsen | d960894 | 2018-11-16 16:08:45 -0800 | [diff] [blame] | 45 | |
| 46 | shared_libs: [ |
| 47 | "libutils", |
| 48 | "liblog", |
| 49 | "libselinux", |
| 50 | "libbinder", |
Samiul Islam | 8cd9523 | 2021-08-26 11:41:49 +0100 | [diff] [blame] | 51 | "packagemanager_aidl-cpp", |
Dan Willemsen | d960894 | 2018-11-16 16:08:45 -0800 | [diff] [blame] | 52 | ], |
| 53 | |
| 54 | cflags: [ |
| 55 | "-Wall", |
| 56 | "-Werror", |
Dan Willemsen | d960894 | 2018-11-16 16:08:45 -0800 | [diff] [blame] | 57 | ], |
| 58 | } |