diff options
author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2017-05-05 17:00:46 -0600 |
---|---|---|
committer | Jae Shin <jaeshin@google.com> | 2017-10-11 03:29:04 +0000 |
commit | 481c6b79186faf29cc7d92cc026d2ed792b8d5c6 (patch) | |
tree | 84d9780b696617083a15e4ca6b230573d7dc5ff2 /tests | |
parent | 909fab223557fb3a5467c926d1f0cd53c9d052d9 (diff) | |
download | extras-481c6b79186faf29cc7d92cc026d2ed792b8d5c6.tar.gz |
Port libtestUtil to use Android.bp
Test: make
Bug: 29940137
Merged-In: I24299722722e6fe0e5e1c81e9e0d9d3631e29984
Change-Id: I24299722722e6fe0e5e1c81e9e0d9d3631e29984
(cherry picked from commit 944e78cfaeef277bb3476a7df925c652dc5affa6)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Android.bp | 3 | ||||
-rw-r--r-- | tests/lib/Android.bp | 1 | ||||
-rw-r--r-- | tests/lib/Android.mk | 18 | ||||
-rw-r--r-- | tests/lib/testUtil/Android.bp | 25 | ||||
-rw-r--r-- | tests/lib/testUtil/Android.mk | 27 | ||||
-rw-r--r-- | tests/lib/testUtil/include/testUtil.h (renamed from tests/include/testUtil.h) | 0 |
6 files changed, 29 insertions, 45 deletions
diff --git a/tests/Android.bp b/tests/Android.bp new file mode 100644 index 00000000..1e0d8c8f --- /dev/null +++ b/tests/Android.bp @@ -0,0 +1,3 @@ +subdirs = [ + "lib", +] diff --git a/tests/lib/Android.bp b/tests/lib/Android.bp new file mode 100644 index 00000000..7a8ee5d0 --- /dev/null +++ b/tests/lib/Android.bp @@ -0,0 +1 @@ +subdirs = [ "*" ] diff --git a/tests/lib/Android.mk b/tests/lib/Android.mk deleted file mode 100644 index db16ed27..00000000 --- a/tests/lib/Android.mk +++ /dev/null @@ -1,18 +0,0 @@ -# -# Copyright (C) 2010 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. -# - -LOCAL_PATH:= $(call my-dir) -include $(call all-subdir-makefiles) diff --git a/tests/lib/testUtil/Android.bp b/tests/lib/testUtil/Android.bp new file mode 100644 index 00000000..35678d4f --- /dev/null +++ b/tests/lib/testUtil/Android.bp @@ -0,0 +1,25 @@ +// +// Copyright (C) 2010 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. +// + +cc_library_static { + name: "libtestUtil", + srcs: ["testUtil.c"], + export_include_dirs: ["include"], + shared_libs: [ + "libcutils", + "libutils", + ], +} diff --git a/tests/lib/testUtil/Android.mk b/tests/lib/testUtil/Android.mk deleted file mode 100644 index c5ae26d3..00000000 --- a/tests/lib/testUtil/Android.mk +++ /dev/null @@ -1,27 +0,0 @@ -# -# Copyright (C) 2010 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. -# - -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) -LOCAL_MODULE_TAGS := tests -LOCAL_MODULE:= libtestUtil -LOCAL_SRC_FILES:= testUtil.c -LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../include -LOCAL_SHARED_LIBRARIES += libcutils libutils - - -include $(BUILD_STATIC_LIBRARY) diff --git a/tests/include/testUtil.h b/tests/lib/testUtil/include/testUtil.h index 3b75914d..3b75914d 100644 --- a/tests/include/testUtil.h +++ b/tests/lib/testUtil/include/testUtil.h |