Skip to content

Commit

Permalink
bpfmt.
Browse files Browse the repository at this point in the history
Bug: N/A
Test: builds
Change-Id: I89ad00e1c4c7e0767bc80a7ac7935a4d55e090ac
  • Loading branch information
enh-google committed Feb 17, 2018
1 parent 8c0c1ba commit dc699a2
Show file tree
Hide file tree
Showing 30 changed files with 148 additions and 86 deletions.
60 changes: 30 additions & 30 deletions adb/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@
// limitations under the License.

python_binary_host {
name: "adb_integration_test_adb",
main: "test_adb.py",
srcs: [
"test_adb.py",
],
libs: [
"adb_py",
],
version: {
py2: {
enabled: true,
name: "adb_integration_test_adb",
main: "test_adb.py",
srcs: [
"test_adb.py",
],
libs: [
"adb_py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
},
},
py3: {
enabled: false,
},
},
}

python_binary_host {
name: "adb_integration_test_device",
main: "test_device.py",
srcs: [
"test_device.py",
],
libs: [
"adb_py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
name: "adb_integration_test_device",
main: "test_device.py",
srcs: [
"test_device.py",
],
libs: [
"adb_py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: false,
},
},
},
}
6 changes: 5 additions & 1 deletion base/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

cc_defaults {
name: "libbase_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
}

cc_library_headers {
Expand Down
15 changes: 9 additions & 6 deletions debuggerd/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cc_defaults {

cc_library_headers {
name: "libdebuggerd_common_headers",
export_include_dirs: ["common/include"]
export_include_dirs: ["common/include"],
}

cc_library_shared {
Expand All @@ -39,7 +39,7 @@ cc_library_shared {
],

export_header_lib_headers: ["libdebuggerd_common_headers"],
export_include_dirs: ["tombstoned/include"]
export_include_dirs: ["tombstoned/include"],
}

// Utility library to tombstoned and get an output fd.
Expand All @@ -60,7 +60,7 @@ cc_library_static {
],

export_header_lib_headers: ["libdebuggerd_common_headers"],
export_include_dirs: ["tombstoned/include"]
export_include_dirs: ["tombstoned/include"],
}

// Core implementation, linked into libdebuggerd_handler and the dynamic linker.
Expand Down Expand Up @@ -186,7 +186,10 @@ cc_test {
"client/debuggerd_client_test.cpp",
"debuggerd_test.cpp",
],
static_libs: ["libasync_safe", "libtombstoned_client_static"],
static_libs: [
"libasync_safe",
"libtombstoned_client_static",
],
},
},

Expand All @@ -197,7 +200,7 @@ cc_test {
"libdebuggerd_client",
"liblog",
"libminijail",
"libnativehelper"
"libnativehelper",
],

static_libs: [
Expand Down Expand Up @@ -298,7 +301,7 @@ cc_binary {
"liblog",
],

init_rc: ["tombstoned/tombstoned.rc"]
init_rc: ["tombstoned/tombstoned.rc"],
}

subdirs = [
Expand Down
4 changes: 2 additions & 2 deletions demangle/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ cc_library {
],

local_include_dirs: [
"include",
"include",
],

export_include_dirs: [
"include",
"include",
],
}

Expand Down
2 changes: 1 addition & 1 deletion init/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cc_defaults {
},
uml: {
cppflags: ["-DUSER_MODE_LINUX"],
}
},
},
static_libs: [
"libbootloader_message",
Expand Down
5 changes: 4 additions & 1 deletion init/test_service/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
cc_binary {
name: "test_service",
srcs: ["test_service.cpp"],
cflags: ["-Wall", "-Werror"],
cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["libbase"],
init_rc: ["test_service.rc"],
}
4 changes: 2 additions & 2 deletions libappfuse/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cc_library_shared {
"FuseBuffer.cc",
"FuseBridgeLoop.cc",
"EpollController.cc",
]
],
}

cc_test {
Expand All @@ -31,5 +31,5 @@ cc_test {
"tests/FuseAppLoopTest.cc",
"tests/FuseBridgeLoopTest.cc",
"tests/FuseBufferTest.cc",
]
],
}
6 changes: 5 additions & 1 deletion libasyncio/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

cc_defaults {
name: "libasyncio_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
}

cc_library {
Expand Down
13 changes: 6 additions & 7 deletions libbacktrace/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ cc_defaults {

include_dirs: ["external/libunwind/include/tdep"],


target: {
darwin: {
enabled: false,
Expand All @@ -41,7 +40,7 @@ cc_defaults {
lib64: {
suffix: "64",
},
}
},
}

libbacktrace_sources = [
Expand Down Expand Up @@ -84,8 +83,8 @@ cc_library {
darwin: {
enabled: true,
shared_libs: [
"libbase",
],
"libbase",
],
},
linux: {
srcs: libbacktrace_sources,
Expand All @@ -106,15 +105,15 @@ cc_library {
"art/runtime",
],

header_libs: [ "jni_headers", ],
header_libs: ["jni_headers"],
},
android: {
static_libs: ["libasync_safe"],
},
vendor: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"],
exclude_shared_libs: ["libdexfile"],
}
},
},
whole_static_libs: ["libdemangle"],
}
Expand All @@ -130,7 +129,7 @@ cc_library_shared {
srcs: ["backtrace_testlib.cpp"],

shared_libs: [
"libunwindstack",
"libunwindstack",
],
}

Expand Down
1 change: 0 additions & 1 deletion libion/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

cc_library {
name: "libion",
vendor_available: true,
Expand Down
2 changes: 1 addition & 1 deletion libmemunreachable/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cc_defaults {
},
host: {
shared_libs: ["liblog"],
}
},
},
}

Expand Down
10 changes: 6 additions & 4 deletions libnativebridge/Android.bp
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@

cc_library_headers {
name: "libnativebridge-dummy-headers",

host_supported: true,
export_include_dirs=["include"],
export_include_dirs: ["include"],
}

cc_library {
name: "libnativebridge",

host_supported: true,
srcs: ["native_bridge.cc"],
shared_libs: ["liblog", "libbase"],
shared_libs: [
"liblog",
"libbase",
],

export_include_dirs=["include"],
export_include_dirs: ["include"],

cflags: [
"-Werror",
Expand Down
11 changes: 7 additions & 4 deletions libnativeloader/test/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,34 @@
cc_library {
name: "libfoo.oem1",
srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libfoo.oem1.so\""],
cflags: ["-DLIBNAME=\"libfoo.oem1.so\""],
shared_libs: [
"libbase",
],
}

cc_library {
name: "libbar.oem1",
srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libbar.oem1.so\""],
cflags: ["-DLIBNAME=\"libbar.oem1.so\""],
shared_libs: [
"libbase",
],
}

cc_library {
name: "libfoo.oem2",
srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libfoo.oem2.so\""],
cflags: ["-DLIBNAME=\"libfoo.oem2.so\""],
shared_libs: [
"libbase",
],
}

cc_library {
name: "libbar.oem2",
srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libbar.oem2.so\""],
cflags: ["-DLIBNAME=\"libbar.oem2.so\""],
shared_libs: [
"libbase",
],
Expand Down
5 changes: 4 additions & 1 deletion libpackagelistparser/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ cc_library {

name: "libpackagelistparser",
srcs: ["packagelistparser.c"],
cflags: ["-Wall", "-Werror"],
cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["liblog"],
local_include_dirs: ["include"],
export_include_dirs: ["include"],
Expand Down
11 changes: 9 additions & 2 deletions libprocinfo/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

cc_defaults {
name: "libprocinfo_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"],
cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
}

cc_library {
Expand Down Expand Up @@ -65,7 +69,10 @@ cc_test {
},
},

shared_libs: ["libbase", "libprocinfo"],
shared_libs: [
"libbase",
"libprocinfo",
],

compile_multilib: "both",
multilib: {
Expand Down
2 changes: 1 addition & 1 deletion libsystem/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ cc_library_headers {
windows: {
enabled: true,
},
}
},
}
Loading

0 comments on commit dc699a2

Please sign in to comment.