Add movie poster factory
[cinaest] / Makefile.am
index b688508..59b6ec1 100644 (file)
@@ -10,14 +10,17 @@ bin_PROGRAMS = \
         cinaest
 
 libexec_PROGRAMS = \
+       google-poster-downloader \
        imdb-plaintext-downloader
 
 pkglib_LTLIBRARIES = \
+       libgoogle-plugin.la \
        libimdb-plugin.la
 
 dbusservice_DATA = \
        data/org.maemo.cinaest.service \
-       data/org.maemo.cinaest.IMDb.service
+       data/org.maemo.cinaest.IMDb.service \
+       data/org.maemo.movieposter.GoogleImages.service
 
 desktopentry_DATA = \
        data/cinaest.desktop
@@ -25,6 +28,7 @@ desktopentry_DATA = \
 # Sources
 cinaest_SOURCES = \
         src/main.c \
+       src/cell-renderer-vbox.c \
        src/genres.c \
         src/movie.c \
        src/movie-filter.c \
@@ -34,11 +38,13 @@ cinaest_SOURCES = \
         src/movie-list-window.c \
         src/plugin-interface.c \
        src/plugin-registrar.c \
+       src/poster/movie-poster-factory.c \
        src/settings-dialog.c \
        src/source-dialog.c
 
 cinaest_VALASOURCES = \
         src/main.vala \
+       src/cell-renderer-vbox.vala \
        src/genres.vala \
         src/movie.vala \
        src/movie-filter.vala \
@@ -48,16 +54,42 @@ cinaest_VALASOURCES = \
         src/movie-list-window.vala \
         src/plugin-interface.vala \
        src/plugin-registrar.vala \
+       src/poster/movie-poster-factory.vala \
        src/settings-dialog.vala \
        src/source-dialog.vala
 
 ${cinaest_SOURCES}: ${cinaest_VALASOURCES}
        ${VALAC} -C ${cinaest_VALASOURCES} ${cinaest_VALAFLAGS}
 
-cinaest_VALAFLAGS = --thread --vapidir ./vapi --pkg config --pkg hildon-1 --pkg libosso --pkg gmodule-2.0
-cinaest_CFLAGS = ${HILDON_CFLAGS} ${OSSO_CFLAGS} ${GMODULE_CFLAGS} \
+cinaest_VALAFLAGS = --vapidir ./vapi --pkg config \
+       --pkg dbus-glib-1 --pkg hildon-1 --pkg libosso --pkg gmodule-2.0
+cinaest_CFLAGS = ${DBUS_CFLAGS} ${HILDON_CFLAGS} ${OSSO_CFLAGS} ${GMODULE_CFLAGS} \
        -DGETTEXT_PACKAGE=\"@GETTEXT_PACKAGE@\"
-cinaest_LDADD = ${HILDON_LIBS} ${OSSO_LIBS} ${GMODULE_LIBS}
+cinaest_LDADD = ${DBUS_LIBS} ${HILDON_LIBS} ${OSSO_LIBS} ${GMODULE_LIBS}
+
+libgoogle_plugin_la_SOURCES = \
+       src/plugins/google-plugin.c \
+       src/genres.c \
+        src/movie.c \
+       src/plugin-interface.c \
+       src/plugins/google-parser.c
+
+libgoogle_plugin_la_VALASOURCES = \
+       src/plugins/google-plugin.vala \
+       src/genres.vala \
+        src/movie.vala \
+       src/movie-filter.vala \
+       src/plugin-interface.vala \
+       src/plugins/google-parser.vala
+
+libgoogle_plugin_la_VALAFLAGS = --vapidir ./vapi --pkg config \
+       --pkg hildon-1
+libgoogle_plugin_la_CFLAGS = ${HILDON_CFLAGS}
+libgoogle_plugin_la_LIBADD = ${HILDON_LIBS}
+libgoogle_plugin_la_LDFLAGS = -module
+
+${libgoogle_plugin_la_SOURCES}: ${libgoogle_plugin_la_VALASOURCES}
+       ${VALAC} -C ${libgoogle_plugin_la_VALASOURCES} ${libgoogle_plugin_la_VALAFLAGS}
 
 libimdb_plugin_la_SOURCES = \
         src/plugins/imdb-plugin.c \
@@ -108,6 +140,19 @@ imdb_plaintext_downloader_LDADD = ${DBUS_LIBS} ${GIO_LIBS} ${SQLITE3_LIBS} -lz
 ${imdb_plaintext_downloader_SOURCES}: ${imdb_plaintext_downloader_VALASOURCES}
        ${VALAC} -C ${imdb_plaintext_downloader_VALASOURCES} ${imdb_plaintext_downloader_VALAFLAGS}
 
+google_poster_downloader_SOURCES = \
+       src/poster/google-poster-downloader.c
+
+google_poster_downloader_VALASOURCES = \
+       src/poster/google-poster-downloader.vala
+
+google_poster_downloader_VALAFLAGS = --vapidir ./vapi --pkg dbus-glib-1 --pkg gio-2.0
+google_poster_downloader_CFLAGS = ${DBUS_CFLAGS} ${GIO_CFLAGS}
+google_poster_downloader_LDADD = ${DBUS_LIBS} ${GIO_LIBS}
+
+${google_poster_downloader_SOURCES}: ${google_poster_downloader_VALASOURCES}
+       ${VALAC} -C ${google_poster_downloader_VALASOURCES} ${google_poster_downloader_VALAFLAGS}
+
 BUILT_SOURCES = \
        ${cinaest_SOURCES} \
        ${libimdb_plugin_la_SOURCES} \