plugin_name = 'screenshot' plugin_sources = [ 'screenshot-freedesktop.c', 'screenshot-osx.c', 'screenshot-win32.c', 'screenshot-x11.c', 'screenshot.c', ] screenshot_icons_images = [ 'screenshot-icon.png', ] resourcename = 'screenshot-icons' xml_content = '\n' xml_content += '\n' xml_content += ' \n' foreach file : screenshot_icons_images xml_content+=' '+ file +'\n' endforeach xml_content += ' \n' xml_content += '\n' xml_file = configure_file( output: resourcename + '.gresource.xml', command: [ 'echo', xml_content ], capture: true, ) plugin_sources += gnome.compile_resources( resourcename, xml_file, c_name: resourcename.underscorify(), ) if platform_windows plugin_sources += windows.compile_resources('screenshot-win32.rc') endif screenshot = executable('screenshot', plugin_sources, dependencies: [ libpikaui_dep, x11, xmu, xext, xfixes, ], install: true, install_dir: pikaplugindir / 'plug-ins' / plugin_name, )