Merge "bpfmt."

This commit is contained in:
Treehugger Robot 2018-02-20 02:02:59 +00:00 committed by Gerrit Code Review
commit 0609e8d231
30 changed files with 148 additions and 86 deletions

View file

@ -13,39 +13,39 @@
// limitations under the License. // limitations under the License.
python_binary_host { python_binary_host {
name: "adb_integration_test_adb", name: "adb_integration_test_adb",
main: "test_adb.py", main: "test_adb.py",
srcs: [ srcs: [
"test_adb.py", "test_adb.py",
], ],
libs: [ libs: [
"adb_py", "adb_py",
], ],
version: { version: {
py2: { py2: {
enabled: true, enabled: true,
},
py3: {
enabled: false,
},
}, },
py3: {
enabled: false,
},
},
} }
python_binary_host { python_binary_host {
name: "adb_integration_test_device", name: "adb_integration_test_device",
main: "test_device.py", main: "test_device.py",
srcs: [ srcs: [
"test_device.py", "test_device.py",
], ],
libs: [ libs: [
"adb_py", "adb_py",
], ],
version: { version: {
py2: { py2: {
enabled: true, enabled: true,
},
py3: {
enabled: false,
},
}, },
py3: {
enabled: false,
},
},
} }

View file

@ -16,7 +16,11 @@
cc_defaults { cc_defaults {
name: "libbase_defaults", name: "libbase_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"], cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
} }
cc_library_headers { cc_library_headers {

View file

@ -16,7 +16,7 @@ cc_defaults {
cc_library_headers { cc_library_headers {
name: "libdebuggerd_common_headers", name: "libdebuggerd_common_headers",
export_include_dirs: ["common/include"] export_include_dirs: ["common/include"],
} }
cc_library_shared { cc_library_shared {
@ -39,7 +39,7 @@ cc_library_shared {
], ],
export_header_lib_headers: ["libdebuggerd_common_headers"], 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. // Utility library to tombstoned and get an output fd.
@ -60,7 +60,7 @@ cc_library_static {
], ],
export_header_lib_headers: ["libdebuggerd_common_headers"], 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. // Core implementation, linked into libdebuggerd_handler and the dynamic linker.
@ -186,7 +186,10 @@ cc_test {
"client/debuggerd_client_test.cpp", "client/debuggerd_client_test.cpp",
"debuggerd_test.cpp", "debuggerd_test.cpp",
], ],
static_libs: ["libasync_safe", "libtombstoned_client_static"], static_libs: [
"libasync_safe",
"libtombstoned_client_static",
],
}, },
}, },
@ -197,7 +200,7 @@ cc_test {
"libdebuggerd_client", "libdebuggerd_client",
"liblog", "liblog",
"libminijail", "libminijail",
"libnativehelper" "libnativehelper",
], ],
static_libs: [ static_libs: [
@ -298,7 +301,7 @@ cc_binary {
"liblog", "liblog",
], ],
init_rc: ["tombstoned/tombstoned.rc"] init_rc: ["tombstoned/tombstoned.rc"],
} }
subdirs = [ subdirs = [

View file

@ -42,11 +42,11 @@ cc_library {
], ],
local_include_dirs: [ local_include_dirs: [
"include", "include",
], ],
export_include_dirs: [ export_include_dirs: [
"include", "include",
], ],
} }

View file

@ -56,7 +56,7 @@ cc_defaults {
}, },
uml: { uml: {
cppflags: ["-DUSER_MODE_LINUX"], cppflags: ["-DUSER_MODE_LINUX"],
} },
}, },
static_libs: [ static_libs: [
"libbootloader_message", "libbootloader_message",

View file

@ -17,7 +17,10 @@
cc_binary { cc_binary {
name: "test_service", name: "test_service",
srcs: ["test_service.cpp"], srcs: ["test_service.cpp"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["libbase"], shared_libs: ["libbase"],
init_rc: ["test_service.rc"], init_rc: ["test_service.rc"],
} }

View file

@ -19,7 +19,7 @@ cc_library_shared {
"FuseBuffer.cc", "FuseBuffer.cc",
"FuseBridgeLoop.cc", "FuseBridgeLoop.cc",
"EpollController.cc", "EpollController.cc",
] ],
} }
cc_test { cc_test {
@ -31,5 +31,5 @@ cc_test {
"tests/FuseAppLoopTest.cc", "tests/FuseAppLoopTest.cc",
"tests/FuseBridgeLoopTest.cc", "tests/FuseBridgeLoopTest.cc",
"tests/FuseBufferTest.cc", "tests/FuseBufferTest.cc",
] ],
} }

View file

@ -16,7 +16,11 @@
cc_defaults { cc_defaults {
name: "libasyncio_defaults", name: "libasyncio_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"], cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
} }
cc_library { cc_library {

View file

@ -27,7 +27,6 @@ cc_defaults {
include_dirs: ["external/libunwind/include/tdep"], include_dirs: ["external/libunwind/include/tdep"],
target: { target: {
darwin: { darwin: {
enabled: false, enabled: false,
@ -41,7 +40,7 @@ cc_defaults {
lib64: { lib64: {
suffix: "64", suffix: "64",
}, },
} },
} }
libbacktrace_sources = [ libbacktrace_sources = [
@ -84,8 +83,8 @@ cc_library {
darwin: { darwin: {
enabled: true, enabled: true,
shared_libs: [ shared_libs: [
"libbase", "libbase",
], ],
}, },
linux: { linux: {
srcs: libbacktrace_sources, srcs: libbacktrace_sources,
@ -106,7 +105,7 @@ cc_library {
"art/runtime", "art/runtime",
], ],
header_libs: [ "jni_headers", ], header_libs: ["jni_headers"],
}, },
android: { android: {
static_libs: ["libasync_safe"], static_libs: ["libasync_safe"],
@ -114,7 +113,7 @@ cc_library {
vendor: { vendor: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"], cflags: ["-DNO_LIBDEXFILE_SUPPORT"],
exclude_shared_libs: ["libdexfile"], exclude_shared_libs: ["libdexfile"],
} },
}, },
whole_static_libs: ["libdemangle"], whole_static_libs: ["libdemangle"],
} }
@ -130,7 +129,7 @@ cc_library_shared {
srcs: ["backtrace_testlib.cpp"], srcs: ["backtrace_testlib.cpp"],
shared_libs: [ shared_libs: [
"libunwindstack", "libunwindstack",
], ],
} }

View file

@ -1,4 +1,3 @@
cc_library { cc_library {
name: "libion", name: "libion",
vendor_available: true, vendor_available: true,

View file

@ -16,7 +16,7 @@ cc_defaults {
}, },
host: { host: {
shared_libs: ["liblog"], shared_libs: ["liblog"],
} },
}, },
} }

View file

@ -1,9 +1,8 @@
cc_library_headers { cc_library_headers {
name: "libnativebridge-dummy-headers", name: "libnativebridge-dummy-headers",
host_supported: true, host_supported: true,
export_include_dirs=["include"], export_include_dirs: ["include"],
} }
cc_library { cc_library {
@ -11,9 +10,12 @@ cc_library {
host_supported: true, host_supported: true,
srcs: ["native_bridge.cc"], srcs: ["native_bridge.cc"],
shared_libs: ["liblog", "libbase"], shared_libs: [
"liblog",
"libbase",
],
export_include_dirs=["include"], export_include_dirs: ["include"],
cflags: [ cflags: [
"-Werror", "-Werror",

View file

@ -17,31 +17,34 @@
cc_library { cc_library {
name: "libfoo.oem1", name: "libfoo.oem1",
srcs: ["test.cpp"], srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libfoo.oem1.so\""], cflags: ["-DLIBNAME=\"libfoo.oem1.so\""],
shared_libs: [ shared_libs: [
"libbase", "libbase",
], ],
} }
cc_library { cc_library {
name: "libbar.oem1", name: "libbar.oem1",
srcs: ["test.cpp"], srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libbar.oem1.so\""], cflags: ["-DLIBNAME=\"libbar.oem1.so\""],
shared_libs: [ shared_libs: [
"libbase", "libbase",
], ],
} }
cc_library { cc_library {
name: "libfoo.oem2", name: "libfoo.oem2",
srcs: ["test.cpp"], srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libfoo.oem2.so\""], cflags: ["-DLIBNAME=\"libfoo.oem2.so\""],
shared_libs: [ shared_libs: [
"libbase", "libbase",
], ],
} }
cc_library { cc_library {
name: "libbar.oem2", name: "libbar.oem2",
srcs: ["test.cpp"], srcs: ["test.cpp"],
cflags : ["-DLIBNAME=\"libbar.oem2.so\""], cflags: ["-DLIBNAME=\"libbar.oem2.so\""],
shared_libs: [ shared_libs: [
"libbase", "libbase",
], ],

View file

@ -2,7 +2,10 @@ cc_library {
name: "libpackagelistparser", name: "libpackagelistparser",
srcs: ["packagelistparser.c"], srcs: ["packagelistparser.c"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["liblog"], shared_libs: ["liblog"],
local_include_dirs: ["include"], local_include_dirs: ["include"],
export_include_dirs: ["include"], export_include_dirs: ["include"],

View file

@ -16,7 +16,11 @@
cc_defaults { cc_defaults {
name: "libprocinfo_defaults", name: "libprocinfo_defaults",
cflags: ["-Wall", "-Werror", "-Wextra"], cflags: [
"-Wall",
"-Werror",
"-Wextra",
],
} }
cc_library { cc_library {
@ -65,7 +69,10 @@ cc_test {
}, },
}, },
shared_libs: ["libbase", "libprocinfo"], shared_libs: [
"libbase",
"libprocinfo",
],
compile_multilib: "both", compile_multilib: "both",
multilib: { multilib: {

View file

@ -11,5 +11,5 @@ cc_library_headers {
windows: { windows: {
enabled: true, enabled: true,
}, },
} },
} }

View file

@ -78,7 +78,10 @@ cc_library {
target: { target: {
// Always disable optimizations for host to make it easier to debug. // Always disable optimizations for host to make it easier to debug.
host: { host: {
cflags: ["-O0", "-g"], cflags: [
"-O0",
"-g",
],
}, },
vendor: { vendor: {
cflags: ["-DNO_LIBDEXFILE_SUPPORT"], cflags: ["-DNO_LIBDEXFILE_SUPPORT"],
@ -131,7 +134,10 @@ cc_library_static {
target: { target: {
// Always disable optimizations for host to make it easier to debug. // Always disable optimizations for host to make it easier to debug.
host: { host: {
cflags: ["-O0", "-g"], cflags: [
"-O0",
"-g",
],
}, },
}, },

View file

@ -20,12 +20,12 @@ cc_library_headers {
header_libs: [ header_libs: [
"liblog_headers", "liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers" "libcutils_headers",
], ],
export_header_lib_headers: [ export_header_lib_headers: [
"liblog_headers", "liblog_headers",
"libsystem_headers", "libsystem_headers",
"libcutils_headers" "libcutils_headers",
], ],
export_include_dirs: ["include"], export_include_dirs: ["include"],
@ -52,7 +52,10 @@ cc_defaults {
}, },
host_supported: true, host_supported: true,
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
include_dirs: ["external/safe-iop/include"], include_dirs: ["external/safe-iop/include"],
header_libs: [ header_libs: [
"libutils_headers", "libutils_headers",
@ -193,7 +196,10 @@ cc_test {
static_libs: ["libutils"], static_libs: ["libutils"],
shared_libs: ["liblog"], shared_libs: ["liblog"],
srcs: ["SharedBufferTest.cpp"], srcs: ["SharedBufferTest.cpp"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
} }
subdirs = ["tests"] subdirs = ["tests"]

View file

@ -77,7 +77,10 @@ cc_test_library {
host_supported: true, host_supported: true,
relative_install_path: "libutils_tests", relative_install_path: "libutils_tests",
srcs: ["Singleton_test1.cpp"], srcs: ["Singleton_test1.cpp"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
} }
cc_test_library { cc_test_library {
@ -85,6 +88,9 @@ cc_test_library {
host_supported: true, host_supported: true,
relative_install_path: "libutils_tests", relative_install_path: "libutils_tests",
srcs: ["Singleton_test2.cpp"], srcs: ["Singleton_test2.cpp"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["libutils_tests_singleton1"], shared_libs: ["libutils_tests_singleton1"],
} }

View file

@ -3,7 +3,10 @@ subdirs = ["tests"]
cc_library { cc_library {
name: "libvndksupport", name: "libvndksupport",
srcs: ["linker.c"], srcs: ["linker.c"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
local_include_dirs: ["include/vndksupport"], local_include_dirs: ["include/vndksupport"],
export_include_dirs: ["include"], export_include_dirs: ["include"],
shared_libs: ["liblog"], shared_libs: ["liblog"],

View file

@ -17,11 +17,14 @@ cc_test {
srcs: [ srcs: [
"linker_test.cpp", "linker_test.cpp",
], ],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
host_supported: false, host_supported: false,
shared_libs: [ shared_libs: [
"libvndksupport", "libvndksupport",
"libbase", "libbase",
] ],
} }

View file

@ -68,8 +68,11 @@ cc_prebuilt_binary {
srcs: ["logpersist"], srcs: ["logpersist"],
init_rc: ["logcatd.rc"], init_rc: ["logcatd.rc"],
required: ["logcatd"], required: ["logcatd"],
symlinks: ["logpersist.stop", "logpersist.cat"], symlinks: [
"logpersist.stop",
"logpersist.cat",
],
strip: { strip: {
none: true, none: true,
} },
} }

View file

@ -25,7 +25,7 @@ event_flag = [
"-DAUDITD_LOG_TAG=1003", "-DAUDITD_LOG_TAG=1003",
"-DCHATTY_LOG_TAG=1004", "-DCHATTY_LOG_TAG=1004",
"-DTAG_DEF_LOG_TAG=1005", "-DTAG_DEF_LOG_TAG=1005",
"-DLIBLOG_LOG_TAG=1006" "-DLIBLOG_LOG_TAG=1006",
] ]
cc_library_static { cc_library_static {

View file

@ -49,5 +49,5 @@ cc_benchmark {
], ],
cflags: [ cflags: [
"-Werror", "-Werror",
] ],
} }

View file

@ -31,7 +31,10 @@ cc_binary {
"trusty_keymaster_ipc.cpp", "trusty_keymaster_ipc.cpp",
"trusty_keymaster_main.cpp", "trusty_keymaster_main.cpp",
], ],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
shared_libs: [ shared_libs: [
"libcrypto", "libcrypto",
"libcutils", "libcutils",

View file

@ -22,7 +22,10 @@ cc_library {
srcs: ["trusty.c"], srcs: ["trusty.c"],
export_include_dirs: ["include"], export_include_dirs: ["include"],
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
shared_libs: ["liblog"], shared_libs: ["liblog"],
} }

View file

@ -25,5 +25,8 @@ cc_test {
"liblog", "liblog",
], ],
gtest: false, gtest: false,
cflags: ["-Wall", "-Werror"], cflags: [
"-Wall",
"-Werror",
],
} }

View file

@ -34,5 +34,5 @@ cc_library_static {
"-fvisibility=hidden", "-fvisibility=hidden",
"-Wall", "-Wall",
"-Werror", "-Werror",
] ],
} }

View file

@ -36,5 +36,5 @@ cc_binary {
cflags: [ cflags: [
"-Wall", "-Wall",
"-Werror", "-Werror",
] ],
} }

View file

@ -13,4 +13,3 @@ cc_binary {
"libcutils", "libcutils",
], ],
} }