2015-10-19 12:04:11 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
if {![have_spec linux]} {
|
|
|
|
puts "This run script requires linux!"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core init
|
|
|
|
drivers/timer
|
|
|
|
server/ram_fs
|
|
|
|
drivers/framebuffer
|
|
|
|
server/dynamic_rom
|
|
|
|
server/report_rom
|
|
|
|
server/nitpicker
|
|
|
|
server/fs_rom
|
|
|
|
server/wm
|
2017-08-17 11:29:32 +00:00
|
|
|
lib/mesa/swrast
|
2015-10-19 12:04:11 +00:00
|
|
|
app/pointer
|
|
|
|
app/floating_window_layouter
|
|
|
|
app/decorator
|
|
|
|
app/mixer_gui_qt
|
|
|
|
}
|
|
|
|
|
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
append_platform_drv_build_components
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
|
|
|
set config {
|
|
|
|
<config verbose="yes">
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append_platform_drv_config
|
|
|
|
|
|
|
|
append_if [have_spec sdl] config {
|
|
|
|
<start name="fb_sdl">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Input"/>
|
|
|
|
<service name="Framebuffer"/>
|
|
|
|
</provides>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<start name="report_rom">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="Report"/>
|
|
|
|
</provides>
|
|
|
|
<config>
|
2016-11-02 10:38:20 +00:00
|
|
|
<policy label="layouter -> window_list" report="wm -> window_list"/>
|
|
|
|
<policy label="layouter -> focus_request" report="wm -> focus_request"/>
|
|
|
|
<policy label="decorator -> window_layout" report="layouter -> window_layout"/>
|
|
|
|
<policy label="wm -> resize_request" report="layouter -> resize_request"/>
|
|
|
|
<policy label="decorator -> pointer" report="wm -> pointer"/>
|
|
|
|
<policy label="layouter -> hover" report="decorator -> hover"/>
|
|
|
|
<policy label="wm -> focus" report="layouter -> focus"/>
|
|
|
|
<policy label="layouter -> decorator_margins" report="decorator -> decorator_margins"/>
|
|
|
|
<policy label="mixer_gui_qt -> channel_list" report="mixer -> channel_list"/>
|
|
|
|
<policy label="mixer -> channel_list" report="mixer_gui_qt -> channel_list"/>
|
2017-11-24 19:23:45 +00:00
|
|
|
<policy label="pointer -> hover" report="nitpicker -> hover"/>
|
|
|
|
<policy label="pointer -> xray" report="nitpicker -> xray"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
|
|
|
<config>
|
2017-11-24 19:23:45 +00:00
|
|
|
<report focus="yes" hover="yes" xray="yes" />
|
2015-11-18 11:17:32 +00:00
|
|
|
<domain name="pointer" layer="1" content="client" label="no" origin="pointer" />
|
|
|
|
<domain name="default" layer="2" content="client" label="no" hover="always" focus="click"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="pointer" domain="pointer"/>
|
|
|
|
<default-policy domain="default"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
|
|
|
|
<background color="#000000" />
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2017-11-24 19:23:45 +00:00
|
|
|
<provides> <service name="Report"/> </provides>
|
|
|
|
<config shapes="yes"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
2017-11-24 19:23:45 +00:00
|
|
|
<service name="ROM" label="hover"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="xray"> <child name="report_rom"/> </service>
|
2015-10-19 12:04:11 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="wm" caps="150">
|
2015-10-19 12:04:11 +00:00
|
|
|
<resource name="RAM" quantum="16M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
|
|
|
<config>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="decorator" role="decorator"/>
|
|
|
|
<policy label_prefix="layouter" role="layouter"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
2017-05-11 16:46:43 +00:00
|
|
|
<service name="ROM" label="focus"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="resize_request"> <child name="report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2015-10-19 12:04:11 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="layouter">
|
|
|
|
<binary name="floating_window_layouter"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<route>
|
2017-05-11 16:46:43 +00:00
|
|
|
<service name="ROM" label="window_list"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="focus_request"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="hover"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="decorator_margins"> <child name="report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2015-10-19 12:04:11 +00:00
|
|
|
<any-service>
|
2017-05-11 16:46:43 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-10-19 12:04:11 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="decorator">
|
|
|
|
<binary name="decorator"/>
|
|
|
|
<resource name="RAM" quantum="8M"/>
|
|
|
|
<route>
|
2017-05-11 16:46:43 +00:00
|
|
|
<service name="ROM" label="window_layout"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM" label="pointer"> <child name="report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2015-10-19 12:04:11 +00:00
|
|
|
<any-service>
|
2017-05-11 16:46:43 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-10-19 12:04:11 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
|
|
|
append config {
|
|
|
|
<start name="dynamic_rom">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="ROM"/></provides>
|
|
|
|
<config verbose="yes">
|
|
|
|
<rom name="channel_list">
|
|
|
|
<sleep milliseconds="1000" />
|
|
|
|
<inline description="first config update">
|
|
|
|
<channel_list>
|
|
|
|
<channel type="input" label="test-audio_out0" name="right" number="1" active="1" volume="0" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out_click" name="left" number="0" active="1" volume="75" muted="0"/>
|
|
|
|
<channel type="input" label="fancy_init -> test-audio_out1" name="left" number="0" active="1" volume="75" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out0" name="left" number="0" active="1" volume="0" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out_click" name="right" number="1" active="1" volume="75" muted="0"/>
|
|
|
|
<channel type="input" label="fancy_init -> test-audio_out1" name="right" number="1" active="1" volume="75" muted="0"/>
|
|
|
|
<channel type="output" label="master" name="left" number="0" active="1" volume="100" muted="0"/>
|
|
|
|
<channel type="output" label="master" name="right" number="1" active="1" volume="100" muted="0"/>
|
|
|
|
</channel_list>
|
|
|
|
</inline>
|
|
|
|
<sleep milliseconds="1000" />
|
|
|
|
<inline description="second config update">
|
|
|
|
<channel_list>
|
|
|
|
<channel type="input" label="test-audio_out0" name="right" number="1" active="1" volume="100" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out_click" name="left" number="0" active="1" volume="75" muted="1"/>
|
|
|
|
<channel type="input" label="fancy_init -> test-audio_out1" name="left" number="0" active="1" volume="25" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out0" name="left" number="0" active="1" volume="100" muted="0"/>
|
|
|
|
<channel type="input" label="test-audio_out_click" name="right" number="1" active="1" volume="15" muted="1"/>
|
|
|
|
<channel type="input" label="fancy_init -> test-audio_out1" name="right" number="1" active="1" volume="25" muted="0"/>
|
|
|
|
<channel type="output" label="master" name="left" number="0" active="1" volume="100" muted="0"/>
|
|
|
|
<channel type="output" label="master" name="right" number="1" active="1" volume="100" muted="0"/>
|
|
|
|
</channel_list>
|
|
|
|
</inline>
|
|
|
|
</rom>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="mixer_gui_qt" caps="200">
|
2015-10-19 12:04:11 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>
|
|
|
|
<config ld_verbose="yes">
|
2017-05-23 12:39:08 +00:00
|
|
|
<vfs>
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
<tar name="qt5_fs_mixer_gui_qt.tar"/>
|
|
|
|
<!--<dir name="config"> <fs label="config"/> </dir>-->
|
|
|
|
</vfs>
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
2015-10-19 12:04:11 +00:00
|
|
|
</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 -> mixer_gui_qt -> shape"/>
|
|
|
|
</service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM" label="channel_list"> <child name="dynamic_rom" /> </service>
|
2017-08-17 11:29:32 +00:00
|
|
|
<service name="ROM" label="egl_drv.lib.so"> <parent label="egl_swrast.lib.so" /> </service>
|
2015-10-19 12:04:11 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append config {
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Prepare resources needed by the application
|
|
|
|
#
|
|
|
|
|
|
|
|
# get fonts
|
|
|
|
exec rm -rf bin/qt5_fs/mixer_gui_qt/qt
|
|
|
|
exec mkdir -p bin/qt5_fs/mixer_gui_qt/qt/lib
|
|
|
|
exec ln -sf [pwd]/bin/qt5_fs/qt/lib/fonts bin/qt5_fs/mixer_gui_qt/qt/lib/fonts
|
|
|
|
|
|
|
|
# create tar archive containg Qt5 resources
|
|
|
|
exec tar chf bin/qt5_fs_mixer_gui_qt.tar -C bin/qt5_fs/mixer_gui_qt .
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
set boot_modules {
|
2016-12-01 18:00:11 +00:00
|
|
|
core ld.lib.so init timer
|
2017-05-23 12:39:08 +00:00
|
|
|
libc.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
|
|
|
|
report_rom dynamic_rom ram_fs
|
|
|
|
fs_rom
|
|
|
|
|
2017-05-23 12:39:08 +00:00
|
|
|
qt5_component.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
qt5_gui.lib.so
|
|
|
|
qt5_widgets.lib.so
|
|
|
|
qt5_xml.lib.so
|
|
|
|
qt5_core.lib.so
|
2017-08-17 11:29:32 +00:00
|
|
|
egl.lib.so
|
|
|
|
egl_swrast.lib.so
|
|
|
|
expat.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
freetype.lib.so
|
2017-08-17 11:29:32 +00:00
|
|
|
glapi.lib.so
|
2016-03-06 14:21:23 +00:00
|
|
|
libc_pipe.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
libm.lib.so
|
|
|
|
libpng.lib.so
|
|
|
|
jpeg.lib.so
|
2017-08-17 11:29:32 +00:00
|
|
|
mesa.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
zlib.lib.so
|
|
|
|
stdcxx.lib.so
|
|
|
|
pthread.lib.so
|
2017-05-22 12:50:09 +00:00
|
|
|
pcre16.lib.so
|
2015-10-19 12:04:11 +00:00
|
|
|
mixer_gui_qt
|
|
|
|
qt5_fs_mixer_gui_qt.tar
|
|
|
|
nitpicker
|
|
|
|
wm
|
|
|
|
pointer
|
|
|
|
floating_window_layouter
|
|
|
|
decorator
|
|
|
|
}
|
|
|
|
|
|
|
|
append_platform_drv_boot_modules
|
|
|
|
|
|
|
|
lappend_if [have_spec linux] boot_modules fb_sdl
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
run_genode_until forever
|
|
|
|
|
|
|
|
# vi: set ft=tcl :
|