2018-08-15 07:22:09 +00:00
|
|
|
|
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
|
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
2018-08-15 07:22:09 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/src/expat \
|
|
|
|
[depot_user]/src/freetype \
|
|
|
|
[depot_user]/src/init \
|
|
|
|
[depot_user]/src/jpeg \
|
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/libpng \
|
|
|
|
[depot_user]/src/mesa \
|
|
|
|
[depot_user]/src/nitpicker \
|
|
|
|
[depot_user]/src/pcre16 \
|
|
|
|
[depot_user]/src/qt5_core \
|
|
|
|
[depot_user]/src/qt5_gui \
|
|
|
|
[depot_user]/src/qt5_qjpeg \
|
|
|
|
[depot_user]/src/qt5_qpa_nitpicker \
|
|
|
|
[depot_user]/src/report_rom \
|
|
|
|
[depot_user]/src/stdcxx \
|
|
|
|
[depot_user]/src/vfs \
|
|
|
|
[depot_user]/src/zlib \
|
2018-10-02 15:45:22 +00:00
|
|
|
[depot_user]/pkg/themed_wm \
|
2018-08-15 07:22:09 +00:00
|
|
|
[depot_user]/raw/qt5_dejavusans
|
2018-04-24 10:40:22 +00:00
|
|
|
|
2014-05-20 20:52:55 +00:00
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
proc qt5_build_components { feature_arg } {
|
|
|
|
|
|
|
|
upvar $feature_arg feature
|
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
set build_components { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
append build_components [drivers_build_components feature]
|
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
append build_components { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
return $build_components
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configuration
|
|
|
|
#
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
proc qt5_layouter_config { } {
|
|
|
|
return {
|
|
|
|
<config rules="rom">
|
|
|
|
<report rules="yes"/>
|
|
|
|
<rules>
|
|
|
|
<screen name="screen"/>
|
|
|
|
<assign label_prefix="" target="screen" xpos="any" ypos="any"/>
|
|
|
|
</rules>
|
|
|
|
</config>}
|
|
|
|
}
|
|
|
|
|
|
|
|
proc qt5_decorator_binary { } { return "decorator" }
|
|
|
|
|
|
|
|
proc qt5_decorator_config { } {
|
|
|
|
return {
|
|
|
|
<config>
|
|
|
|
<!-- this is an example config for the themed decorator
|
|
|
|
<vfs>
|
|
|
|
<tar name="plain_decorator_theme.tar"/>
|
|
|
|
</vfs>
|
|
|
|
<libc/>
|
|
|
|
-->
|
|
|
|
</config>}
|
|
|
|
}
|
|
|
|
|
2014-05-20 20:52:55 +00:00
|
|
|
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 {
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="nitpicker" caps="200">
|
2017-02-02 17:26:57 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2014-05-20 20:52:55 +00:00
|
|
|
<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 {
|
2017-02-23 16:58:21 +00:00
|
|
|
<service name="Input"> <child name="input_filter"/> </service>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="Report"> <child name="wm_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>
|
2017-11-24 19:23:45 +00:00
|
|
|
<report focus="yes" hover="yes" xray="yes"/>
|
2015-10-28 15:14:12 +00:00
|
|
|
|
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" />
|
|
|
|
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="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"/>
|
2017-11-24 19:23:45 +00:00
|
|
|
<provides> <service name="Report"/> </provides>
|
|
|
|
<config shapes="yes"/>
|
2014-07-03 12:26:29 +00:00
|
|
|
<route>
|
|
|
|
<service name="Nitpicker"> <child name="nitpicker"/> </service>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="hover"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="xray"> <child name="wm_report_rom"/> </service>
|
2014-07-03 12:26:29 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="wm_report_rom">
|
|
|
|
<binary name="report_rom"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Report"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</provides>
|
2018-10-02 15:45:22 +00:00
|
|
|
<config verbose="no">
|
2016-11-02 10:38:20 +00:00
|
|
|
<policy label="layouter -> focus_request" report="wm -> focus_request"/>
|
|
|
|
<policy label="decorator -> pointer" report="wm -> pointer"/>
|
2018-10-02 15:45:22 +00:00
|
|
|
<policy label="layouter -> window_list" report="wm -> window_list"/>
|
2016-11-02 10:38:20 +00:00
|
|
|
<policy label="wm -> focus" report="layouter -> focus"/>
|
2018-10-02 15:45:22 +00:00
|
|
|
<policy label="wm -> resize_request" report="layouter -> resize_request"/>
|
|
|
|
<policy label="decorator -> window_layout" report="layouter -> window_layout"/>
|
|
|
|
<policy label="layouter -> rules" report="layout_rules"/>
|
2016-11-02 10:38:20 +00:00
|
|
|
<policy label="layouter -> decorator_margins" report="decorator -> decorator_margins"/>
|
2018-10-02 15:45:22 +00:00
|
|
|
<policy label="layouter -> hover" report="decorator -> hover"/>
|
|
|
|
<policy label="clipboard -> focus" report="nitpicker -> focus"/>
|
2017-11-24 19:23:45 +00:00
|
|
|
<policy label="pointer -> hover" report="nitpicker -> hover"/>
|
|
|
|
<policy label="pointer -> xray" report="nitpicker -> xray"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="wm" caps="250">
|
|
|
|
<resource name="RAM" quantum="8M"/>
|
2015-09-17 10:50:42 +00:00
|
|
|
<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-09-17 10:50:42 +00:00
|
|
|
</config>
|
2014-05-20 20:52:57 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="focus"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="resize_request"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="nitpicker"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="layouter">
|
2018-09-26 09:36:36 +00:00
|
|
|
<binary name="window_layouter"/>
|
2018-10-02 15:45:22 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>} [qt5_layouter_config] {
|
2015-09-17 10:50:42 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="window_list"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="focus_request"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="hover"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="decorator_margins"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="rules"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Report" label="rules"> <child name="wm_report_rom" label="layout_rules"/> </service>
|
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-10-02 15:45:22 +00:00
|
|
|
<start name="decorator" caps="300">
|
|
|
|
<binary name="} [qt5_decorator_binary] {"/>
|
|
|
|
<resource name="RAM" quantum="16M"/>} [qt5_decorator_config] {
|
2015-09-17 10:50:42 +00:00
|
|
|
<route>
|
2018-10-02 15:45:22 +00:00
|
|
|
<service name="ROM" label="window_layout"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="ROM" label="pointer"> <child name="wm_report_rom"/> </service>
|
|
|
|
<service name="Report"> <child name="wm_report_rom"/> </service>
|
2015-09-17 10:50:42 +00:00
|
|
|
<any-service>
|
2017-02-02 17:26:57 +00:00
|
|
|
<child name="wm"/> <parent/> <any-child/>
|
2015-09-17 10:50:42 +00:00
|
|
|
</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
|
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
set boot_modules { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
append boot_modules [drivers_boot_modules feature]
|
|
|
|
|
2018-04-24 10:40:22 +00:00
|
|
|
append boot_modules { }
|
2014-05-20 20:52:55 +00:00
|
|
|
|
|
|
|
return $boot_modules
|
|
|
|
}
|