foreach plugin : ['rkximage', 'rockchipmpp', 'kmssrc'] if not get_option(plugin).disabled() subdir(plugin) endif endforeach