def hook(hook_api): hook_datas = [] lang_list = get_hook_config(hook_api, "gi", "languages") if libdir and gdk_pixbuf_query_loaders is not None: hook_datas += collect_glib_translations('gdk-pixbuf', lang_list) hook_api.add_datas(hook_datas)
def hook(hook_api): hook_datas = [] lang_list = get_hook_config(hook_api, "gi", "languages") for prog in [ 'gst-plugins-bad-1.0', 'gst-plugins-base-1.0', 'gst-plugins-good-1.0', 'gst-plugins-ugly-1.0', 'gstreamer-1.0' ]: hook_datas += collect_glib_translations(prog, lang_list) hook_api.add_datas(hook_datas)
def hook(hook_api): hook_datas = [] icon_list = get_hook_config(hook_api, "gi", "icons") theme_list = get_hook_config(hook_api, "gi", "themes") lang_list = get_hook_config(hook_api, "gi", "languages") if icon_list is not None: for icon in icon_list: hook_datas += collect_glib_share_files(os.path.join("icons", icon)) else: hook_datas += collect_glib_share_files('icons') if theme_list is not None: for theme in theme_list: hook_datas += collect_glib_share_files(os.path.join('themes', theme)) else: hook_datas += collect_glib_share_files('themes') hook_datas += collect_glib_translations('gtk30', lang_list) hook_api.add_datas(hook_datas)
def hook(hook_api): module_versions = get_hook_config(hook_api, 'gi', 'module-versions') if module_versions: version = module_versions.get('GtkSource', '3.0') else: version = '3.0' logger.info(f'GtkSource version is {version}') binaries, datas, hiddenimports = get_gi_typelibs('GtkSource', version) datas += collect_glib_share_files(f'gtksourceview-{version}') hook_api.add_datas(datas) hook_api.add_binaries(binaries) hook_api.add_imports(*hiddenimports)
def hook(hook_api): hook_datas = [] lang_list = get_hook_config(hook_api, "gi", "languages") hook_datas += collect_glib_translations('glib20', lang_list) hook_api.add_datas(hook_datas)