diff options
author | Yuntao Xu <yuntaoxu@google.com> | 2021-04-29 11:09:08 -0700 |
---|---|---|
committer | Yuntao Xu <yuntaoxu@google.com> | 2021-05-03 09:40:45 -0700 |
commit | b7c9cc7bfe1b3825caa457a24b64b1234bd8fd61 (patch) | |
tree | 13fd03a66dc47507727b669aa194df4371b68ffd /tests | |
parent | ac2e71ce6971ad3b61bcafb8d0c598fc5f94d043 (diff) | |
download | extras-b7c9cc7bfe1b3825caa457a24b64b1234bd8fd61.tar.gz |
Convert memeater/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: Ia10f65e2c1fb688e034eb7158853debc196a5e9c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/memeater/Android.bp | 38 | ||||
-rw-r--r-- | tests/memeater/Android.mk | 26 |
2 files changed, 38 insertions, 26 deletions
diff --git a/tests/memeater/Android.bp b/tests/memeater/Android.bp new file mode 100644 index 00000000..dfeaea70 --- /dev/null +++ b/tests/memeater/Android.bp @@ -0,0 +1,38 @@ +// Copyright (C) 2017 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Copyright The Android Open Source Project + +package { + // See: http://go/android-license-faq + default_applicable_licenses: ["system_extras_tests_memeater_license"], +} + +license { + name: "system_extras_tests_memeater_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + +cc_binary { + name: "memeater", + srcs: ["memeater.c"], + cflags: [ + "-Wno-unused-parameter", + ], +} diff --git a/tests/memeater/Android.mk b/tests/memeater/Android.mk deleted file mode 100644 index e22da649..00000000 --- a/tests/memeater/Android.mk +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (C) 2017 The Android Open Source Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Copyright The Android Open Source Project - -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_MODULE := memeater -LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 -LOCAL_LICENSE_CONDITIONS := notice -LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE -LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -LOCAL_SRC_FILES := memeater.c -LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter -include $(BUILD_EXECUTABLE) |