aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTai Kuo <taikuo@google.com>2020-07-30 18:36:09 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-07-30 18:36:09 +0000
commitc0d7246e0f9db3a1705c15caa961f84be1fc81f8 (patch)
tree7336bb04f595404dae6bed38cf0ec0840b3f6521
parent2b55a7ae5ca276e5583cd62c841e6fe6a697b0d5 (diff)
parente58ab75b03450dea476ed92edd35ecf11b013bc4 (diff)
downloadwalt-c0d7246e0f9db3a1705c15caa961f84be1fc81f8.tar.gz
Revert "Convert sync_clock_jni to Android.bp" am: 098c8fb26d am: 9eda51f919 am: e58ab75b03
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/walt/+/11887673 Change-Id: Idacdc6532d25b540837dd2f926f8194ad132d3ab
-rw-r--r--android/WALT/app/src/main/jni/Android.bp37
-rw-r--r--android/WALT/app/src/main/jni/Android.mk30
2 files changed, 30 insertions, 37 deletions
diff --git a/android/WALT/app/src/main/jni/Android.bp b/android/WALT/app/src/main/jni/Android.bp
deleted file mode 100644
index a789f4b..0000000
--- a/android/WALT/app/src/main/jni/Android.bp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (C) 2015 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_shared {
- name: "sync_clock_jni",
- srcs: [
- "sync_clock_jni.c",
- "sync_clock.c",
- "player.c",
- ],
-
- cflags: [
- "-g",
- "-DUSE_LIBLOG",
- "-Werror",
- ],
-
- shared_libs: [
- // needed for logcat
- "libcutils",
-
- "libOpenSLES",
- "liblog",
- ],
-}
diff --git a/android/WALT/app/src/main/jni/Android.mk b/android/WALT/app/src/main/jni/Android.mk
new file mode 100644
index 0000000..3307036
--- /dev/null
+++ b/android/WALT/app/src/main/jni/Android.mk
@@ -0,0 +1,30 @@
+# Copyright (C) 2015 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 := sync_clock_jni
+LOCAL_SRC_FILES := sync_clock_jni.c sync_clock.c player.c
+
+LOCAL_CFLAGS := -g -DUSE_LIBLOG -Werror
+
+# needed for logcat
+LOCAL_SHARED_LIBRARIES := libcutils
+
+LOCAL_LDLIBS := -lOpenSLES -llog
+
+include $(BUILD_SHARED_LIBRARY)