123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- filegroup {
- name: "iorap-aidl",
- srcs: [
-
-
-
-
- "binder/com/google/android/startop/iorap/IIorap.aidl",
- "binder/com/google/android/startop/iorap/ITaskListener.aidl",
- ],
- }
- cc_defaults {
- name: "iorap-default-flags",
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- "-Wno-missing-field-initializers",
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- ],
- local_include_dirs: [
- "include",
- "src",
- ],
-
- export_include_dirs: [
- "include",
- "src",
- ],
-
- clang: true,
- shared_libs: ["libbase"],
- }
- cc_defaults {
- name: "iorap-default-dependencies",
- static_libs: [
- "libiorap-binder",
- "libplatformprotos",
- ],
- shared_libs: [
- "libbinder",
- "libutils",
- "libcutils",
- "libfruit",
-
-
-
-
-
- "libprotobuf-cpp-full",
- ],
-
-
-
- header_libs: ["librxcpp"],
- }
- cc_library_static {
- name: "libiorap-binder",
- defaults: ["iorap-default-flags"],
- srcs: [
- ":iorap-aidl",
- "src/binder/iiorap_impl.cc",
- ],
- shared_libs: [
- "libbinder",
- "libutils",
- "libcutils",
- ],
- aidl: {
- local_include_dirs: ["binder"],
- include_dirs: ["frameworks/native/aidl/binder"],
- export_aidl_headers: true,
- },
- static_libs: [
- "libplatformprotos",
- ],
- }
- cc_defaults {
- name: "libiorap-manager-default-dependencies",
- static_libs: [
- "libiorap-perfetto",
- ],
- defaults: [
- "libiorap-perfetto-default-dependencies",
- ],
-
-
- }
- cc_library_static {
- name: "libiorap-manager",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- "libiorap-manager-default-dependencies",
- ],
- srcs: [
- "src/manager/**/*.cc",
- ],
- }
- cc_binary {
- name: "iorapd",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- "libiorap-manager-default-dependencies",
- ],
- srcs: [
- "src/iorapd/main.cc",
- ],
- static_libs: [
- "libiorap-manager",
- ],
- init_rc: [
- "iorapd.rc",
- ],
- }
- cc_library_static {
- name: "libiorap-inode2filename",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- ],
- srcs: [
- "src/inode2filename/**/*.cc",
- ],
- }
- cc_binary {
- name: "iorap.inode2filename",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- ],
- srcs: [
- "src/inode2filename/**/*.cc",
- ],
-
-
- cflags: ["-O2", "-UNDEBUG", "-DIORAP_INODE2FILENAME_MAIN=1"],
- sanitize: {
- undefined: true,
- all_undefined: true,
-
-
-
- },
- }
- cc_test {
- name: "iorapd-tests",
- test_suites: ["device-tests"],
- gtest: false,
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- ],
- srcs: [
- "tests/src/**/*.cc",
- ],
- cflags: ["-O2", "-UNDEBUG"],
-
- static_libs: ["libgmock_main", "libgmock", "libgtest", "libiorap-inode2filename"],
- }
- filegroup {
- name: "libiorap-perfetto-protos",
- srcs: [
- ],
- }
- cc_defaults {
- name: "libiorap-perfetto-default-dependencies",
-
-
-
-
- include_dirs: ["external/perfetto/include"],
-
-
-
-
- static_libs: [
- "perfetto_trace_protos",
- ],
- shared_libs: [
-
-
-
-
-
- "libperfetto",
- ]
- }
- cc_library_static {
- name: "libiorap-perfetto",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- "libiorap-perfetto-default-dependencies",
- ],
- srcs: [
- "src/perfetto/**/*.cc",
- ],
- }
- cc_binary {
- name: "iorap.cmd.perfetto",
- defaults: [
- "iorap-default-flags",
- "iorap-default-dependencies",
- ],
- shared_libs: ["libperfetto"],
- include_dirs: ["external/perfetto/include"],
- srcs: [
- "src/perfetto/**/*.cc",
- ],
-
-
- cflags: ["-O2", "-UNDEBUG", "-DIORAP_PERFETTO_MAIN=1"],
- sanitize: {
- undefined: true,
- all_undefined: true,
-
-
-
- },
- static_libs: [
- "perfetto_trace_protos",
- ],
- }
|