Automatic mk -> bp.
Automatic mk -> bp conversion for all modules here
which can be converted and built automatically.
Test: Soong resolves all dependencies
Bug: 37512442
Change-Id: Ib789212cb88d55731397c600d132e7c672c0d8be
diff --git a/gnss/1.0/default/Android.bp b/gnss/1.0/default/Android.bp
new file mode 100644
index 0000000..007ed97
--- /dev/null
+++ b/gnss/1.0/default/Android.bp
@@ -0,0 +1,54 @@
+cc_library_shared {
+ name: "android.hardware.gnss@1.0-impl",
+ vendor: true,
+ relative_install_path: "hw",
+ srcs: [
+ "ThreadCreationWrapper.cpp",
+ "AGnss.cpp",
+ "AGnssRil.cpp",
+ "Gnss.cpp",
+ "GnssBatching.cpp",
+ "GnssDebug.cpp",
+ "GnssGeofencing.cpp",
+ "GnssMeasurement.cpp",
+ "GnssNavigationMessage.cpp",
+ "GnssNi.cpp",
+ "GnssXtra.cpp",
+ "GnssConfiguration.cpp",
+ "GnssUtils.cpp",
+ ],
+
+ shared_libs: [
+ "liblog",
+ "libhidlbase",
+ "libhidltransport",
+ "libutils",
+ "android.hardware.gnss@1.0",
+ "libhardware",
+ ],
+
+ cflags: ["-Werror"],
+
+}
+
+cc_binary {
+ relative_install_path: "hw",
+ vendor: true,
+ name: "android.hardware.gnss@1.0-service",
+ init_rc: ["android.hardware.gnss@1.0-service.rc"],
+ srcs: ["service.cpp"],
+
+ shared_libs: [
+ "liblog",
+ "libcutils",
+ "libdl",
+ "libbase",
+ "libutils",
+ "libhardware",
+ "libbinder",
+ "libhidlbase",
+ "libhidltransport",
+ "android.hardware.gnss@1.0",
+ ],
+
+}
diff --git a/gnss/1.0/default/Android.mk b/gnss/1.0/default/Android.mk
deleted file mode 100644
index 34da64e..0000000
--- a/gnss/1.0/default/Android.mk
+++ /dev/null
@@ -1,56 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := android.hardware.gnss@1.0-impl
-LOCAL_PROPRIETARY_MODULE := true
-LOCAL_MODULE_RELATIVE_PATH := hw
-LOCAL_SRC_FILES := \
- ThreadCreationWrapper.cpp \
- AGnss.cpp \
- AGnssRil.cpp \
- Gnss.cpp \
- GnssBatching.cpp \
- GnssDebug.cpp \
- GnssGeofencing.cpp \
- GnssMeasurement.cpp \
- GnssNavigationMessage.cpp \
- GnssNi.cpp \
- GnssXtra.cpp \
- GnssConfiguration.cpp \
- GnssUtils.cpp
-
-LOCAL_SHARED_LIBRARIES := \
- liblog \
- libhidlbase \
- libhidltransport \
- libutils \
- android.hardware.gnss@1.0 \
- libhardware
-
-LOCAL_CFLAGS += -Werror
-
-include $(BUILD_SHARED_LIBRARY)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE_RELATIVE_PATH := hw
-LOCAL_PROPRIETARY_MODULE := true
-LOCAL_MODULE := android.hardware.gnss@1.0-service
-LOCAL_INIT_RC := android.hardware.gnss@1.0-service.rc
-LOCAL_SRC_FILES := \
- service.cpp \
-
-LOCAL_SHARED_LIBRARIES := \
- liblog \
- libcutils \
- libdl \
- libbase \
- libutils \
- libhardware \
- libbinder \
-
-LOCAL_SHARED_LIBRARIES += \
- libhidlbase \
- libhidltransport \
- android.hardware.gnss@1.0 \
-
-include $(BUILD_EXECUTABLE)
diff --git a/gnss/Android.bp b/gnss/Android.bp
index 33f70eb..ed19a37 100644
--- a/gnss/Android.bp
+++ b/gnss/Android.bp
@@ -1,5 +1,6 @@
// This is an autogenerated file, do not edit.
subdirs = [
"1.0",
+ "1.0/default",
"1.0/vts/functional",
]