diff options
author | Colin Cross <ccross@android.com> | 2018-08-16 21:47:55 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-08-18 03:38:14 +0000 |
commit | 040cda7c33fc6a240176caa09d49557e17dae01b (patch) | |
tree | 7e2ca8dcc94cb7e9ec863763bb6e58e1bf946d66 | |
parent | a7ce8922699cc2905bc7753fdd50b7bcfe13e4c5 (diff) | |
download | chips-040cda7c33fc6a240176caa09d49557e17dae01b.tar.gz |
Convert frameworks/opt/chips to Android.bpandroid-o-mr1-iot-release-smart-display-r3android-o-mr1-iot-release-1.0.5android-o-mr1-iot-release-1.0.4oreo-mr1-1.2-iot-releasemaster-cuttlefish-testing-release
See build/soong/README.md for more information.
Test: m checkbuild
Test: atest libChipsTests fails the same before and after
Change-Id: I0a602f768cef3a946b2851541a1aa21ee910ff19
Merged-In: I0a602f768cef3a946b2851541a1aa21ee910ff19
(cherry-picked from commit 34964c5c124cecbb718276f44092f3def188d74e)
-rw-r--r-- | Android.bp | 28 | ||||
-rw-r--r-- | Android.mk | 34 | ||||
-rw-r--r-- | sample/Android.bp | 34 | ||||
-rw-r--r-- | sample/Android.mk | 44 | ||||
-rw-r--r-- | tests/Android.bp | 27 | ||||
-rw-r--r-- | tests/Android.mk | 30 |
6 files changed, 89 insertions, 108 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 0000000..4b66ea0 --- /dev/null +++ b/Android.bp @@ -0,0 +1,28 @@ +// Copyright (C) 2011 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. + +android_library { + name: "libchips", + static_libs: [ + "android-support-annotations", + "android-support-compat", + ], + sdk_version: "current", + srcs: [ + "src/**/*.java", + "src/**/*.logtags", + ], + + resource_dirs: ["res"], +} diff --git a/Android.mk b/Android.mk deleted file mode 100644 index f7e810d..0000000 --- a/Android.mk +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright (C) 2011 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 := libchips -LOCAL_STATIC_JAVA_LIBRARIES := \ - android-support-annotations -LOCAL_STATIC_ANDROID_LIBRARIES := \ - android-support-compat -LOCAL_SDK_VERSION := current -LOCAL_SRC_FILES := \ - $(call all-java-files-under, src) \ - $(call all-logtags-files-under, src) -LOCAL_USE_AAPT2 := true -LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res -include $(BUILD_STATIC_JAVA_LIBRARY) - -################################################## -# Build all sub-directories - -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/sample/Android.bp b/sample/Android.bp new file mode 100644 index 0000000..2502650 --- /dev/null +++ b/sample/Android.bp @@ -0,0 +1,34 @@ +// Copyright (C) 2013 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. + +//################################################# +// Build APK + +android_app { + name: "libChipsSample", + + static_libs: [ + "android-support-annotations", + "libchips", + "android-support-compat", + ], + + sdk_version: "current", + + srcs: [ + "src/**/*.java", + "src/**/*.logtags", + ], + resource_dirs: ["res"], +} diff --git a/sample/Android.mk b/sample/Android.mk deleted file mode 100644 index e07caa5..0000000 --- a/sample/Android.mk +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (C) 2013 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) - -################################################## -# Build APK -include $(CLEAR_VARS) - -src_dirs := src -LOCAL_PACKAGE_NAME := libChipsSample - -LOCAL_STATIC_JAVA_LIBRARIES := \ - android-support-annotations - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - libchips \ - android-support-compat - -LOCAL_SDK_VERSION := current - -LOCAL_SRC_FILES := $(call all-java-files-under, src) \ - $(call all-logtags-files-under, $(src_dirs)) -LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res -LOCAL_USE_AAPT2 := true - -include $(BUILD_PACKAGE) - - -################################################## -# Build all sub-directories - -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/tests/Android.bp b/tests/Android.bp new file mode 100644 index 0000000..cba57fa --- /dev/null +++ b/tests/Android.bp @@ -0,0 +1,27 @@ +// Copyright (C) 2011 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. + +android_test { + name: "libChipsTests", + + srcs: ["src/**/*.java"], + + sdk_version: "current", + certificate: "platform", + static_libs: [ + "libchips", + "junit", + ], + libs: ["android.test.base.stubs"], +} diff --git a/tests/Android.mk b/tests/Android.mk deleted file mode 100644 index 4a6ade6..0000000 --- a/tests/Android.mk +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (C) 2011 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_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := libChipsTests -LOCAL_MODULE_TAGS := tests -LOCAL_SDK_VERSION := current -LOCAL_CERTIFICATE := platform -LOCAL_STATIC_JAVA_LIBRARIES := libchips junit -LOCAL_JAVA_LIBRARIES := android.test.base.stubs -LOCAL_RESOURCE_DIR := frameworks/opt/chips/res/ -LOCAL_AAPT_FLAGS := --auto-add-overlay -LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips - -include $(BUILD_PACKAGE) - |