Some input build rule fixes

Small fixes in this CL:
* build for host by default
* fix sp::make usage
* add more warnings as errors to match inputflinger

Bug: 271455682
Test: m checkinput
Change-Id: Ib296589b2b2c7c3f5ab178f3b6677be5a6ce1ac1
diff --git a/libs/input/Android.bp b/libs/input/Android.bp
index 6db7b47..769677c 100644
--- a/libs/input/Android.bp
+++ b/libs/input/Android.bp
@@ -118,6 +118,11 @@
         "-Wextra",
         "-Werror",
         "-Wno-unused-parameter",
+        "-Wthread-safety",
+        "-Wshadow",
+        "-Wshadow-field-in-constructor-modified",
+        "-Wshadow-uncaptured-local",
+        "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION",
     ],
     srcs: [
         "android/os/IInputFlinger.aidl",
@@ -160,6 +165,7 @@
         "liblog",
         "libPlatformProperties",
         "libtinyxml2",
+        "libutils",
         "libvintf",
     ],
 
@@ -196,12 +202,6 @@
 
     target: {
         android: {
-            export_shared_lib_headers: ["libbinder"],
-
-            shared_libs: [
-                "libutils",
-            ],
-
             required: [
                 "motion_predictor_model_prebuilt",
                 "motion_predictor_model_config",
@@ -211,7 +211,6 @@
             include_dirs: [
                 "bionic/libc/kernel/android/uapi/",
                 "bionic/libc/kernel/uapi",
-                "frameworks/native/libs/arect/include",
             ],
         },
     },