Format Android.bp files
with:
cd hardware/google/gfxstream
bpfmt -w .
Bug: n/a
Test: presubmit
Change-Id: I7ddc78f076eacf8459b588d08caee470900e692e
diff --git a/Android.bp b/Android.bp
index 87d3ff0..09c58d4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -147,16 +147,16 @@
cflags: [
"-U__ANDROID__",
"-UANDROID",
- ]
+ ],
},
android: {
compile_multilib: "64",
- shared_libs: [ "libnativewindow", ],
+ shared_libs: ["libnativewindow"],
},
linux_bionic_arm64: {
enabled: true,
- cflags: [ "-Dandroidbionic", ],
- }
+ cflags: ["-Dandroidbionic"],
+ },
},
host_supported: true,
vendor_available: true,
diff --git a/common/end2end/Android.bp b/common/end2end/Android.bp
index 45e9e75..aa83a91 100644
--- a/common/end2end/Android.bp
+++ b/common/end2end/Android.bp
@@ -1,4 +1,3 @@
-
package {
// See: http://go/android-license-faq
default_applicable_licenses: ["hardware_google_gfxstream_license"],
@@ -7,7 +6,7 @@
// Run with `atest --host GfxstreamEnd2EndTests`
cc_test_host {
name: "GfxstreamEnd2EndTests",
- defaults: [ "gfxstream_cc_defaults" ],
+ defaults: ["gfxstream_cc_defaults"],
srcs: [
"GfxstreamEnd2EndTests.cpp",
"GfxstreamEnd2EndGlTests.cpp",
diff --git a/common/opengl/Android.bp b/common/opengl/Android.bp
index df3556f..de250a3 100644
--- a/common/opengl/Android.bp
+++ b/common/opengl/Android.bp
@@ -14,4 +14,4 @@
"//apex_available:platform",
"com.android.virt",
],
-}
\ No newline at end of file
+}
diff --git a/guest/OpenglSystemCommon/Android.bp b/guest/OpenglSystemCommon/Android.bp
index 9d69d43..e08fcce 100644
--- a/guest/OpenglSystemCommon/Android.bp
+++ b/guest/OpenglSystemCommon/Android.bp
@@ -134,7 +134,7 @@
"libnativewindow",
"libsync",
],
- }
+ },
},
}
diff --git a/guest/android/Android.bp b/guest/android/Android.bp
index 4623bb3..c2d06cc 100644
--- a/guest/android/Android.bp
+++ b/guest/android/Android.bp
@@ -39,7 +39,7 @@
"libdrm",
],
export_include_dirs: [
- "include"
+ "include",
],
local_include_dirs: [
".",
@@ -102,4 +102,4 @@
"ANativeWindowEmulated.cpp",
"GrallocEmulated.cpp",
],
-}
\ No newline at end of file
+}
diff --git a/guest/gralloc_cb/Android.bp b/guest/gralloc_cb/Android.bp
index 9565d00..7fa1b97 100644
--- a/guest/gralloc_cb/Android.bp
+++ b/guest/gralloc_cb/Android.bp
@@ -30,6 +30,6 @@
],
export_header_lib_headers: [
"libcutils_headers",
- "libqemupipe-types.ranchu"
+ "libqemupipe-types.ranchu",
],
}
diff --git a/host/apigen-codec-common/Android.bp b/host/apigen-codec-common/Android.bp
index a056ae8..ec741f5 100644
--- a/host/apigen-codec-common/Android.bp
+++ b/host/apigen-codec-common/Android.bp
@@ -17,10 +17,13 @@
cc_library_static {
name: "libgfxstream_host_apigen_codec_common",
- defaults: [ "gfxstream_defaults" ],
- static_libs: [ "gfxstream_base", "gfxstream_host_common", ],
- cflags: [ "-fvisibility=hidden" ],
- export_include_dirs: [ "." ],
+ defaults: ["gfxstream_defaults"],
+ static_libs: [
+ "gfxstream_base",
+ "gfxstream_host_common",
+ ],
+ cflags: ["-fvisibility=hidden"],
+ export_include_dirs: ["."],
srcs: [
"ChecksumCalculator.cpp",
"ChecksumCalculatorThreadInfo.cpp",
@@ -28,7 +31,7 @@
],
target: {
host: {
- srcs: [ "X11Support.cpp", ],
- }
- }
+ srcs: ["X11Support.cpp"],
+ },
+ },
}
diff --git a/host/compressedTextureFormats/Android.bp b/host/compressedTextureFormats/Android.bp
index 7359802..e811381 100644
--- a/host/compressedTextureFormats/Android.bp
+++ b/host/compressedTextureFormats/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_compressedtextures",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
srcs: [
"AstcCpuDecompressorNoOp.cpp",
],
diff --git a/host/gl/Android.bp b/host/gl/Android.bp
index 7077d85..65dd9f9 100644
--- a/host/gl/Android.bp
+++ b/host/gl/Android.bp
@@ -10,7 +10,7 @@
cc_library_static {
name: "libgfxstream_host_gl_server",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
srcs: [
"BufferGl.cpp",
"ColorBufferGl.cpp",
@@ -39,4 +39,4 @@
"libgfxstream_host_gles2_dec",
"libgfxstream_host_glsnapshot",
],
-}
\ No newline at end of file
+}
diff --git a/host/gl/OpenGLESDispatch/Android.bp b/host/gl/OpenGLESDispatch/Android.bp
index d7abfe3..4c045aa 100644
--- a/host/gl/OpenGLESDispatch/Android.bp
+++ b/host/gl/OpenGLESDispatch/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_dispatch",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/gl/gl-host-common/Android.bp b/host/gl/gl-host-common/Android.bp
index 6cc15a8..1675504 100644
--- a/host/gl/gl-host-common/Android.bp
+++ b/host/gl/gl-host-common/Android.bp
@@ -9,7 +9,7 @@
cc_library_headers {
name: "gfxstream_gl_host_common_headers",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
export_include_dirs: [
"include",
],
@@ -17,7 +17,7 @@
cc_library_static {
name: "libgfxstream_host_gl_host_common",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
static_libs: [
"gfxstream_base",
"gfxstream_host_common",
@@ -42,4 +42,3 @@
"opengl/NativeGpuInfo_linux.cpp",
],
}
-
diff --git a/host/gl/gles1_dec/Android.bp b/host/gl/gles1_dec/Android.bp
index 44a6524..2f9da63 100644
--- a/host/gl/gles1_dec/Android.bp
+++ b/host/gl/gles1_dec/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_gles1_dec",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/gl/gles2_dec/Android.bp b/host/gl/gles2_dec/Android.bp
index b970fc0..71a2982 100644
--- a/host/gl/gles2_dec/Android.bp
+++ b/host/gl/gles2_dec/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_gles2_dec",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/gl/glestranslator/EGL/Android.bp b/host/gl/glestranslator/EGL/Android.bp
index 93f3b8e..f612102 100644
--- a/host/gl/glestranslator/EGL/Android.bp
+++ b/host/gl/glestranslator/EGL/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_glestranslator_egl",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_gl_host_common_headers",
"gfxstream_opengl_headers",
@@ -48,6 +48,6 @@
"EglOsApi_glx.cpp",
"X11ErrorHandler.cpp",
],
- }
- }
+ },
+ },
}
diff --git a/host/gl/glestranslator/GLES_CM/Android.bp b/host/gl/glestranslator/GLES_CM/Android.bp
index 3556f10..9ba8e65 100644
--- a/host/gl/glestranslator/GLES_CM/Android.bp
+++ b/host/gl/glestranslator/GLES_CM/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_glestranslator_glescm",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/gl/glestranslator/GLES_V2/Android.bp b/host/gl/glestranslator/GLES_V2/Android.bp
index 773cf34..0b1ad3b 100644
--- a/host/gl/glestranslator/GLES_V2/Android.bp
+++ b/host/gl/glestranslator/GLES_V2/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_glestranslator_glesv2",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/gl/glestranslator/GLcommon/Android.bp b/host/gl/glestranslator/GLcommon/Android.bp
index 3f69135..5929319 100644
--- a/host/gl/glestranslator/GLcommon/Android.bp
+++ b/host/gl/glestranslator/GLcommon/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_glestranslator_glcommon",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
cflags: [
"-fvisibility=hidden",
"-Wno-inconsistent-missing-override",
diff --git a/host/gl/glsnapshot/Android.bp b/host/gl/glsnapshot/Android.bp
index 34eda70..a93c9b9 100644
--- a/host/gl/glsnapshot/Android.bp
+++ b/host/gl/glsnapshot/Android.bp
@@ -12,7 +12,7 @@
cc_library_static {
name: "libgfxstream_host_glsnapshot",
- defaults: [ "gfxstream_defaults" ],
- srcs: [ "GLSnapshot.cpp", ],
- export_include_dirs: [ "." ],
+ defaults: ["gfxstream_defaults"],
+ srcs: ["GLSnapshot.cpp"],
+ export_include_dirs: ["."],
}
diff --git a/host/magma/Android.bp b/host/magma/Android.bp
index e802df5..bc64fd6 100644
--- a/host/magma/Android.bp
+++ b/host/magma/Android.bp
@@ -4,7 +4,7 @@
cc_library_static {
name: "libgfxstream_host_magma_server",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
static_libs: [
"gfxstream_base",
"gfxstream_host_common",
@@ -49,6 +49,6 @@
cflags: [
"-DGFXSTREAM_MAGMA_USE_INTEL_DRM=1",
],
- }
- }
+ },
+ },
}
diff --git a/host/magma/magma_dec/Android.bp b/host/magma/magma_dec/Android.bp
index 86df6ae..7f98fae 100644
--- a/host/magma/magma_dec/Android.bp
+++ b/host/magma/magma_dec/Android.bp
@@ -4,7 +4,7 @@
cc_library_static {
name: "libgfxstream_host_magma_dec",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
static_libs: [
"libgfxstream_host_apigen_codec_common",
],
diff --git a/host/renderControl_dec/Android.bp b/host/renderControl_dec/Android.bp
index ded9135..6cf0ca7 100644
--- a/host/renderControl_dec/Android.bp
+++ b/host/renderControl_dec/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_rendercontrol_dec",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/testlibs/Android.bp b/host/testlibs/Android.bp
index d3538c9..47e881d 100644
--- a/host/testlibs/Android.bp
+++ b/host/testlibs/Android.bp
@@ -14,7 +14,7 @@
cc_test_library {
name: "libgfxstream_oswindow_test_support",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"gfxstream_opengl_headers",
],
diff --git a/host/vulkan/emulated_textures/Android.bp b/host/vulkan/emulated_textures/Android.bp
index 53a58a1..4b24604 100644
--- a/host/vulkan/emulated_textures/Android.bp
+++ b/host/vulkan/emulated_textures/Android.bp
@@ -9,7 +9,7 @@
cc_library_static {
name: "libgfxstream_host_vulkan_emulatedtextures",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
header_libs: [
"libgfxstream_host_vulkan_cereal_common",
],
diff --git a/third-party/astc-encoder/Android.bp b/third-party/astc-encoder/Android.bp
index 2c5baac..9c02c41 100644
--- a/third-party/astc-encoder/Android.bp
+++ b/third-party/astc-encoder/Android.bp
@@ -31,4 +31,4 @@
],
}
-// TODO(gregschlom) Write the rules to actually build this library
\ No newline at end of file
+// TODO(gregschlom) Write the rules to actually build this library
diff --git a/third-party/glm/Android.bp b/third-party/glm/Android.bp
index ec2fb1f..6eb20bb 100644
--- a/third-party/glm/Android.bp
+++ b/third-party/glm/Android.bp
@@ -10,5 +10,5 @@
cc_library_static {
name: "libgfxstream_thirdparty_glm",
defaults: ["gfxstream_defaults"],
- export_include_dirs: [ "include" ],
+ export_include_dirs: ["include"],
}
diff --git a/third-party/renderdoc/Android.bp b/third-party/renderdoc/Android.bp
index 5bef973..ebfdc36 100644
--- a/third-party/renderdoc/Android.bp
+++ b/third-party/renderdoc/Android.bp
@@ -20,5 +20,8 @@
defaults: ["gfxstream_defaults"],
vendor_available: true,
host_supported: true,
- export_include_dirs: [ ".", "include" ],
+ export_include_dirs: [
+ ".",
+ "include",
+ ],
}
diff --git a/third-party/stb/Android.bp b/third-party/stb/Android.bp
index 7b9b3d5..034f32a 100644
--- a/third-party/stb/Android.bp
+++ b/third-party/stb/Android.bp
@@ -16,12 +16,12 @@
cc_library {
name: "libgfxstream_thirdparty_stb",
- defaults: [ "gfxstream_defaults" ],
+ defaults: ["gfxstream_defaults"],
srcs: [
"src/stb_image.cpp",
"src/stb_image_write.cpp",
],
export_include_dirs: [
"include",
- ]
+ ],
}