Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_av_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_av_license"], |
| 8 | } |
| 9 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 10 | cc_test { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 11 | name: "ccodec_unit_test", |
Ray Essick | f867ca7 | 2020-04-29 19:41:08 -0700 | [diff] [blame] | 12 | test_suites: ["device-tests"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 13 | |
| 14 | srcs: [ |
Wonsik Kim | 41d8343 | 2020-04-27 16:40:49 -0700 | [diff] [blame] | 15 | "CCodecBuffers_test.cpp", |
Wonsik Kim | 8a6ed37 | 2019-12-03 16:05:51 -0800 | [diff] [blame] | 16 | "CCodecConfig_test.cpp", |
Wonsik Kim | 0379ae8 | 2020-11-24 15:01:33 -0800 | [diff] [blame] | 17 | "FrameReassembler_test.cpp", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 18 | "ReflectedParamUpdater_test.cpp", |
| 19 | ], |
| 20 | |
Wonsik Kim | 8a6ed37 | 2019-12-03 16:05:51 -0800 | [diff] [blame] | 21 | defaults: [ |
Wonsik Kim | 41d8343 | 2020-04-27 16:40:49 -0700 | [diff] [blame] | 22 | "libcodec2-impl-defaults", |
Wonsik Kim | 8a6ed37 | 2019-12-03 16:05:51 -0800 | [diff] [blame] | 23 | "libcodec2-internal-defaults", |
| 24 | ], |
| 25 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 26 | include_dirs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 27 | "frameworks/av/media/codec2/sfplugin", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 28 | ], |
| 29 | |
| 30 | shared_libs: [ |
Wonsik Kim | 41d8343 | 2020-04-27 16:40:49 -0700 | [diff] [blame] | 31 | "android.hardware.media.bufferpool@2.0", |
| 32 | "android.hardware.media.c2@1.0", |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 33 | "libcodec2", |
Wonsik Kim | 8a6ed37 | 2019-12-03 16:05:51 -0800 | [diff] [blame] | 34 | "libcodec2_client", |
Wonsik Kim | 41d8343 | 2020-04-27 16:40:49 -0700 | [diff] [blame] | 35 | "libhidlbase", |
| 36 | "libfmq", |
| 37 | "libmedia_omx", |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 38 | "libsfplugin_ccodec", |
Wonsik Kim | 8a6ed37 | 2019-12-03 16:05:51 -0800 | [diff] [blame] | 39 | "libsfplugin_ccodec_utils", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 40 | "libstagefright_foundation", |
| 41 | "libutils", |
| 42 | ], |
| 43 | |
Wonsik Kim | 41d8343 | 2020-04-27 16:40:49 -0700 | [diff] [blame] | 44 | static_libs: [ |
| 45 | "libcodec2_hidl@1.0", |
| 46 | "libstagefright_bufferpool@2.0", |
| 47 | ], |
| 48 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 49 | cflags: [ |
| 50 | "-Werror", |
| 51 | "-Wall", |
| 52 | ], |
| 53 | } |
| 54 | |
| 55 | cc_test { |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 56 | name: "mc_sanity_test", |
Ray Essick | f867ca7 | 2020-04-29 19:41:08 -0700 | [diff] [blame] | 57 | test_suites: ["device-tests"], |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 58 | |
| 59 | srcs: [ |
| 60 | "MediaCodec_sanity_test.cpp", |
| 61 | ], |
| 62 | |
| 63 | include_dirs: [ |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 64 | "frameworks/av/media/codec2/sfplugin", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 65 | ], |
| 66 | |
Marco Nelissen | 13aa1a4 | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 67 | header_libs: [ |
| 68 | "libmediadrm_headers", |
Marco Nelissen | 7c96ea7 | 2020-01-10 15:46:22 -0800 | [diff] [blame] | 69 | "libmediametrics_headers", |
Marco Nelissen | 13aa1a4 | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 70 | ], |
| 71 | |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 72 | shared_libs: [ |
| 73 | "libbinder", |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 74 | "libcodec2", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 75 | "libgui", |
| 76 | "libmedia", |
| 77 | "libmedia_omx", |
Pawin Vongmasa | d0f0e14 | 2018-11-15 03:36:28 -0800 | [diff] [blame] | 78 | "libsfplugin_ccodec", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 79 | "libstagefright", |
Pawin Vongmasa | 3665390 | 2018-11-15 00:10:25 -0800 | [diff] [blame] | 80 | "libstagefright_foundation", |
| 81 | "libutils", |
| 82 | ], |
| 83 | |
| 84 | cflags: [ |
| 85 | "-Werror", |
| 86 | "-Wall", |
| 87 | ], |
| 88 | } |