Commit a642fd97 authored by Bastien Nocera's avatar Bastien Nocera

thumbnailer: Split off gallery creation to a separate binary

parent 62e3a8ca
......@@ -226,6 +226,34 @@ executable(
install_dir: totem_bindir
)
totem_gallery_thumbnailer_sources = files(
'totem-resources.c',
'totem-gallery-thumbnailer.c'
)
totem_gallery_thumbnailer_deps = [
dependency('gdk-3.0'),
totem_plparser_dep,
gst_tag_dep,
gst_video_dep,
m_dep,
libtotem_gst_helpers_dep,
libtotem_gst_pixbuf_helpers_dep,
libtotem_time_helpers_dep
]
executable(
'totem-gallery-thumbnailer',
totem_gallery_thumbnailer_sources,
include_directories: top_inc,
dependencies: totem_gallery_thumbnailer_deps,
c_args: totem_common_cflags + [
'-DG_LOG_DOMAIN="TotemGalleryThumbnailer"'
],
install: true,
install_dir: totem_libexecdir
)
if have_nautilus
libtotem_properties_page_sources = files(
'totem-properties-main.c',
......
......@@ -27,7 +27,7 @@ shared_module(
sources: plugin_files,
include_directories: plugins_incs,
dependencies: plugins_deps,
c_args: plugin_cflags,
c_args: plugin_cflags + ['-DLIBEXECDIR="@0@"'.format(totem_libexecdir)],
install: true,
install_dir: plugin_dir
)
......
......@@ -170,7 +170,7 @@ dialog_response_callback (GtkDialog *dialog, gint response_id, TotemGallery *sel
totem_screenshot_plugin_update_file_chooser (gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (self)));
/* Build the command and arguments to pass it */
argv[0] = (gchar*) "totem-video-thumbnailer"; /* a little hacky, but only the allocated stuff is freed below */
argv[0] = (gchar*) LIBEXECDIR "/totem-gallery-thumbnailer"; /* a little hacky, but only the allocated stuff is freed below */
argv[1] = (gchar*) "-j"; /* JPEG mode */
argv[2] = (gchar*) "-l"; /* don't limit resources */
argv[3] = (gchar*) "-p"; /* print progress */
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment