build {
lib/libc lib/vfs lib/openjpeg lib/freetype lib/libpng lib/zlib lib/jbig2dec
lib/mupdf lib/jpeg app/pdf_view
}
create_boot_directory
import_from_depot \
[depot_user]/pkg/[drivers_interactive_pkg] \
[depot_user]/pkg/motif_wm \
[depot_user]/src/[base_src] \
[depot_user]/src/init \
[depot_user]/src/nitpicker \
install_config {
}
#
# Download test PDF file
#
if {![file exist bin/test.pdf]} {
set pdf_url "http://genode-labs.com/publications/genode-fpga-graphics-2009.pdf"
catch { exec wget $pdf_url -O bin/test.pdf }
}
if {![file exist bin/test.pdf]} {
puts stderr "Could not download test PDF from '$pdf_url'"
exit 1
}
#
# Pin the nitpicker focus to the window manager by providing a static focus ROM
#
set fd [open [run_dir]/genode/focus w]
puts $fd " focus\"/>"
close $fd
build_boot_image [list {*}[build_artifacts] test.pdf]
append qemu_args " -m 800"
run_genode_until forever