librygel_gst_renderer_la_VALAFLAGS = --vapidir=$(top_srcdir)/src/rygel \
--vapidir=$(srcdir) \
- --pkg rygel-1.0 --pkg cstuff \
+ --pkg rygel-1.0 --pkg rygel-build-config \
--pkg gupnp-1.0 --pkg gupnp-av-1.0 \
--pkg gee-1.0 --pkg gstreamer-0.10 -g
using Rygel;
using Gee;
-using CStuff;
public void module_init (PluginLoader loader) {
string MEDIA_RENDERER_DESC_PATH = BuildConfig.DATA_DIR +
librygel_media_tracker_la_VALAFLAGS = \
--vapidir=$(top_srcdir)/src/rygel \
- --pkg rygel-1.0 --pkg cstuff --pkg gconf-2.0 \
+ --pkg rygel-1.0 --pkg rygel-build-config --pkg gconf-2.0 \
--pkg gupnp-1.0 --pkg gupnp-av-1.0 \
--pkg dbus-glib-1 --pkg gee-1.0 --pkg gstreamer-0.10 -g
using Rygel;
using Gee;
-using CStuff;
private TrackerPluginFactory plugin_factory;
*/
using Gee;
-using CStuff;
public class Rygel.TrackerPlugin : Rygel.Plugin {
// class-wide constants
rygel_VALAFLAGS = \
-H rygel.h -C --library=rygel-1.0 --vapidir=$(srcdir) --thread \
- --pkg cstuff --pkg gupnp-1.0 --pkg gupnp-av-1.0 --pkg dbus-glib-1 \
- --pkg gstreamer-0.10 --pkg gio-2.0 --pkg gee-1.0 -g
+ --pkg cstuff --pkg rygel-build-config --pkg gupnp-1.0 \
+ --pkg gupnp-av-1.0 --pkg dbus-glib-1 --pkg gstreamer-0.10 \
+ --pkg gio-2.0 --pkg gee-1.0 -g
rygel_LDADD = librygel-configuration.a \
$(LIBGUPNP_LIBS) \
MAINTAINERCLEANFILES = Makefile.in $(BUILT_SOURCES)
EXTRA_DIST = cstuff.vapi \
+ rygel-build-config.vapi \
$(VAPI_FILES) \
$(DEPS_FILES) \
$(BUILT_SOURCES) cstuff.h
*/
namespace CStuff {
/**
- * Holds constants defined by build system.
- */
- class BuildConfig {
- [CCode (cname = "DATA_DIR")]
- public static const string DATA_DIR;
-
- [CCode (cname = "SYS_CONFIG_DIR")]
- public static const string SYS_CONFIG_DIR;
-
- [CCode (cname = "DESKTOP_DIR")]
- public static const string DESKTOP_DIR;
-
- [CCode (cname = "PLUGIN_DIR")]
- public static const string PLUGIN_DIR;
-
- [CCode (cname = "ICON_DIR")]
- public static const string ICON_DIR;
-
- [CCode (cname = "PACKAGE_NAME")]
- public static const string PACKAGE_NAME;
-
- [CCode (cname = "PACKAGE_VERSION")]
- public static const string PACKAGE_VERSION;
-
- [CCode (cname = "PACKAGE_STRING")]
- public static const string PACKAGE_STRING;
- }
-
- /**
* Provides utility functions implemented in C.
*/
public class Utils {
--- /dev/null
+/*
+ * Copyright (C) 2008 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>.
+ *
+ * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
+ *
+ * This file is part of Rygel.
+ *
+ * Rygel is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Rygel is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/**
+ * Holds constants defined by build system.
+ */
+public class Rygel.BuildConfig {
+ [CCode (cname = "DATA_DIR")]
+ public static const string DATA_DIR;
+
+ [CCode (cname = "SYS_CONFIG_DIR")]
+ public static const string SYS_CONFIG_DIR;
+
+ [CCode (cname = "DESKTOP_DIR")]
+ public static const string DESKTOP_DIR;
+
+ [CCode (cname = "PLUGIN_DIR")]
+ public static const string PLUGIN_DIR;
+
+ [CCode (cname = "ICON_DIR")]
+ public static const string ICON_DIR;
+
+ [CCode (cname = "PACKAGE_NAME")]
+ public static const string PACKAGE_NAME;
+
+ [CCode (cname = "PACKAGE_VERSION")]
+ public static const string PACKAGE_VERSION;
+
+ [CCode (cname = "PACKAGE_STRING")]
+ public static const string PACKAGE_STRING;
+}
rygel.stamp: $(rygel_preferences_VALASOURCES)
rygel_preferences_VALAFLAGS = \
--vapidir=$(rygeldir) --thread \
- --pkg rygel-1.0 --pkg cstuff --pkg gupnp-1.0 --pkg gupnp-av-1.0 \
- --pkg dbus-glib-1 --pkg gconf-2.0 --pkg gstreamer-0.10 \
- --pkg gio-2.0 --pkg gee-1.0 --pkg gtk+-2.0 -g
+ --pkg rygel-1.0 --pkg rygel-build-config --pkg gupnp-1.0 \
+ --pkg gupnp-av-1.0 --pkg dbus-glib-1 --pkg gconf-2.0 \
+ --pkg gstreamer-0.10 --pkg gio-2.0 --pkg gee-1.0 --pkg gtk+-2.0 -g
rygel_preferences_LDADD = \
$(abs_top_builddir)/src/rygel/librygel-configuration.a \
*/
using Gtk;
using Gee;
-using CStuff;
public class Rygel.PreferencesDialog : GLib.Object {
const string UI_FILE = BuildConfig.DATA_DIR + "/rygel-preferences.ui";