blob: 065f2c4c154c62e9b75085dcaf0c0663b328cbe3 [file] [log] [blame]
Kaido Kerte83fce92021-05-27 08:48:59 -07001# 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 Kert0c2b1d42023-04-10 16:27:03 -070015import("//starboard/shared/enhanced_audio/enhanced_audio.gni")
Kaido Kert02dc75a2021-09-21 19:30:11 -070016import("//starboard/shared/starboard/media/media_tests.gni")
Kaido Kert6f3fc442021-06-25 11:58:59 -070017import("//starboard/shared/starboard/player/buildfiles.gni")
Kaido Kert3cd54322021-11-02 18:58:17 -070018import("//starboard/shared/starboard/player/player_tests.gni")
Kaido Kert6f3fc442021-06-25 11:58:59 -070019
Kaido Kerte83fce92021-05-27 08:48:59 -070020group("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 Kerte83fce92021-05-27 08:48:59 -070027 ]
28
29 deps = [
30 "//third_party/libevent",
Kaido Kert52711092023-02-14 18:06:26 -080031 "//third_party/modp_b64",
Kaido Kerte83fce92021-05-27 08:48:59 -070032 "//third_party/opus",
33 ]
34
35 if (sb_is_evergreen_compatible) {
Kaido Kert0c2b1d42023-04-10 16:27:03 -070036 public_deps += [
37 "//starboard/elf_loader:constants",
38 "//starboard/elf_loader:evergreen_config",
39 "//starboard/loader_app:pending_restart",
40 ]
Kaido Kerte83fce92021-05-27 08:48:59 -070041 }
42
43 if (sb_evergreen_compatible_use_libunwind) {
44 deps += [ "//third_party/llvm-project/libunwind:unwind_starboard" ]
45 }
46}
47
48static_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
56static_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 Kert3da06c62021-07-23 11:22:43 -070071 "//starboard/linux/shared/netlink.cc",
72 "//starboard/linux/shared/netlink.h",
Kaido Kerte83fce92021-05-27 08:48:59 -070073 "//starboard/linux/shared/player_components_factory.cc",
Kaido Kert3da06c62021-07-23 11:22:43 -070074 "//starboard/linux/shared/routes.cc",
75 "//starboard/linux/shared/routes.h",
Kaido Kert08336fa2022-02-08 14:10:50 -080076 "//starboard/linux/shared/soft_mic_platform_service.cc",
77 "//starboard/linux/shared/soft_mic_platform_service.h",
Kaido Kerte83fce92021-05-27 08:48:59 -070078 "//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 Kert52711092023-02-14 18:06:26 -080088 "//starboard/shared/deviceauth/deviceauth_internal.h",
Kaido Kerte83fce92021-05-27 08:48:59 -070089 "//starboard/shared/egl/system_egl.cc",
90 "//starboard/shared/gcc/atomic_gcc_public.h",
91 "//starboard/shared/gles/system_gles2.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070092 "//starboard/shared/iso/directory_close.cc",
93 "//starboard/shared/iso/directory_get_next.cc",
94 "//starboard/shared/iso/directory_open.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070095 "//starboard/shared/iso/memory_allocate_unchecked.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070096 "//starboard/shared/iso/memory_free.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070097 "//starboard/shared/iso/memory_reallocate_unchecked.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070098 "//starboard/shared/iso/string_scan.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -070099 "//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 Kert52711092023-02-14 18:06:26 -0800113 "//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 Kerte83fce92021-05-27 08:48:59 -0700117 "//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 Kerte83fce92021-05-27 08:48:59 -0700125 "//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 Kert5864f472022-11-18 11:03:09 -0800140 "//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 Kerte83fce92021-05-27 08:48:59 -0700144 "//starboard/shared/opus/opus_audio_decoder.cc",
145 "//starboard/shared/opus/opus_audio_decoder.h",
146 "//starboard/shared/posix/directory_create.cc",
Kaido Kertda45c042022-05-09 11:08:54 -0700147 "//starboard/shared/posix/environment.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700148 "//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 Kert08336fa2022-02-08 14:10:50 -0800161 "//starboard/shared/posix/free_space.cc",
162 "//starboard/shared/posix/free_space.h",
Kaido Kerte83fce92021-05-27 08:48:59 -0700163 "//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 Kertda45c042022-05-09 11:08:54 -0700171 "//starboard/shared/posix/memory_map.cc",
Kaido Kertc52866b2021-10-12 14:21:43 -0700172 "//starboard/shared/posix/memory_mapped_file.cc",
173 "//starboard/shared/posix/memory_mapped_file.h",
Kaido Kertda45c042022-05-09 11:08:54 -0700174 "//starboard/shared/posix/memory_protect.cc",
175 "//starboard/shared/posix/memory_unmap.cc",
176 "//starboard/shared/posix/page_internal.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700177 "//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 Kerte83fce92021-05-27 08:48:59 -0700206 "//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 Kert08336fa2022-02-08 14:10:50 -0800260 "//starboard/shared/signal/debug_signals.cc",
261 "//starboard/shared/signal/debug_signals.h",
Kaido Kerte83fce92021-05-27 08:48:59 -0700262 "//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 Kerte83fce92021-05-27 08:48:59 -0700266 "//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 Kert788710a2023-06-05 07:50:22 -0700300 "//starboard/shared/starboard/media/media_get_audio_configuration.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700301 "//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 Kerte83fce92021-05-27 08:48:59 -0700313 "//starboard/shared/starboard/memory.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700314 "//starboard/shared/starboard/queue_application.cc",
Kaido Kertda45c042022-05-09 11:08:54 -0700315 "//starboard/shared/starboard/starboard_switches.cc",
316 "//starboard/shared/starboard/starboard_switches.h",
Kaido Kerte83fce92021-05-27 08:48:59 -0700317 "//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 Kerte83fce92021-05-27 08:48:59 -0700321 "//starboard/shared/starboard/system_request_reveal.cc",
322 "//starboard/shared/starboard/system_request_stop.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700323 "//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 Kerte83fce92021-05-27 08:48:59 -0700329 "//starboard/shared/stub/media_set_audio_write_duration.cc",
Kaido Kerte83fce92021-05-27 08:48:59 -0700330 "//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 Kerte83fce92021-05-27 08:48:59 -0700343 "//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 Kert6f3fc442021-06-25 11:58:59 -0700359
360 sources += common_player_sources
361
Kaido Kertc52866b2021-10-12 14:21:43 -0700362 sources -= [ "//starboard/shared/starboard/player/player_set_bounds.cc" ]
363
Kaido Kert0c2b1d42023-04-10 16:27:03 -0700364 if (sb_api_version < 15) {
365 sources -= [ "//starboard/shared/starboard/player/player_write_samples.cc" ]
366 sources += enhanced_audio_sources
367 }
368
Kaido Kert3da06c62021-07-23 11:22:43 -0700369 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 Kert788710a2023-06-05 07:50:22 -0700383 "//internal/starboard/linux/shared/internal/oemcrypto_engine_device_properties_linux.cc",
Kaido Kert3da06c62021-07-23 11:22:43 -0700384 "//starboard/linux/shared/drm_create_system.cc",
Kaido Kert3da06c62021-07-23 11:22:43 -0700385 "//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 Kert788710a2023-06-05 07:50:22 -0700403 "//third_party/internal/ce_cdm/cdm:widevine_ce_cdm_static",
Kaido Kert3da06c62021-07-23 11:22:43 -0700404 ]
Kaido Kerte83fce92021-05-27 08:48:59 -0700405 } 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 Kert788710a2023-06-05 07:50:22 -0700418
419 defines = []
420
421 if (is_debug || is_devel) {
422 defines += [ "SB_PLAYER_ENABLE_VIDEO_DUMPER" ]
423 }
Kaido Kerte83fce92021-05-27 08:48:59 -0700424}
Kaido Kert02dc75a2021-09-21 19:30:11 -0700425
Kaido Kertb48d5d32023-06-30 09:59:25 -0700426if (current_toolchain == starboard_toolchain) {
427 target(starboard_level_gtest_target_type, "starboard_platform_tests") {
428 build_loader = false
429 testonly = true
Kaido Kert02dc75a2021-09-21 19:30:11 -0700430
Kaido Kertb48d5d32023-06-30 09:59:25 -0700431 sources = media_tests_sources + player_tests_sources +
432 [ "//starboard/common/test_main.cc" ]
Kaido Kert02dc75a2021-09-21 19:30:11 -0700433
Kaido Kertb48d5d32023-06-30 09:59:25 -0700434 configs += [ "//starboard/build/config:starboard_implementation" ]
Kaido Kert02dc75a2021-09-21 19:30:11 -0700435
Kaido Kertb48d5d32023-06-30 09:59:25 -0700436 deps = [
437 "//starboard",
438 "//starboard/shared/starboard/player/filter/testing:test_util",
439 "//testing/gmock",
440 "//testing/gtest",
441 ]
442 }
Kaido Kert02dc75a2021-09-21 19:30:11 -0700443}