diff options
author | Yuntao Xu <yuntaoxu@google.com> | 2021-04-29 11:37:20 -0700 |
---|---|---|
committer | Yuntao Xu <yuntaoxu@google.com> | 2021-05-03 09:30:01 -0700 |
commit | 2ef7e585f255d320af5d9180aa58662f4a8a8f5f (patch) | |
tree | c2e4e478052bd88af3b60c5cf222392659bb13c4 /su | |
parent | ac2e71ce6971ad3b61bcafb8d0c598fc5f94d043 (diff) | |
download | extras-2ef7e585f255d320af5d9180aa58662f4a8a8f5f.tar.gz |
Convert su/Android.mk to Android.bp
Convert the Make file to a Soong one
Bug: 186677673
Test: compared the results built by Make and Soong
Test: TreeHugger
Change-Id: I9e44ea4c59f5372bc7134d6a281f6a3589575d42
Diffstat (limited to 'su')
-rw-r--r-- | su/Android.bp | 21 | ||||
-rw-r--r-- | su/Android.mk | 17 |
2 files changed, 21 insertions, 17 deletions
diff --git a/su/Android.bp b/su/Android.bp new file mode 100644 index 00000000..2616e37c --- /dev/null +++ b/su/Android.bp @@ -0,0 +1,21 @@ +package { + // See: http://go/android-license-faq + default_applicable_licenses: ["system_extras_su_license"], +} + +license { + name: "system_extras_su_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + +cc_binary { + name: "su", + srcs: ["su.cpp"], + header_libs: ["libcutils_headers"], +} diff --git a/su/Android.mk b/su/Android.mk deleted file mode 100644 index 18493992..00000000 --- a/su/Android.mk +++ /dev/null @@ -1,17 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_CFLAGS := -Wall -Werror - -LOCAL_SRC_FILES:= su.cpp - -LOCAL_MODULE:= su -LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS:= notice -LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/NOTICE - -LOCAL_HEADER_LIBRARIES := libcutils_headers - -LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) - -include $(BUILD_EXECUTABLE) |