Hangyu Kuang | 71b9fb4 | 2019-11-27 10:33:32 -0800 | [diff] [blame] | 1 | // service library |
| 2 | cc_library_shared { |
| 3 | name: "libmediatranscodingservice", |
| 4 | |
| 5 | srcs: ["MediaTranscodingService.cpp"], |
| 6 | |
| 7 | shared_libs: [ |
| 8 | "libbinder_ndk", |
| 9 | "liblog", |
| 10 | ], |
| 11 | |
| 12 | static_libs: [ |
| 13 | "mediatranscoding_aidl_interface-ndk_platform", |
| 14 | ], |
| 15 | |
| 16 | cflags: [ |
| 17 | "-Werror", |
| 18 | "-Wall", |
| 19 | ], |
| 20 | } |
| 21 | |
| 22 | cc_binary { |
| 23 | name: "mediatranscoding", |
| 24 | |
| 25 | srcs: [ |
| 26 | "main_mediatranscodingservice.cpp", |
| 27 | ], |
| 28 | |
| 29 | shared_libs: [ |
| 30 | // TODO(hkuang): Use libbinder_ndk |
| 31 | "libbinder", |
| 32 | "libutils", |
| 33 | "liblog", |
| 34 | "libbase", |
| 35 | "libmediatranscodingservice", |
| 36 | ], |
| 37 | |
| 38 | static_libs: [ |
| 39 | "mediatranscoding_aidl_interface-ndk_platform", |
| 40 | ], |
| 41 | |
| 42 | target: { |
| 43 | android: { |
| 44 | product_variables: { |
| 45 | malloc_not_svelte: { |
| 46 | // Scudo increases memory footprint, so only enable on |
| 47 | // non-svelte devices. |
| 48 | shared_libs: ["libc_scudo"], |
| 49 | }, |
| 50 | }, |
| 51 | }, |
| 52 | }, |
| 53 | |
| 54 | init_rc: ["mediatranscoding.rc"], |
| 55 | |
| 56 | cflags: [ |
| 57 | "-Werror", |
| 58 | "-Wall", |
| 59 | ], |
| 60 | } |