1// Copyright 2006 The Android Open Source Project 2 3cc_library_headers { 4 name: "libhardware_legacy_headers", 5 vendor_available: true, 6 export_include_dirs: ["include"], 7 8 header_libs: ["libcutils_headers"], 9 export_header_lib_headers: ["libcutils_headers"], 10} 11 12cc_defaults { 13 name: "libpower_defaults", 14 defaults: ["system_suspend_defaults"], 15 cflags: [ 16 "-Wexit-time-destructors", 17 "-fno-c++-static-destructors", 18 ], 19} 20 21cc_library { 22 name: "libpower", 23 defaults: ["libpower_defaults"], 24 srcs: ["power.cpp"], 25 export_include_dirs: ["include"], 26 shared_libs: ["android.system.suspend@1.0"], 27 vendor_available: true, 28 vndk: { 29 enabled: true, 30 }, 31} 32 33cc_test { 34 name: "libpower_test", 35 defaults: ["libpower_defaults"], 36 srcs: ["power_test.cpp"], 37 static_libs: ["libpower"], 38 shared_libs: ["android.system.suspend@1.0"], 39 test_suites: ["device-tests"], 40} 41 42cc_library_shared { 43 name: "libhardware_legacy", 44 defaults: ["libpower_defaults"], 45 vendor_available: true, 46 vndk: { 47 enabled: true, 48 }, 49 50 shared_libs: [ 51 "android.system.suspend@1.0", 52 "libdl", 53 ], 54 55 header_libs: [ 56 "libhardware_legacy_headers", 57 ], 58 export_header_lib_headers: ["libhardware_legacy_headers"], 59 60 export_include_dirs: ["include"], 61 62 cflags: [ 63 "-DQEMU_HARDWARE", 64 "-Wall", 65 "-Werror", 66 ], 67 68 srcs: [ 69 "power.cpp", 70 "uevent.c", 71 ], 72} 73