Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 1 | # Copyright 2021 The Cobalt Authors. All Rights Reserved. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Kaido Kert | 0c2b1d4 | 2023-04-10 16:27:03 -0700 | [diff] [blame] | 15 | import("//starboard/shared/enhanced_audio/enhanced_audio.gni") |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 16 | import("//starboard/shared/starboard/media/media_tests.gni") |
Kaido Kert | 6f3fc44 | 2021-06-25 11:58:59 -0700 | [diff] [blame] | 17 | import("//starboard/shared/starboard/player/buildfiles.gni") |
Kaido Kert | 3cd5432 | 2021-11-02 18:58:17 -0700 | [diff] [blame] | 18 | import("//starboard/shared/starboard/player/player_tests.gni") |
Kaido Kert | 6f3fc44 | 2021-06-25 11:58:59 -0700 | [diff] [blame] | 19 | |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 20 | group("starboard_platform") { |
| 21 | public_deps = [ |
| 22 | ":starboard_base_symbolize", |
| 23 | ":starboard_platform_sources", |
| 24 | "//starboard/common", |
| 25 | "//starboard/shared/ffmpeg:ffmpeg_dynamic_load", |
| 26 | "//starboard/shared/starboard/media:media_util", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 27 | ] |
| 28 | |
| 29 | deps = [ |
| 30 | "//third_party/libevent", |
Kaido Kert | 5271109 | 2023-02-14 18:06:26 -0800 | [diff] [blame] | 31 | "//third_party/modp_b64", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 32 | "//third_party/opus", |
| 33 | ] |
| 34 | |
| 35 | if (sb_is_evergreen_compatible) { |
Kaido Kert | 0c2b1d4 | 2023-04-10 16:27:03 -0700 | [diff] [blame] | 36 | public_deps += [ |
| 37 | "//starboard/elf_loader:constants", |
| 38 | "//starboard/elf_loader:evergreen_config", |
| 39 | "//starboard/loader_app:pending_restart", |
| 40 | ] |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | if (sb_evergreen_compatible_use_libunwind) { |
| 44 | deps += [ "//third_party/llvm-project/libunwind:unwind_starboard" ] |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | static_library("starboard_base_symbolize") { |
| 49 | sources = [ |
| 50 | "//base/third_party/symbolize/demangle.cc", |
| 51 | "//base/third_party/symbolize/symbolize.cc", |
| 52 | ] |
| 53 | public_deps = [ "//starboard/elf_loader:evergreen_info" ] |
| 54 | } |
| 55 | |
| 56 | static_library("starboard_platform_sources") { |
| 57 | check_includes = false |
| 58 | sources = [ |
| 59 | "//starboard/linux/shared/atomic_public.h", |
| 60 | "//starboard/linux/shared/audio_sink_type_dispatcher.cc", |
| 61 | "//starboard/linux/shared/configuration.cc", |
| 62 | "//starboard/linux/shared/configuration.h", |
| 63 | "//starboard/linux/shared/configuration_constants.cc", |
| 64 | "//starboard/linux/shared/configuration_public.h", |
| 65 | "//starboard/linux/shared/decode_target_get_info.cc", |
| 66 | "//starboard/linux/shared/decode_target_internal.cc", |
| 67 | "//starboard/linux/shared/decode_target_internal.h", |
| 68 | "//starboard/linux/shared/decode_target_release.cc", |
| 69 | "//starboard/linux/shared/media_is_audio_supported.cc", |
| 70 | "//starboard/linux/shared/media_is_video_supported.cc", |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 71 | "//starboard/linux/shared/netlink.cc", |
| 72 | "//starboard/linux/shared/netlink.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 73 | "//starboard/linux/shared/player_components_factory.cc", |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 74 | "//starboard/linux/shared/routes.cc", |
| 75 | "//starboard/linux/shared/routes.h", |
Kaido Kert | 08336fa | 2022-02-08 14:10:50 -0800 | [diff] [blame] | 76 | "//starboard/linux/shared/soft_mic_platform_service.cc", |
| 77 | "//starboard/linux/shared/soft_mic_platform_service.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 78 | "//starboard/linux/shared/system_get_connection_type.cc", |
| 79 | "//starboard/linux/shared/system_get_device_type.cc", |
| 80 | "//starboard/linux/shared/system_get_extensions.cc", |
| 81 | "//starboard/linux/shared/system_get_path.cc", |
| 82 | "//starboard/linux/shared/system_has_capability.cc", |
| 83 | "//starboard/shared/alsa/alsa_audio_sink_type.cc", |
| 84 | "//starboard/shared/alsa/alsa_audio_sink_type.h", |
| 85 | "//starboard/shared/alsa/alsa_util.cc", |
| 86 | "//starboard/shared/alsa/alsa_util.h", |
| 87 | "//starboard/shared/deviceauth/deviceauth_internal.cc", |
Kaido Kert | 5271109 | 2023-02-14 18:06:26 -0800 | [diff] [blame] | 88 | "//starboard/shared/deviceauth/deviceauth_internal.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 89 | "//starboard/shared/egl/system_egl.cc", |
| 90 | "//starboard/shared/gcc/atomic_gcc_public.h", |
| 91 | "//starboard/shared/gles/system_gles2.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 92 | "//starboard/shared/iso/directory_close.cc", |
| 93 | "//starboard/shared/iso/directory_get_next.cc", |
| 94 | "//starboard/shared/iso/directory_open.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 95 | "//starboard/shared/iso/memory_allocate_unchecked.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 96 | "//starboard/shared/iso/memory_free.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 97 | "//starboard/shared/iso/memory_reallocate_unchecked.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 98 | "//starboard/shared/iso/string_scan.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 99 | "//starboard/shared/libdav1d/dav1d_video_decoder.cc", |
| 100 | "//starboard/shared/libdav1d/dav1d_video_decoder.h", |
| 101 | "//starboard/shared/libde265/de265_library_loader.cc", |
| 102 | "//starboard/shared/libde265/de265_library_loader.h", |
| 103 | "//starboard/shared/libde265/de265_video_decoder.cc", |
| 104 | "//starboard/shared/libde265/de265_video_decoder.h", |
| 105 | "//starboard/shared/libevent/socket_waiter_add.cc", |
| 106 | "//starboard/shared/libevent/socket_waiter_create.cc", |
| 107 | "//starboard/shared/libevent/socket_waiter_destroy.cc", |
| 108 | "//starboard/shared/libevent/socket_waiter_internal.cc", |
| 109 | "//starboard/shared/libevent/socket_waiter_remove.cc", |
| 110 | "//starboard/shared/libevent/socket_waiter_wait.cc", |
| 111 | "//starboard/shared/libevent/socket_waiter_wait_timed.cc", |
| 112 | "//starboard/shared/libevent/socket_waiter_wake_up.cc", |
Kaido Kert | 5271109 | 2023-02-14 18:06:26 -0800 | [diff] [blame] | 113 | "//starboard/shared/libfdkaac/fdk_aac_audio_decoder.cc", |
| 114 | "//starboard/shared/libfdkaac/fdk_aac_audio_decoder.h", |
| 115 | "//starboard/shared/libfdkaac/libfdkaac_library_loader.cc", |
| 116 | "//starboard/shared/libfdkaac/libfdkaac_library_loader.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 117 | "//starboard/shared/libvpx/vpx_video_decoder.cc", |
| 118 | "//starboard/shared/libvpx/vpx_video_decoder.h", |
| 119 | "//starboard/shared/linux/byte_swap.cc", |
| 120 | "//starboard/shared/linux/cpu_features_get.cc", |
| 121 | "//starboard/shared/linux/dev_input/dev_input.cc", |
| 122 | "//starboard/shared/linux/dev_input/dev_input.h", |
| 123 | "//starboard/shared/linux/get_home_directory.cc", |
| 124 | "//starboard/shared/linux/memory_get_stack_bounds.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 125 | "//starboard/shared/linux/socket_get_interface_address.cc", |
| 126 | "//starboard/shared/linux/system_get_random_data.cc", |
| 127 | "//starboard/shared/linux/system_get_stack.cc", |
| 128 | "//starboard/shared/linux/system_get_total_cpu_memory.cc", |
| 129 | "//starboard/shared/linux/system_get_used_cpu_memory.cc", |
| 130 | "//starboard/shared/linux/system_is_debugger_attached.cc", |
| 131 | "//starboard/shared/linux/system_network_status.cc", |
| 132 | "//starboard/shared/linux/system_symbolize.cc", |
| 133 | "//starboard/shared/linux/thread_get_id.cc", |
| 134 | "//starboard/shared/linux/thread_get_name.cc", |
| 135 | "//starboard/shared/linux/thread_set_name.cc", |
| 136 | "//starboard/shared/nouser/user_get_current.cc", |
| 137 | "//starboard/shared/nouser/user_get_property.cc", |
| 138 | "//starboard/shared/nouser/user_get_signed_in.cc", |
| 139 | "//starboard/shared/nouser/user_internal.cc", |
Kaido Kert | 5864f47 | 2022-11-18 11:03:09 -0800 | [diff] [blame] | 140 | "//starboard/shared/openh264/openh264_library_loader.cc", |
| 141 | "//starboard/shared/openh264/openh264_library_loader.h", |
| 142 | "//starboard/shared/openh264/openh264_video_decoder.cc", |
| 143 | "//starboard/shared/openh264/openh264_video_decoder.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 144 | "//starboard/shared/opus/opus_audio_decoder.cc", |
| 145 | "//starboard/shared/opus/opus_audio_decoder.h", |
| 146 | "//starboard/shared/posix/directory_create.cc", |
Kaido Kert | da45c04 | 2022-05-09 11:08:54 -0700 | [diff] [blame] | 147 | "//starboard/shared/posix/environment.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 148 | "//starboard/shared/posix/file_atomic_replace.cc", |
| 149 | "//starboard/shared/posix/file_can_open.cc", |
| 150 | "//starboard/shared/posix/file_close.cc", |
| 151 | "//starboard/shared/posix/file_delete.cc", |
| 152 | "//starboard/shared/posix/file_exists.cc", |
| 153 | "//starboard/shared/posix/file_flush.cc", |
| 154 | "//starboard/shared/posix/file_get_info.cc", |
| 155 | "//starboard/shared/posix/file_get_path_info.cc", |
| 156 | "//starboard/shared/posix/file_open.cc", |
| 157 | "//starboard/shared/posix/file_read.cc", |
| 158 | "//starboard/shared/posix/file_seek.cc", |
| 159 | "//starboard/shared/posix/file_truncate.cc", |
| 160 | "//starboard/shared/posix/file_write.cc", |
Kaido Kert | 08336fa | 2022-02-08 14:10:50 -0800 | [diff] [blame] | 161 | "//starboard/shared/posix/free_space.cc", |
| 162 | "//starboard/shared/posix/free_space.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 163 | "//starboard/shared/posix/log.cc", |
| 164 | "//starboard/shared/posix/log_flush.cc", |
| 165 | "//starboard/shared/posix/log_format.cc", |
| 166 | "//starboard/shared/posix/log_is_tty.cc", |
| 167 | "//starboard/shared/posix/log_raw.cc", |
| 168 | "//starboard/shared/posix/memory_allocate_aligned_unchecked.cc", |
| 169 | "//starboard/shared/posix/memory_flush.cc", |
| 170 | "//starboard/shared/posix/memory_free_aligned.cc", |
Kaido Kert | da45c04 | 2022-05-09 11:08:54 -0700 | [diff] [blame] | 171 | "//starboard/shared/posix/memory_map.cc", |
Kaido Kert | c52866b | 2021-10-12 14:21:43 -0700 | [diff] [blame] | 172 | "//starboard/shared/posix/memory_mapped_file.cc", |
| 173 | "//starboard/shared/posix/memory_mapped_file.h", |
Kaido Kert | da45c04 | 2022-05-09 11:08:54 -0700 | [diff] [blame] | 174 | "//starboard/shared/posix/memory_protect.cc", |
| 175 | "//starboard/shared/posix/memory_unmap.cc", |
| 176 | "//starboard/shared/posix/page_internal.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 177 | "//starboard/shared/posix/set_non_blocking_internal.cc", |
| 178 | "//starboard/shared/posix/socket_accept.cc", |
| 179 | "//starboard/shared/posix/socket_bind.cc", |
| 180 | "//starboard/shared/posix/socket_clear_last_error.cc", |
| 181 | "//starboard/shared/posix/socket_connect.cc", |
| 182 | "//starboard/shared/posix/socket_create.cc", |
| 183 | "//starboard/shared/posix/socket_destroy.cc", |
| 184 | "//starboard/shared/posix/socket_free_resolution.cc", |
| 185 | "//starboard/shared/posix/socket_get_last_error.cc", |
| 186 | "//starboard/shared/posix/socket_get_local_address.cc", |
| 187 | "//starboard/shared/posix/socket_internal.cc", |
| 188 | "//starboard/shared/posix/socket_is_connected.cc", |
| 189 | "//starboard/shared/posix/socket_is_connected_and_idle.cc", |
| 190 | "//starboard/shared/posix/socket_is_ipv6_supported.cc", |
| 191 | "//starboard/shared/posix/socket_join_multicast_group.cc", |
| 192 | "//starboard/shared/posix/socket_listen.cc", |
| 193 | "//starboard/shared/posix/socket_receive_from.cc", |
| 194 | "//starboard/shared/posix/socket_resolve.cc", |
| 195 | "//starboard/shared/posix/socket_send_to.cc", |
| 196 | "//starboard/shared/posix/socket_set_broadcast.cc", |
| 197 | "//starboard/shared/posix/socket_set_receive_buffer_size.cc", |
| 198 | "//starboard/shared/posix/socket_set_reuse_address.cc", |
| 199 | "//starboard/shared/posix/socket_set_send_buffer_size.cc", |
| 200 | "//starboard/shared/posix/socket_set_tcp_keep_alive.cc", |
| 201 | "//starboard/shared/posix/socket_set_tcp_no_delay.cc", |
| 202 | "//starboard/shared/posix/socket_set_tcp_window_scaling.cc", |
| 203 | "//starboard/shared/posix/storage_write_record.cc", |
| 204 | "//starboard/shared/posix/string_compare_no_case.cc", |
| 205 | "//starboard/shared/posix/string_compare_no_case_n.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 206 | "//starboard/shared/posix/string_format.cc", |
| 207 | "//starboard/shared/posix/string_format_wide.cc", |
| 208 | "//starboard/shared/posix/system_break_into_debugger.cc", |
| 209 | "//starboard/shared/posix/system_clear_last_error.cc", |
| 210 | "//starboard/shared/posix/system_get_error_string.cc", |
| 211 | "//starboard/shared/posix/system_get_last_error.cc", |
| 212 | "//starboard/shared/posix/system_get_locale_id.cc", |
| 213 | "//starboard/shared/posix/system_get_number_of_processors.cc", |
| 214 | "//starboard/shared/posix/thread_sleep.cc", |
| 215 | "//starboard/shared/posix/time_get_monotonic_now.cc", |
| 216 | "//starboard/shared/posix/time_get_monotonic_thread_now.cc", |
| 217 | "//starboard/shared/posix/time_get_now.cc", |
| 218 | "//starboard/shared/posix/time_is_time_thread_now_supported.cc", |
| 219 | "//starboard/shared/posix/time_zone_get_current.cc", |
| 220 | "//starboard/shared/posix/time_zone_get_name.cc", |
| 221 | "//starboard/shared/pthread/condition_variable_broadcast.cc", |
| 222 | "//starboard/shared/pthread/condition_variable_create.cc", |
| 223 | "//starboard/shared/pthread/condition_variable_destroy.cc", |
| 224 | "//starboard/shared/pthread/condition_variable_signal.cc", |
| 225 | "//starboard/shared/pthread/condition_variable_wait.cc", |
| 226 | "//starboard/shared/pthread/condition_variable_wait_timed.cc", |
| 227 | "//starboard/shared/pthread/mutex_acquire.cc", |
| 228 | "//starboard/shared/pthread/mutex_acquire_try.cc", |
| 229 | "//starboard/shared/pthread/mutex_create.cc", |
| 230 | "//starboard/shared/pthread/mutex_destroy.cc", |
| 231 | "//starboard/shared/pthread/mutex_release.cc", |
| 232 | "//starboard/shared/pthread/once.cc", |
| 233 | "//starboard/shared/pthread/thread_context_get_pointer.cc", |
| 234 | "//starboard/shared/pthread/thread_context_internal.cc", |
| 235 | "//starboard/shared/pthread/thread_context_internal.h", |
| 236 | "//starboard/shared/pthread/thread_create.cc", |
| 237 | "//starboard/shared/pthread/thread_create_local_key.cc", |
| 238 | "//starboard/shared/pthread/thread_create_priority.h", |
| 239 | "//starboard/shared/pthread/thread_destroy_local_key.cc", |
| 240 | "//starboard/shared/pthread/thread_detach.cc", |
| 241 | "//starboard/shared/pthread/thread_get_current.cc", |
| 242 | "//starboard/shared/pthread/thread_get_local_value.cc", |
| 243 | "//starboard/shared/pthread/thread_is_equal.cc", |
| 244 | "//starboard/shared/pthread/thread_join.cc", |
| 245 | "//starboard/shared/pthread/thread_sampler_create.cc", |
| 246 | "//starboard/shared/pthread/thread_sampler_destroy.cc", |
| 247 | "//starboard/shared/pthread/thread_sampler_freeze.cc", |
| 248 | "//starboard/shared/pthread/thread_sampler_internal.cc", |
| 249 | "//starboard/shared/pthread/thread_sampler_internal.h", |
| 250 | "//starboard/shared/pthread/thread_sampler_is_supported.cc", |
| 251 | "//starboard/shared/pthread/thread_sampler_thaw.cc", |
| 252 | "//starboard/shared/pthread/thread_set_local_value.cc", |
| 253 | "//starboard/shared/pthread/thread_yield.cc", |
| 254 | "//starboard/shared/pulse/pulse_audio_sink_type.cc", |
| 255 | "//starboard/shared/pulse/pulse_audio_sink_type.h", |
| 256 | "//starboard/shared/pulse/pulse_dynamic_load_dispatcher.cc", |
| 257 | "//starboard/shared/pulse/pulse_dynamic_load_dispatcher.h", |
| 258 | "//starboard/shared/signal/crash_signals.h", |
| 259 | "//starboard/shared/signal/crash_signals_sigaction.cc", |
Kaido Kert | 08336fa | 2022-02-08 14:10:50 -0800 | [diff] [blame] | 260 | "//starboard/shared/signal/debug_signals.cc", |
| 261 | "//starboard/shared/signal/debug_signals.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 262 | "//starboard/shared/signal/suspend_signals.cc", |
| 263 | "//starboard/shared/signal/suspend_signals.h", |
| 264 | "//starboard/shared/signal/system_request_conceal.cc", |
| 265 | "//starboard/shared/signal/system_request_freeze.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 266 | "//starboard/shared/starboard/application.cc", |
| 267 | "//starboard/shared/starboard/audio_sink/audio_sink_create.cc", |
| 268 | "//starboard/shared/starboard/audio_sink/audio_sink_destroy.cc", |
| 269 | "//starboard/shared/starboard/audio_sink/audio_sink_get_max_channels_5_1.cc", |
| 270 | "//starboard/shared/starboard/audio_sink/audio_sink_get_min_buffer_size_in_frames.cc", |
| 271 | "//starboard/shared/starboard/audio_sink/audio_sink_get_nearest_supported_sample_frequency.cc", |
| 272 | "//starboard/shared/starboard/audio_sink/audio_sink_internal.cc", |
| 273 | "//starboard/shared/starboard/audio_sink/audio_sink_internal.h", |
| 274 | "//starboard/shared/starboard/audio_sink/audio_sink_is_audio_frame_storage_type_supported_interleaved_only.cc", |
| 275 | "//starboard/shared/starboard/audio_sink/audio_sink_is_audio_sample_type_supported_float32_only.cc", |
| 276 | "//starboard/shared/starboard/audio_sink/audio_sink_is_valid.cc", |
| 277 | "//starboard/shared/starboard/audio_sink/stub_audio_sink_type.cc", |
| 278 | "//starboard/shared/starboard/audio_sink/stub_audio_sink_type.h", |
| 279 | "//starboard/shared/starboard/command_line.cc", |
| 280 | "//starboard/shared/starboard/command_line.h", |
| 281 | "//starboard/shared/starboard/crash_handler.cc", |
| 282 | "//starboard/shared/starboard/crash_handler.h", |
| 283 | "//starboard/shared/starboard/directory_can_open.cc", |
| 284 | "//starboard/shared/starboard/event_cancel.cc", |
| 285 | "//starboard/shared/starboard/event_schedule.cc", |
| 286 | "//starboard/shared/starboard/file_atomic_replace_write_file.cc", |
| 287 | "//starboard/shared/starboard/file_atomic_replace_write_file.h", |
| 288 | "//starboard/shared/starboard/file_mode_string_to_flags.cc", |
| 289 | "//starboard/shared/starboard/file_storage/storage_close_record.cc", |
| 290 | "//starboard/shared/starboard/file_storage/storage_delete_record.cc", |
| 291 | "//starboard/shared/starboard/file_storage/storage_get_record_size.cc", |
| 292 | "//starboard/shared/starboard/file_storage/storage_open_record.cc", |
| 293 | "//starboard/shared/starboard/file_storage/storage_read_record.cc", |
| 294 | "//starboard/shared/starboard/log_mutex.cc", |
| 295 | "//starboard/shared/starboard/log_mutex.h", |
| 296 | "//starboard/shared/starboard/log_raw_dump_stack.cc", |
| 297 | "//starboard/shared/starboard/log_raw_format.cc", |
| 298 | "//starboard/shared/starboard/media/media_can_play_mime_and_key_system.cc", |
| 299 | "//starboard/shared/starboard/media/media_get_audio_buffer_budget.cc", |
Kaido Kert | 788710a | 2023-06-05 07:50:22 -0700 | [diff] [blame] | 300 | "//starboard/shared/starboard/media/media_get_audio_configuration.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 301 | "//starboard/shared/starboard/media/media_get_audio_output_count_single_audio_output.cc", |
| 302 | "//starboard/shared/starboard/media/media_get_buffer_alignment.cc", |
| 303 | "//starboard/shared/starboard/media/media_get_buffer_allocation_unit.cc", |
| 304 | "//starboard/shared/starboard/media/media_get_buffer_garbage_collection_duration_threshold.cc", |
| 305 | "//starboard/shared/starboard/media/media_get_buffer_padding.cc", |
| 306 | "//starboard/shared/starboard/media/media_get_buffer_storage_type.cc", |
| 307 | "//starboard/shared/starboard/media/media_get_initial_buffer_capacity.cc", |
| 308 | "//starboard/shared/starboard/media/media_get_max_buffer_capacity.cc", |
| 309 | "//starboard/shared/starboard/media/media_get_progressive_buffer_budget.cc", |
| 310 | "//starboard/shared/starboard/media/media_get_video_buffer_budget.cc", |
| 311 | "//starboard/shared/starboard/media/media_is_buffer_pool_allocate_on_demand.cc", |
| 312 | "//starboard/shared/starboard/media/media_is_buffer_using_memory_pool.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 313 | "//starboard/shared/starboard/memory.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 314 | "//starboard/shared/starboard/queue_application.cc", |
Kaido Kert | da45c04 | 2022-05-09 11:08:54 -0700 | [diff] [blame] | 315 | "//starboard/shared/starboard/starboard_switches.cc", |
| 316 | "//starboard/shared/starboard/starboard_switches.h", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 317 | "//starboard/shared/starboard/string_duplicate.cc", |
| 318 | "//starboard/shared/starboard/system_get_random_uint64.cc", |
| 319 | "//starboard/shared/starboard/system_request_blur.cc", |
| 320 | "//starboard/shared/starboard/system_request_focus.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 321 | "//starboard/shared/starboard/system_request_reveal.cc", |
| 322 | "//starboard/shared/starboard/system_request_stop.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 323 | "//starboard/shared/starboard/system_supports_resume.cc", |
| 324 | "//starboard/shared/starboard/window_set_default_options.cc", |
| 325 | "//starboard/shared/stub/accessibility_get_caption_settings.cc", |
| 326 | "//starboard/shared/stub/accessibility_get_display_settings.cc", |
| 327 | "//starboard/shared/stub/accessibility_get_text_to_speech_settings.cc", |
| 328 | "//starboard/shared/stub/accessibility_set_captions_enabled.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 329 | "//starboard/shared/stub/media_set_audio_write_duration.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 330 | "//starboard/shared/stub/microphone_close.cc", |
| 331 | "//starboard/shared/stub/microphone_create.cc", |
| 332 | "//starboard/shared/stub/microphone_destroy.cc", |
| 333 | "//starboard/shared/stub/microphone_get_available.cc", |
| 334 | "//starboard/shared/stub/microphone_is_sample_rate_supported.cc", |
| 335 | "//starboard/shared/stub/microphone_open.cc", |
| 336 | "//starboard/shared/stub/microphone_read.cc", |
| 337 | "//starboard/shared/stub/speech_synthesis_cancel.cc", |
| 338 | "//starboard/shared/stub/speech_synthesis_is_supported.cc", |
| 339 | "//starboard/shared/stub/speech_synthesis_speak.cc", |
| 340 | "//starboard/shared/stub/system_get_total_gpu_memory.cc", |
| 341 | "//starboard/shared/stub/system_get_used_gpu_memory.cc", |
| 342 | "//starboard/shared/stub/system_hide_splash_screen.cc", |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 343 | "//starboard/shared/stub/system_raise_platform_error.cc", |
| 344 | "//starboard/shared/stub/system_sign_with_certification_secret_key.cc", |
| 345 | "//starboard/shared/stub/thread_create_priority.cc", |
| 346 | "//starboard/shared/stub/ui_nav_get_interface.cc", |
| 347 | "//starboard/shared/stub/window_blur_on_screen_keyboard.cc", |
| 348 | "//starboard/shared/stub/window_focus_on_screen_keyboard.cc", |
| 349 | "//starboard/shared/stub/window_get_diagonal_size_in_inches.cc", |
| 350 | "//starboard/shared/stub/window_get_on_screen_keyboard_bounding_rect.cc", |
| 351 | "//starboard/shared/stub/window_hide_on_screen_keyboard.cc", |
| 352 | "//starboard/shared/stub/window_is_on_screen_keyboard_shown.cc", |
| 353 | "//starboard/shared/stub/window_on_screen_keyboard_is_supported.cc", |
| 354 | "//starboard/shared/stub/window_on_screen_keyboard_suggestions_supported.cc", |
| 355 | "//starboard/shared/stub/window_set_on_screen_keyboard_keep_focus.cc", |
| 356 | "//starboard/shared/stub/window_show_on_screen_keyboard.cc", |
| 357 | "//starboard/shared/stub/window_update_on_screen_keyboard_suggestions.cc", |
| 358 | ] |
Kaido Kert | 6f3fc44 | 2021-06-25 11:58:59 -0700 | [diff] [blame] | 359 | |
| 360 | sources += common_player_sources |
| 361 | |
Kaido Kert | c52866b | 2021-10-12 14:21:43 -0700 | [diff] [blame] | 362 | sources -= [ "//starboard/shared/starboard/player/player_set_bounds.cc" ] |
| 363 | |
Kaido Kert | 0c2b1d4 | 2023-04-10 16:27:03 -0700 | [diff] [blame] | 364 | if (sb_api_version < 15) { |
| 365 | sources -= [ "//starboard/shared/starboard/player/player_write_samples.cc" ] |
| 366 | sources += enhanced_audio_sources |
| 367 | } |
| 368 | |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 369 | configs += [ |
| 370 | "//starboard/build/config:starboard_implementation", |
| 371 | "//third_party/de265_includes", |
| 372 | "//third_party/pulseaudio_includes", |
| 373 | ] |
| 374 | |
| 375 | public_deps = [ |
| 376 | "//starboard:starboard_headers_only", |
| 377 | "//starboard/shared/starboard/player/filter:filter_based_player_sources", |
| 378 | ] |
| 379 | deps = [ "//third_party/boringssl:crypto" ] |
| 380 | |
| 381 | if (is_internal_build) { |
| 382 | sources += [ |
Kaido Kert | 788710a | 2023-06-05 07:50:22 -0700 | [diff] [blame] | 383 | "//internal/starboard/linux/shared/internal/oemcrypto_engine_device_properties_linux.cc", |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 384 | "//starboard/linux/shared/drm_create_system.cc", |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 385 | "//starboard/shared/starboard/drm/drm_close_session.cc", |
| 386 | "//starboard/shared/starboard/drm/drm_destroy_system.cc", |
| 387 | "//starboard/shared/starboard/drm/drm_generate_session_update_request.cc", |
| 388 | "//starboard/shared/starboard/drm/drm_get_metrics.cc", |
| 389 | "//starboard/shared/starboard/drm/drm_is_server_certificate_updatable.cc", |
| 390 | "//starboard/shared/starboard/drm/drm_system_internal.h", |
| 391 | "//starboard/shared/starboard/drm/drm_update_server_certificate.cc", |
| 392 | "//starboard/shared/starboard/drm/drm_update_session.cc", |
| 393 | "//starboard/shared/widevine/drm_system_widevine.cc", |
| 394 | "//starboard/shared/widevine/drm_system_widevine.h", |
| 395 | "//starboard/shared/widevine/media_is_supported.cc", |
| 396 | "//starboard/shared/widevine/widevine_storage.cc", |
| 397 | "//starboard/shared/widevine/widevine_storage.h", |
| 398 | "//starboard/shared/widevine/widevine_timer.cc", |
| 399 | "//starboard/shared/widevine/widevine_timer.h", |
| 400 | ] |
| 401 | deps += [ |
| 402 | "//starboard/shared/widevine:oemcrypto", |
Kaido Kert | 788710a | 2023-06-05 07:50:22 -0700 | [diff] [blame] | 403 | "//third_party/internal/ce_cdm/cdm:widevine_ce_cdm_static", |
Kaido Kert | 3da06c6 | 2021-07-23 11:22:43 -0700 | [diff] [blame] | 404 | ] |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 405 | } else { |
| 406 | sources += [ |
| 407 | "//starboard/shared/stub/drm_close_session.cc", |
| 408 | "//starboard/shared/stub/drm_create_system.cc", |
| 409 | "//starboard/shared/stub/drm_destroy_system.cc", |
| 410 | "//starboard/shared/stub/drm_generate_session_update_request.cc", |
| 411 | "//starboard/shared/stub/drm_get_metrics.cc", |
| 412 | "//starboard/shared/stub/drm_is_server_certificate_updatable.cc", |
| 413 | "//starboard/shared/stub/drm_update_server_certificate.cc", |
| 414 | "//starboard/shared/stub/drm_update_session.cc", |
| 415 | "//starboard/shared/stub/media_is_supported.cc", |
| 416 | ] |
| 417 | } |
Kaido Kert | 788710a | 2023-06-05 07:50:22 -0700 | [diff] [blame] | 418 | |
| 419 | defines = [] |
| 420 | |
| 421 | if (is_debug || is_devel) { |
| 422 | defines += [ "SB_PLAYER_ENABLE_VIDEO_DUMPER" ] |
| 423 | } |
Kaido Kert | e83fce9 | 2021-05-27 08:48:59 -0700 | [diff] [blame] | 424 | } |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 425 | |
Kaido Kert | b48d5d3 | 2023-06-30 09:59:25 -0700 | [diff] [blame] | 426 | if (current_toolchain == starboard_toolchain) { |
| 427 | target(starboard_level_gtest_target_type, "starboard_platform_tests") { |
| 428 | build_loader = false |
| 429 | testonly = true |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 430 | |
Kaido Kert | b48d5d3 | 2023-06-30 09:59:25 -0700 | [diff] [blame] | 431 | sources = media_tests_sources + player_tests_sources + |
| 432 | [ "//starboard/common/test_main.cc" ] |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 433 | |
Kaido Kert | b48d5d3 | 2023-06-30 09:59:25 -0700 | [diff] [blame] | 434 | configs += [ "//starboard/build/config:starboard_implementation" ] |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 435 | |
Kaido Kert | b48d5d3 | 2023-06-30 09:59:25 -0700 | [diff] [blame] | 436 | deps = [ |
| 437 | "//starboard", |
| 438 | "//starboard/shared/starboard/player/filter/testing:test_util", |
| 439 | "//testing/gmock", |
| 440 | "//testing/gtest", |
| 441 | ] |
| 442 | } |
Kaido Kert | 02dc75a | 2021-09-21 19:30:11 -0700 | [diff] [blame] | 443 | } |