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