genode/repos/libports/run/qt5_avplay.run

97 lines
2.1 KiB
Plaintext
Raw Normal View History

source ${genode_dir}/repos/libports/run/qt5_common.inc
2018-08-15 07:22:09 +00:00
import_from_depot [depot_user]/raw/qt5_avplay \
[depot_user]/src/avplay \
[depot_user]/src/libav \
[depot_user]/src/qt5_avplay \
[depot_user]/src/qt5_qnitpickerviewwidget \
[depot_user]/src/qt5_widgets \
[depot_user]/src/qt5_xml \
[depot_user]/src/sdl
2018-04-24 10:40:22 +00:00
set feature(Audio_out) 1
2013-08-09 13:04:52 +00:00
#
# Build
#
2015-09-17 10:50:42 +00:00
append build_components [qt5_build_components feature]
build $build_components
2013-08-09 13:04:52 +00:00
#
# Download media file
#
set media_url "ftp://ftp.untergrund.net/users/ae/dhstv/escape-chotro.mp4"
if {![file exists bin/mediafile]} {
puts "downloading media file from $media_url"
catch { exec wget -O bin/mediafile $media_url }
}
#
# Generate config
#
2015-09-17 10:50:42 +00:00
append config {
2013-08-09 13:04:52 +00:00
<config>
<parent-provides>}
append config [qt5_parent_provides feature]
append config {
2013-08-09 13:04:52 +00:00
</parent-provides>
<default caps="100"/>
2013-08-09 13:04:52 +00:00
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>}
append config [qt5_start_nodes feature]
2013-08-09 13:04:52 +00:00
append config {
<start name="qt_avplay" caps="400">
2013-08-09 13:04:52 +00:00
<resource name="RAM" quantum="2G"/>
<config>
<vfs>
2018-04-24 10:40:22 +00:00
<dir name="dev">
<log/>
<inline name="rtc">2018-01-01 00:01</inline>
</dir>
<tar name="qt5_dejavusans.tar"/>
<rom name="player_play.png"/>
<rom name="player_pause.png"/>
<rom name="player_stop.png"/>
<rom name="volume.png"/>
</vfs>
2018-04-24 10:40:22 +00:00
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
2013-08-09 13:04:52 +00:00
<mediafile name="mediafile"/>
</config>
<route>
<service name="Nitpicker"> <child name="wm"/> </service>
2017-11-24 19:23:45 +00:00
<service name="Report" label="shape">
<child name="pointer" label="wm -> qt_avplay -> shape"/>
</service>
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
<any-service> <parent /> <any-child/> </any-service>
</route>
2013-08-09 13:04:52 +00:00
</start>
</config>
}
install_config $config
#
# Boot modules
#
2015-09-17 10:50:42 +00:00
append boot_modules [qt5_boot_modules feature]
append boot_modules {
2013-08-09 13:04:52 +00:00
mediafile
}
build_boot_image $boot_modules
append qemu_args " -m 768 -soundhw es1370"
2013-08-09 13:04:52 +00:00
run_genode_until forever