diff options
author | Colin Cross <ccross@android.com> | 2018-08-17 22:20:14 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-17 22:20:14 -0700 |
commit | c0236a461b1cdda22b0408af3810e07142ff6ca7 (patch) | |
tree | 2340ebaa5d085ab80bcab2f38d3794a2d8a84749 | |
parent | f4c043fce1a380206e9e540cc83efe7b38cc9242 (diff) | |
parent | 9300b1927942888807aa91b455069fe23e31e728 (diff) | |
download | chips-c0236a461b1cdda22b0408af3810e07142ff6ca7.tar.gz |
Convert frameworks/opt/chips to Android.bp am: 040cda7c33
am: 9300b19279
Change-Id: I861d16cd2ec607e23d77722abfd3a49059c46495
-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) - |