2014-05-20 20:52:55 +00:00
|
|
|
source ${genode_dir}/repos/libports/run/qt5_drivers.inc
|
|
|
|
|
|
|
|
set feature(Input) 1
|
|
|
|
set feature(Framebuffer) 1
|
|
|
|
set feature(Timer) 1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
proc qt5_build_components { feature_arg } {
|
|
|
|
|
|
|
|
upvar $feature_arg feature
|
|
|
|
|
|
|
|
set build_components {
|
|
|
|
core
|
|
|
|
init
|
|
|
|
}
|
|
|
|
|
|
|
|
append build_components [drivers_build_components feature]
|
|
|
|
|
|
|
|
append build_components {
|
|
|
|
server/nitpicker
|
2014-05-20 20:52:57 +00:00
|
|
|
server/report_rom
|
|
|
|
app/floating_window_layouter
|
|
|
|
app/decorator
|
2014-07-03 12:26:29 +00:00
|
|
|
app/pointer
|
2014-05-20 20:52:57 +00:00
|
|
|
server/wm
|
2014-05-20 20:52:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return $build_components
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configuration
|
|
|
|
#
|
|
|
|
|
|
|
|
proc qt5_parent_provides { feature_arg } {
|
|
|
|
|
|
|
|
upvar $feature_arg feature
|
|
|
|
|
|
|
|
set parent_provides [drivers_parent_provides feature]
|
|
|
|
|
|
|
|
return $parent_provides
|
|
|
|
}
|
|
|
|
|
|
|
|
proc qt5_start_nodes { feature_arg } {
|
|
|
|
|
|
|
|
upvar $feature_arg feature
|
|
|
|
|
|
|
|
set start_nodes [drivers_start_nodes feature]
|
|
|
|
|
|
|
|
append start_nodes {
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Nitpicker"/></provides>
|
2014-12-04 15:41:12 +00:00
|
|
|
<route> }
|
|
|
|
append_if [use_fb_sdl feature] start_nodes {
|
|
|
|
<service name="Framebuffer"> <child name="fb_sdl" /> </service>
|
|
|
|
}
|
|
|
|
append_if [use_fb_drv feature] start_nodes {
|
|
|
|
<service name="Framebuffer"> <child name="fb_drv" /> </service>
|
|
|
|
}
|
|
|
|
append start_nodes {
|
2016-08-03 14:47:20 +00:00
|
|
|
<service name="Input"> <child name="input_merger"/> </service>
|
2015-10-28 15:14:12 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2014-12-04 15:41:12 +00:00
|
|
|
<any-service> <parent /> <any-child /> </any-service>
|
|
|
|
</route>
|
2014-05-20 20:52:57 +00:00
|
|
|
<config>
|
2015-10-28 15:14:12 +00:00
|
|
|
<report focus="yes"/>
|
|
|
|
|
2015-09-30 09:30:02 +00:00
|
|
|
<domain name="pointer" layer="1" label="no" content="client" origin="pointer" />
|
|
|
|
<domain name="default" layer="2" label="no" content="client" focus="click" hover="always" />
|
|
|
|
|
|
|
|
<policy label="pointer" domain="pointer"/>
|
2016-03-09 14:32:23 +00:00
|
|
|
<default-policy domain="default"/>
|
2014-05-20 20:52:57 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2014-07-03 12:26:29 +00:00
|
|
|
|
|
|
|
<start name="pointer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2015-09-17 10:50:42 +00:00
|
|
|
<start name="report_rom">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Report"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</provides>
|
|
|
|
<config>
|
|
|
|
<rom>
|
2016-02-01 11:39:33 +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="clipboard -> focus" report="nitpicker -> focus"/>
|
|
|
|
<policy label="layouter -> decorator_margins" report="decorator -> decorator_margins"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</rom>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2014-05-20 20:52:57 +00:00
|
|
|
<start name="wm">
|
2015-10-29 17:57:43 +00:00
|
|
|
<resource name="RAM" quantum="12M"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<provides>
|
|
|
|
<service name="Nitpicker"/>
|
|
|
|
</provides>
|
|
|
|
<config>
|
|
|
|
<policy label="decorator" role="decorator"/>
|
|
|
|
<policy label="layouter" role="layouter"/>
|
|
|
|
</config>
|
2014-05-20 20:52:57 +00:00
|
|
|
<route>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
|
|
|
<child name="nitpicker"/> <child name="report_rom"/> <parent/> <any-child/>
|
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="layouter">
|
|
|
|
<binary name="floating_window_layouter"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<route>
|
|
|
|
<any-service>
|
|
|
|
<child name="wm"/> <child name="report_rom"/> <parent/> <any-child/>
|
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="decorator">
|
|
|
|
<binary name="decorator"/>
|
2015-10-29 17:57:43 +00:00
|
|
|
<resource name="RAM" quantum="12M"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<route>
|
|
|
|
<any-service>
|
|
|
|
<child name="wm"/> <child name="report_rom"/> <parent/> <any-child/>
|
|
|
|
</any-service>
|
2014-05-20 20:52:57 +00:00
|
|
|
</route>
|
2014-05-20 20:52:55 +00:00
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
|
|
|
return $start_nodes
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
proc qt5_boot_modules { feature_arg } {
|
|
|
|
|
|
|
|
upvar $feature_arg feature
|
|
|
|
|
|
|
|
set boot_modules {
|
|
|
|
core
|
|
|
|
init
|
|
|
|
}
|
|
|
|
|
|
|
|
append boot_modules [drivers_boot_modules feature]
|
|
|
|
|
|
|
|
append boot_modules {
|
|
|
|
nitpicker
|
2014-05-20 20:52:57 +00:00
|
|
|
report_rom
|
|
|
|
floating_window_layouter
|
|
|
|
decorator
|
|
|
|
wm
|
2014-07-03 12:26:29 +00:00
|
|
|
pointer
|
2014-05-20 20:52:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return $boot_modules
|
|
|
|
}
|
|
|
|
|
2014-08-12 16:08:06 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# tar archive
|
|
|
|
#
|
|
|
|
|
|
|
|
proc create_qt5_fs_tar_archive { app_name qt_modules } {
|
|
|
|
|
|
|
|
exec rm -rf bin/qt5_fs/${app_name}/qt
|
|
|
|
|
|
|
|
if { [lsearch ${qt_modules} "gui"] != -1 } {
|
|
|
|
# add fonts
|
|
|
|
exec mkdir -p bin/qt5_fs/${app_name}/qt/lib
|
|
|
|
exec ln -sf [pwd]/bin/qt5_fs/qt/lib/fonts bin/qt5_fs/${app_name}/qt/lib/fonts
|
|
|
|
}
|
|
|
|
|
|
|
|
if { [lsearch ${qt_modules} "quick"] != -1 } {
|
|
|
|
# add QtQuick plugins
|
|
|
|
exec mkdir -p bin/qt5_fs/${app_name}/qt
|
|
|
|
exec ln -sf [pwd]/bin/qt5_fs/qt/qml bin/qt5_fs/${app_name}/qt/qml
|
|
|
|
}
|
|
|
|
|
|
|
|
exec tar chf bin/qt5_fs_${app_name}.tar -C bin/qt5_fs/${app_name} .
|
|
|
|
}
|