Commit 43d1da2f authored by Philippe Rouquier's avatar Philippe Rouquier Committed by Philippe Rouquier

New library born out of splitting brasero and all media related code. Its

2009-01-07  Philippe Rouquier  <ykw@localhost.localdomain>

	New library born out of splitting brasero and all media related code.
	Its name is libbrasero-media.
	The next patch should move it to its own directory.

	* Makefile.am:
	* autogen.sh:
	* configure.in:
	* docs/Makefile.am:
	* docs/reference/Makefile.am:
	* docs/reference/version.xml.in:
	* libbrasero-media.pc.in:
	* src/Makefile.am:
	* src/brasero-dest-selection.c (brasero_dest_selection_lock),
	(brasero_dest_selection_valid_session),
	(brasero_dest_selection_medium_changed),
	(brasero_dest_selection_set_property):
	* src/brasero-medium-selection.c
	(brasero_medium_selection_get_medium_string):
	* src/brasero-medium-selection.h:
	* src/brasero-src-selection.c
	(brasero_src_selection_medium_changed):
	* src/brasero-tool-dialog.c (brasero_tool_dialog_cancel):
	* src/burn-basics.h:
	* src/burn-caps.c:
	* src/burn-debug.c (brasero_burn_debug_track_type_message):
	* src/burn-drive.c (brasero_drive_get_gdrive),
	(brasero_drive_get_bus_target_lun_string), (brasero_drive_is_fake),
	(brasero_drive_is_door_open), (brasero_drive_can_use_exclusively),
	(brasero_drive_lock), (brasero_drive_unlock),
	(brasero_drive_get_display_name), (brasero_drive_get_device),
	(brasero_drive_get_block_device), (brasero_drive_get_udi),
	(brasero_drive_get_medium), (brasero_drive_reprobe),
	(brasero_drive_hal_reprobe), (brasero_drive_check_medium_inside),
	(brasero_drive_init_real), (brasero_drive_class_init):
	* src/burn-drive.h:
	* src/burn-hal-watch.c (brasero_hal_watch_get_ctx),
	(brasero_hal_watch_destroy):
	* src/burn-iso9660.c (brasero_iso9660_is_primary_descriptor),
	(brasero_iso9660_read_susp), (brasero_iso9660_get_susp),
	(brasero_iso9660_next_record),
	(brasero_iso9660_get_first_directory_record),
	(brasero_iso9660_read_file_record),
	(brasero_iso9660_read_directory_record),
	(brasero_iso9660_load_directory_records),
	(brasero_iso9660_check_SUSP_RR_use),
	(brasero_iso9660_lookup_directory_record_RR),
	(brasero_iso9660_lookup_directory_records):
	* src/burn-media.c (brasero_media_quark),
	(brasero_media_to_string), (brasero_media_get_option_group),
	(brasero_media_message):
	* src/burn-media.h:
	* src/burn-medium-monitor.c (brasero_medium_monitor_get_drive),
	(brasero_medium_monitor_is_probing),
	(brasero_medium_monitor_get_media),
	(brasero_medium_monitor_inserted_cb),
	(brasero_medium_monitor_removed_cb), (brasero_medium_monitor_init),
	(brasero_medium_monitor_class_init):
	* src/burn-medium-monitor.h:
	* src/burn-medium.c (brasero_medium_test_simulate_CD_SAO),
	(brasero_medium_test_simulate_CD_TAO),
	(brasero_medium_test_simulate_DVDRW),
	(brasero_medium_test_simulate_2A), (brasero_medium_init_caps),
	(brasero_medium_get_capacity_CD_RW),
	(brasero_medium_get_capacity_DVD_RW),
	(brasero_medium_get_speed_mmc3),
	(brasero_medium_get_page_2A_write_speed_desc),
	(brasero_medium_get_page_2A_max_speed),
	(brasero_medium_track_volume_size),
	(brasero_medium_track_written_SAO),
	(brasero_medium_track_get_info),
	(brasero_medium_track_set_leadout_CDR_blank),
	(brasero_medium_track_set_leadout),
	(brasero_medium_add_DVD_plus_RW_leadout),
	(brasero_medium_get_sessions_info), (brasero_medium_get_DVD_id),
	(brasero_medium_get_contents), (brasero_medium_check_BCD_use),
	(brasero_medium_get_CD_sessions_info),
	(brasero_medium_old_drive_get_disc_info),
	(brasero_medium_check_old_drive), (brasero_medium_get_medium_type),
	(brasero_medium_get_css_feature), (brasero_medium_get_CD_TEXT),
	(brasero_medium_read_CD_TEXT), (brasero_medium_init_real),
	(brasero_medium_probe_thread):
	* src/burn-medium.h:
	* src/burn-units.c (brasero_units_get_time_string),
	(brasero_units_get_time_string_from_size):
	* src/burn-units.h:
	* src/burn-volume-obj.c (brasero_volume_get_gvolume),
	(brasero_volume_get_mount_point),
	(brasero_volume_operation_timeout), (brasero_volume_umount_finish),
	(brasero_volume_eject):
	* src/burn-volume-read.c:
	* src/burn-volume-read.h:
	* src/burn-volume-source.c (brasero_volume_source_seek_fd),
	(brasero_volume_source_read_fd),
	(brasero_volume_source_readcd_device_handle),
	(brasero_volume_source_read10_device_handle),
	(brasero_volume_source_open_file), (brasero_volume_source_open_fd),
	(brasero_volume_source_open_device_handle):
	* src/burn-volume.c (brasero_volume_get_primary_from_file):
	* src/libbrasero-marshal.list:
	* src/main.c (main):
	* src/plugins/cdrdao/Makefile.am:
	* src/plugins/cdrkit/Makefile.am:
	* src/plugins/cdrtools/Makefile.am:
	* src/plugins/checksum/Makefile.am:
	* src/plugins/dvdauthor/Makefile.am:
	* src/plugins/dvdcss/Makefile.am:
	* src/plugins/growisofs/Makefile.am:
	* src/plugins/libburnia/Makefile.am:
	* src/plugins/local-track/Makefile.am:
	* src/plugins/transcode/Makefile.am:
	* src/plugins/vcdimager/Makefile.am:
	* src/scsi-cam.c:
	* src/scsi-error.c (brasero_scsi_set_error):
	* src/scsi-get-configuration.c (brasero_get_configuration):
	* src/scsi-get-performance.c (brasero_get_performance_get_buffer),
	(brasero_get_performance):
	* src/scsi-mode-sense.c (brasero_spc1_mode_sense_get_page):
	* src/scsi-read-disc-info.c
	(brasero_mmc1_read_disc_information_std):
	* src/scsi-read-toc-pma-atip.c (brasero_read_toc_pma_atip):
	* src/scsi-read-track-information.c (brasero_read_track_info):
	* src/scsi-sense-data.c (brasero_sense_data_print):
	* src/scsi-sg.c:
	* src/scsi-uscsi.c:
	* src/scsi-utils.h:

svn path=/trunk/; revision=1704
parent 3c0e9bc3
2009-01-07 Philippe Rouquier <ykw@localhost.localdomain>
New library born out of splitting brasero and all media related code.
Its name is libbrasero-media.
The next patch should move it to its own directory.
* Makefile.am:
* autogen.sh:
* configure.in:
* docs/Makefile.am:
* docs/reference/Makefile.am:
* docs/reference/version.xml.in:
* libbrasero-media.pc.in:
* src/Makefile.am:
* src/brasero-dest-selection.c (brasero_dest_selection_lock),
(brasero_dest_selection_valid_session),
(brasero_dest_selection_medium_changed),
(brasero_dest_selection_set_property):
* src/brasero-medium-selection.c
(brasero_medium_selection_get_medium_string):
* src/brasero-medium-selection.h:
* src/brasero-src-selection.c
(brasero_src_selection_medium_changed):
* src/brasero-tool-dialog.c (brasero_tool_dialog_cancel):
* src/burn-basics.h:
* src/burn-caps.c:
* src/burn-debug.c (brasero_burn_debug_track_type_message):
* src/burn-drive.c (brasero_drive_get_gdrive),
(brasero_drive_get_bus_target_lun_string), (brasero_drive_is_fake),
(brasero_drive_is_door_open), (brasero_drive_can_use_exclusively),
(brasero_drive_lock), (brasero_drive_unlock),
(brasero_drive_get_display_name), (brasero_drive_get_device),
(brasero_drive_get_block_device), (brasero_drive_get_udi),
(brasero_drive_get_medium), (brasero_drive_reprobe),
(brasero_drive_hal_reprobe), (brasero_drive_check_medium_inside),
(brasero_drive_init_real), (brasero_drive_class_init):
* src/burn-drive.h:
* src/burn-hal-watch.c (brasero_hal_watch_get_ctx),
(brasero_hal_watch_destroy):
* src/burn-iso9660.c (brasero_iso9660_is_primary_descriptor),
(brasero_iso9660_read_susp), (brasero_iso9660_get_susp),
(brasero_iso9660_next_record),
(brasero_iso9660_get_first_directory_record),
(brasero_iso9660_read_file_record),
(brasero_iso9660_read_directory_record),
(brasero_iso9660_load_directory_records),
(brasero_iso9660_check_SUSP_RR_use),
(brasero_iso9660_lookup_directory_record_RR),
(brasero_iso9660_lookup_directory_records):
* src/burn-media.c (brasero_media_quark),
(brasero_media_to_string), (brasero_media_get_option_group),
(brasero_media_message):
* src/burn-media.h:
* src/burn-medium-monitor.c (brasero_medium_monitor_get_drive),
(brasero_medium_monitor_is_probing),
(brasero_medium_monitor_get_media),
(brasero_medium_monitor_inserted_cb),
(brasero_medium_monitor_removed_cb), (brasero_medium_monitor_init),
(brasero_medium_monitor_class_init):
* src/burn-medium-monitor.h:
* src/burn-medium.c (brasero_medium_test_simulate_CD_SAO),
(brasero_medium_test_simulate_CD_TAO),
(brasero_medium_test_simulate_DVDRW),
(brasero_medium_test_simulate_2A), (brasero_medium_init_caps),
(brasero_medium_get_capacity_CD_RW),
(brasero_medium_get_capacity_DVD_RW),
(brasero_medium_get_speed_mmc3),
(brasero_medium_get_page_2A_write_speed_desc),
(brasero_medium_get_page_2A_max_speed),
(brasero_medium_track_volume_size),
(brasero_medium_track_written_SAO),
(brasero_medium_track_get_info),
(brasero_medium_track_set_leadout_CDR_blank),
(brasero_medium_track_set_leadout),
(brasero_medium_add_DVD_plus_RW_leadout),
(brasero_medium_get_sessions_info), (brasero_medium_get_DVD_id),
(brasero_medium_get_contents), (brasero_medium_check_BCD_use),
(brasero_medium_get_CD_sessions_info),
(brasero_medium_old_drive_get_disc_info),
(brasero_medium_check_old_drive), (brasero_medium_get_medium_type),
(brasero_medium_get_css_feature), (brasero_medium_get_CD_TEXT),
(brasero_medium_read_CD_TEXT), (brasero_medium_init_real),
(brasero_medium_probe_thread):
* src/burn-medium.h:
* src/burn-units.c (brasero_units_get_time_string),
(brasero_units_get_time_string_from_size):
* src/burn-units.h:
* src/burn-volume-obj.c (brasero_volume_get_gvolume),
(brasero_volume_get_mount_point),
(brasero_volume_operation_timeout), (brasero_volume_umount_finish),
(brasero_volume_eject):
* src/burn-volume-read.c:
* src/burn-volume-read.h:
* src/burn-volume-source.c (brasero_volume_source_seek_fd),
(brasero_volume_source_read_fd),
(brasero_volume_source_readcd_device_handle),
(brasero_volume_source_read10_device_handle),
(brasero_volume_source_open_file), (brasero_volume_source_open_fd),
(brasero_volume_source_open_device_handle):
* src/burn-volume.c (brasero_volume_get_primary_from_file):
* src/libbrasero-marshal.list:
* src/main.c (main):
* src/plugins/cdrdao/Makefile.am:
* src/plugins/cdrkit/Makefile.am:
* src/plugins/cdrtools/Makefile.am:
* src/plugins/checksum/Makefile.am:
* src/plugins/dvdauthor/Makefile.am:
* src/plugins/dvdcss/Makefile.am:
* src/plugins/growisofs/Makefile.am:
* src/plugins/libburnia/Makefile.am:
* src/plugins/local-track/Makefile.am:
* src/plugins/transcode/Makefile.am:
* src/plugins/vcdimager/Makefile.am:
* src/scsi-cam.c:
* src/scsi-error.c (brasero_scsi_set_error):
* src/scsi-get-configuration.c (brasero_get_configuration):
* src/scsi-get-performance.c (brasero_get_performance_get_buffer),
(brasero_get_performance):
* src/scsi-mode-sense.c (brasero_spc1_mode_sense_get_page):
* src/scsi-read-disc-info.c
(brasero_mmc1_read_disc_information_std):
* src/scsi-read-toc-pma-atip.c (brasero_read_toc_pma_atip):
* src/scsi-read-track-information.c (brasero_read_track_info):
* src/scsi-sense-data.c (brasero_sense_data_print):
* src/scsi-sg.c:
* src/scsi-uscsi.c:
* src/scsi-utils.h:
2009-01-06 Philippe Rouquier <ykw@localhost.localdomain>
Small thing forgotten to remove
......
......@@ -19,12 +19,14 @@ EXTRA_DIST = \
intltool-merge.in \
intltool-update.in \
gnome-doc-utils.make \
libbrasero-media.pc \
m4
noinst_PROGRAMS =
DIST_CHECK_CONFIGRE_FLAGS =
--disable-scrollkeeper
DIST_CHECK_CONFIGRE_FLAGS = \
--disable-scrollkeeper \
--enable-gtk-doc
DISTCLEANFILES = \
intltool-extract \
......@@ -32,6 +34,9 @@ DISTCLEANFILES = \
intltool-update \
gtk-doc.make
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libbrasero-media.pc
# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
for specfile in *.spec; do \
......
......@@ -18,4 +18,4 @@ which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME CVS"
exit 1
}
REQUIRED_AUTOMAKE_VERSION=1.7 . gnome-autogen.sh
REQUIRED_AUTOMAKE_VERSION=1.7 USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-gtk-doc "$@"
......@@ -20,6 +20,8 @@ AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
LIBBRASERO_LT_VERSION=0:0:0
AC_SUBST(LIBBRASERO_LT_VERSION)
AC_DEFINE_UNQUOTED(BRASERO_MAJOR_VERSION, $BRASERO_MAJOR_VERSION, [major version])
AC_DEFINE_UNQUOTED(BRASERO_MINOR_VERSION, $BRASERO_MINOR_VERSION, [minor version])
......@@ -47,7 +49,8 @@ GNOME_MAINTAINER_MODE_DEFINES
dnl ***************** GENERAL **********************************
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
dnl ** reminder: the following set CFLAGS to -O2 -g if empty
AC_PROG_CC
AC_HEADER_STDC
......@@ -121,15 +124,15 @@ GTK_DOC_CHECK([1.3])
GNOME_DOC_INIT
dnl ** used by brasero and one plugin
PKG_CHECK_MODULES(BRASERO_GSTREAMER, \
gstreamer-0.10 >= $GSTREAMER_REQUIRED \
PKG_CHECK_MODULES(BRASERO_GSTREAMER, \
gstreamer-0.10 >= $GSTREAMER_REQUIRED \
gstreamer-interfaces-0.10 \
gstreamer-plugins-base-0.10 >= $GSTREAMER_BASE_REQUIRED)
AC_SUBST(BRASERO_GSTREAMER_CFLAGS)
AC_SUBST(BRASERO_GSTREAMER_LIBS)
BRASERO_GSTREAMER_CFLAGS="$BRASERO_GSTREAMER_CFLAGS $CFLAGS"
BRASERO_GSTREAMER_LIBS="$BRASERO_GSTREAMER_LIBS $LDFLAGS -lgstpbutils-0.10"
BRASERO_GSTREAMER_LIBS="$BRASERO_GSTREAMER_LIBS -lgstpbutils-0.10"
dnl ** used by brasero and one plugin
PKG_CHECK_MODULES(BRASERO_GIO, \
......@@ -138,9 +141,6 @@ PKG_CHECK_MODULES(BRASERO_GIO, \
AC_SUBST(BRASERO_GIO_CFLAGS)
AC_SUBST(BRASERO_GIO_LIBS)
BRASERO_GIO_CFLAGS="$BRASERO_GIO_CFLAGS $CFLAGS"
BRASERO_GIO_LIBS="$BRASERO_GIO_LIBS $LDFLAGS"
dnl ** used by brasero and one plugin
PKG_CHECK_MODULES(BRASERO_LIBXML, \
libxml-2.0 >= $LIBXML2_REQUIRED)
......@@ -148,37 +148,44 @@ PKG_CHECK_MODULES(BRASERO_LIBXML, \
AC_SUBST(BRASERO_LIBXML_CFLAGS)
AC_SUBST(BRASERO_LIBXML_LIBS)
BRASERO_LIBXML_CFLAGS="$BRASERO_LIBXML_CFLAGS $CFLAGS"
BRASERO_LIBXML_LIBS="$BRASERO_LIBXML_LIBS $LDFLAGS"
dnl ** used by brasero and all modules
PKG_CHECK_MODULES(BRASERO_BASE, \
gconf-2.0 >= $GCONF_REQUIRED \
PKG_CHECK_MODULES(BRASERO_GLIB, \
glib-2.0 >= $GLIB_REQUIRED)
AC_SUBST(BRASERO_BASE_CFLAGS)
AC_SUBST(BRASERO_BASE_LIBS)
AC_SUBST(BRASERO_GLIB_CFLAGS)
AC_SUBST(BRASERO_GLIB_LIBS)
BRASERO_BASE_CFLAGS="$BRASERO_BASE_CFLAGS $BRASERO_GIO_CFLAGS $CFLAGS"
BRASERO_BASE_LIBS="$BRASERO_BASE_LIBS $LDFLAGS"
PKG_CHECK_MODULES(BRASERO_GCONF, \
gconf-2.0 >= $GCONF_REQUIRED)
dnl ** used only by brasero app itself ***
PKG_CHECK_MODULES(BRASERO_UI, \
hal >= $HAL_REQUIRED \
gmodule-2.0 >= $GMODULE_REQUIRED \
AC_SUBST(BRASERO_GCONF_CFLAGS)
AC_SUBST(BRASERO_GCONF_LIBS)
PKG_CHECK_MODULES(BRASERO_GMODULE, \
gmodule-2.0 >= $GMODULE_REQUIRED)
AC_SUBST(BRASERO_GMODULE_CFLAGS)
AC_SUBST(BRASERO_GMODULE_LIBS)
PKG_CHECK_MODULES(BRASERO_GTK, \
gdk-2.0 >= $GDK_REQUIRED \
gtk+-2.0 >= $GTK_REQUIRED \
dbus-glib-1 >= $DBUS_REQUIRED \
sm)
gtk+-2.0 >= $GTK_REQUIRED)
AC_SUBST(BRASERO_GTK_CFLAGS)
AC_SUBST(BRASERO_GTK_LIBS)
AC_SUBST(BRASERO_UI_CFLAGS)
AC_SUBST(BRASERO_UI_LIBS)
PKG_CHECK_MODULES(BRASERO_HAL, \
hal >= $HAL_REQUIRED \
dbus-glib-1 >= $DBUS_REQUIRED)
AC_SUBST(BRASERO_HAL_CFLAGS)
AC_SUBST(BRASERO_HAL_LIBS)
BRASERO_CFLAGS="$BRASERO_BASE_CFLAGS $BRASERO_UI_CFLAGS $BRASERO_GSTREAMER_CFLAGS $BRASERO_GIO_CFLAGS $BRASERO_CFLAGS $CFLAGS"
BRASERO_LIBS="$BRASERO_BASE_LIBS $BRASERO_UI_LIBS $BRASERO_GSTREAMER_LIBS $BRASERO_GIO_LIBS $BRASERO_LIBS $BRASERO_SCSI_LIBS $LDFLAGS"
PKG_CHECK_MODULES(BRASERO_SM, \
sm)
AC_SUBST(BRASERO_CFLAGS)
AC_SUBST(BRASERO_LIBS)
AC_SUBST(BRASERO_SM_CFLAGS)
AC_SUBST(BRASERO_SM_LIBS)
dnl ****************Nautilus**********************************
NAUTILUS_REQUIRED=2.22.2
......@@ -197,8 +204,8 @@ else
fi
if test x"$build_nautilus" = "xyes"; then
NAUTILUS_EXTENSION_CFLAGS="$BRASERO_BASE_CFLAGS $BRASERO_UI_CFLAGS $NAUTILUS_EXTENSION_CFLAGS"
NAUTILUS_EXTENSION_LIBS="$BRASERO_BASE_LIBS $BRASERO_UI_LIBS $NAUTILUS_EXTENSION_LIBS"
NAUTILUS_EXTENSION_CFLAGS="$BRASERO_GLIB_CFLAGS $BRASERO_UI_CFLAGS $NAUTILUS_EXTENSION_CFLAGS"
NAUTILUS_EXTENSION_LIBS="$BRASERO_GLIB_LIBS $BRASERO_UI_LIBS $NAUTILUS_EXTENSION_LIBS"
NAUTILUSDIR=`pkg-config --variable=extensiondir libnautilus-extension`
AC_SUBST(NAUTILUSDIR)
AM_GLIB_DEFINE_LOCALEDIR([GNOMELOCALEDIR])
......@@ -283,16 +290,18 @@ AC_ARG_ENABLE(search,
[enable_search="yes"])
if test x"$enable_search" = "xyes"; then
PKG_CHECK_MODULES(BEAGLE, libbeagle-1.0 >= $BEAGLE_REQUIRED, build_beagle=yes, build_beagle=no)
PKG_CHECK_MODULES(BRASERO_BEAGLE, libbeagle-1.0 >= $BEAGLE_REQUIRED, build_beagle=yes, build_beagle=no)
else
build_beagle="no"
fi
if test x"$build_beagle" = "xyes"; then
BRASERO_CFLAGS="$BRASERO_CFLAGS $BEAGLE_CFLAGS"
BRASERO_LIBS="$BRASERO_LIBS $BEAGLE_LIBS"
AC_DEFINE(BUILD_SEARCH, 1, [define if you want to use search pane])
AC_SUBST(BRASERO_BEAGLE_CFLAGS)
AC_SUBST(BRASERO_BEAGLE_LIBS)
fi
AM_CONDITIONAL(BUILD_SEARCH, test x"$build_search" = "xyes")
dnl ****************check for playlist (optional)**************
......@@ -303,16 +312,18 @@ AC_ARG_ENABLE(playlist,
[enable_playlist="yes"])
if test x"$enable_playlist" = "xyes"; then
PKG_CHECK_MODULES(TOTEM, totem-plparser >= $TOTEM_REQUIRED, build_totem=yes, build_totem=no)
PKG_CHECK_MODULES(BRASERO_PL_PARSER, totem-plparser >= $TOTEM_REQUIRED, build_totem=yes, build_totem=no)
else
build_totem="no"
fi
if test x"$build_totem" = "xyes"; then
BRASERO_CFLAGS="$BRASERO_CFLAGS $TOTEM_CFLAGS"
BRASERO_LIBS="$BRASERO_LIBS $TOTEM_LIBS"
AC_DEFINE(BUILD_PLAYLIST, 1, [define if you want to build playlist pane])
fi
AC_SUBST(BRASERO_PL_PARSER_CFLAGS)
AC_SUBST(BRASERO_PL_PARSER_LIBS)
AM_CONDITIONAL(BUILD_PLAYLIST, test x"$build_totem" = "xyes")
dnl ****************check for preview (optional)**************
......@@ -322,16 +333,18 @@ AC_ARG_ENABLE(preview,
[enable_preview="yes"])
if test x"$enable_preview" = "xyes"; then
PKG_CHECK_MODULES(GSTREAMER_GCONF, gstreamer-plugins-base-0.10 >= $GSTREAMER_MODULE_REQUIRED, build_preview=yes, build_preview=no)
PKG_CHECK_MODULES(BRASERO_GSTREAMER_BASE, gstreamer-plugins-base-0.10 >= $GSTREAMER_MODULE_REQUIRED, build_preview=yes, build_preview=no)
else
build_preview="no"
fi
if test x"$build_preview" = "xyes"; then
BRASERO_CFLAGS="$BRASERO_CFLAGS $GSTREAMER_GCONF_CFLAGS"
BRASERO_LIBS="$BRASERO_LIBS $GSTREAMER_GCONF_LIBS -lgstinterfaces-0.10"
AC_DEFINE(BUILD_PREVIEW, 1, [define if you want to build preview pane])
fi
AC_SUBST(BRASERO_GSTREAMER_BASE_CFLAGS)
AC_SUBST(BRASERO_GSTREAMER_BASE_LIBS)
AM_CONDITIONAL(BUILD_PREVIEW, test x"$build_preview" = "xyes")
dnl ****************check for inotify (optional)**************
......@@ -366,6 +379,9 @@ else
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale", [Location of package locale files])
fi
dnl ***** API docs **********************
GTK_DOC_CHECK(1.9)
dnl ***** GCONF *************************
AC_ARG_ENABLE(schemas-install,AC_HELP_STRING([--disable-schemas-install],
......@@ -383,7 +399,10 @@ dnl ****** END ***********************
AC_OUTPUT([
Makefile
libbrasero-media.pc
docs/Makefile
docs/reference/Makefile
docs/reference/version.xml
data/Makefile
data/brasero.desktop.in
data/brasero-open-playlist.desktop.in
......
SUBDIRS=reference
man_MANS = brasero.1
EXTRA_DIST = $(man_MANS)
## Process this file with automake to produce Makefile.in
# We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6
# This is a blank Makefile.am for using gtk-doc.
# Copy this to your project's API docs directory and modify the variables to
# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
# of using the various options.
# The name of the module, e.g. 'glib'.
DOC_MODULE=brasero
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting the functions and macros.
# e.g. DOC_SOURCE_DIR=../../../gtk
DOC_SOURCE_DIR=../../src
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
MKTMPL_OPTIONS=
# Extra options to supply to gtkdoc-fixref. Not normally needed.
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
FIXXREF_OPTIONS=
# Used for dependencies. The docs will be rebuilt if any of these change.
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
HFILE_GLOB=$(top_srcdir)/src/*.h
CFILE_GLOB=$(top_srcdir)/src/*.c
# Header files to ignore when scanning.
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
IGNORE_HFILES=
# Images to copy into HTML directory.
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
HTML_IMAGES=
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
content_files=version.xml
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# e.g. expand_content_files=running.sgml
expand_content_files=
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
# signals and properties.
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
INCLUDES= \
-I$(top_srcdir) \
-I$(top_builddir) \
$(BRASERO_CFLAGS)
GTKDOC_LIBS=$(top_builddir)/src/libbrasero.la
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
# e.g. EXTRA_DIST += version.xml.in
EXTRA_DIST +=
# Files not to distribute
# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
#DISTCLEANFILES +=
# Comment this out if you want your docs-status tested during 'make check'
#TESTS = $(GTKDOC_CHECK)
@BRASERO_VERSION_MAJOR@.@BRASERO_VERSION_MINOR@.@BRASERO_VERSION_MICRO@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
gconf_serverdir=@libexecdir@
Name: libbrasero-media
Description: Brasero Optical Media library
Version: @VERSION@
Requires: glib-2.0 gthread-2.0 gtk+-2.0 hal
Libs: -L${libdir} -lbrasero-media
Cflags: -I${includedir}/brasero/
......@@ -9,23 +9,152 @@ INCLUDES = \
-DBRASERO_DATADIR=\"$(datadir)/brasero\" \
-DBRASERO_LIBDIR=\"$(libdir)\" \
$(DISABLE_DEPRECATED) \
$(BRASERO_CFLAGS) \
$(BRASERO_LIBXML_CFLAGS)
EXTRA_DIST = brasero-marshal.list
CLEANFILES = $(RECMARSHALFILES)
$(BRASERO_GLIB_CFLAGS) \
$(BRASERO_IO_CFLAGS) \
$(BRASERO_GCONF_CFLAGS) \
$(BRASERO_GSTREAMER_CFLAGS) \
$(BRASERO_GSTREAMER_BASE_CFLAGS) \
$(BRASERO_SM_CFLAGS) \
$(BRASERO_GTK_CFLAGS) \
$(BRASERO_GMODULE_CFLAGS) \
$(BRASERO_HAL_CFLAGS) \
$(BRASERO_LIBXML_CFLAGS) \
$(BRASERO_BEAGLE_CFLAGS) \
$(BRASERO_PL_PARSER_CFLAGS)
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
RECMARSHALFILES = brasero-marshal.h brasero-marshal.c
RECMARSHALFILES = brasero-marshal.h brasero-marshal.c libbrasero-marshal.h libbrasero-marshal.c
brasero-marshal.h: brasero-marshal.list
( $(GLIB_GENMARSHAL) --prefix=brasero_marshal $(srcdir)/brasero-marshal.list --header > brasero-marshal.h )
brasero-marshal.c: brasero-marshal.h
( $(GLIB_GENMARSHAL) --prefix=brasero_marshal $(srcdir)/brasero-marshal.list --body --header > brasero-marshal.c )
libbrasero-marshal.h: libbrasero-marshal.list
( $(GLIB_GENMARSHAL) --prefix=brasero_marshal $(srcdir)/libbrasero-marshal.list --header > libbrasero-marshal.h )
libbrasero-marshal.c: libbrasero-marshal.h
( $(GLIB_GENMARSHAL) --prefix=brasero_marshal $(srcdir)/libbrasero-marshal.list --body --header > libbrasero-marshal.c )
lib_LTLIBRARIES = \
libbrasero-media.la
libbraseromediaincludedir = $(pkgincludedir)/
libbraseromediainclude_HEADERS = \
burn-drive.h \
burn-medium-monitor.h \
burn-media.h \
burn-units.h \
burn-medium.h \
burn-volume-obj.h \
brasero-medium-selection.h
libbrasero_media_la_LADD = \
$(BRASERO_GLIB_LIBS) \
$(BRASERO_IO_LIBS) \
$(BRASERO_GTK_LIBS) \
$(BRASERO_HAL_LIBS) \
-version-info $(LIBBRASERO_LT_VERSION) \
-export-symbols $(srcdir)/libbrasero_drive.symbols \
-no-undefined \
$(AM_LDFLAGS)
libbrasero_media_la_SOURCES = \
libbrasero-marshal.c \
libbrasero-marshal.h \
burn-drive.h \
burn-medium-monitor.h \
burn-media.h \
burn-units.h \
burn-medium.h \
burn-volume-obj.h \
brasero-medium-selection.h \
scsi-base.h \
scsi-command.h \
scsi-error.h \
scsi-get-configuration.c \
scsi-get-configuration.h \
scsi-mmc1.h \
scsi-mmc2.h \
scsi-opcodes.h \
scsi-read-disc-info.c \
scsi-read-disc-info.h \
scsi-read-toc-pma-atip.c \
scsi-read-toc-pma-atip.h \
scsi-sense-data.c \
scsi-sense-data.h \
scsi-utils.h \
scsi-q-subchannel.h \
scsi-error.c \
scsi-read-track-information.c \
scsi-read-track-information.h \
scsi-get-performance.c \
scsi-get-performance.h \
scsi-mmc3.h \
scsi-mode-pages.h \
scsi-mode-sense.c \
scsi-status-page.h \
scsi-spc1.h \
scsi-read-capacity.c \
scsi-read-capacity.h \
scsi-read-disc-structure.c \
scsi-read-disc-structure.h \
scsi-dvd-structures.h \
scsi-read-format-capacities.c \
scsi-read-format-capacities.h \
scsi-read-cd.h \
scsi-read-cd.c \
scsi-device.h \
scsi-eject.c \
scsi-mech-status.c \
scsi-mech-status.h \
scsi-write-page.h \
scsi-mode-select.c \
scsi-read10.c \
scsi-sbc.h \
scsi-test-unit-ready.c \
burn-media.c \
burn-hal-watch.c \
burn-hal-watch.h \
burn-medium-monitor.c \
burn-susp.c \
burn-susp.h \
burn-iso-field.c \
burn-iso-field.h \
burn-iso9660.c \
burn-iso9660.h \
burn-volume-source.c \
burn-volume-source.h \
burn-volume.c \
burn-volume.h \
burn-medium.c \
burn-volume-obj.c \
burn-drive.c \
brasero-medium-selection.c \
burn-units.c
# FreeBSD's SCSI CAM interface
if HAVE_CAM_LIB_H
libbrasero_media_la_SOURCES += scsi-cam.c
endif
# Linux's SCSI CAM interface
if HAVE_SG_IO_HDR_T
libbrasero_media_la_SOURCES += scsi-sg.c
endif
# Solaris's USCSI interface
if HAVE_USCSI_H
libbrasero_media_la_SOURCES += scsi-uscsi.c
endif
bin_PROGRAMS = brasero
brasero_SOURCES = \
$(RECMARSHALFILES) \
brasero-marshal.c \
brasero-marshal.h \
main.c \
brasero-utils.h \
brasero-utils.c \
......@@ -106,55 +235,8 @@ brasero_SOURCES = \
brasero-disc-option-dialog.h \
brasero-image-type-chooser.c \
brasero-image-type-chooser.h \
burn-iso9660.c \
burn-iso9660.h \
brasero-layout-object.c \
brasero-layout-object.h \
burn-volume.c \
burn-volume.h \
burn-susp.c \
burn-susp.h \
burn-iso-field.c \
burn-iso-field.h \
burn-medium.h \
burn-medium.c \
scsi-base.h \
scsi-command.h \
scsi-error.h \
scsi-get-configuration.c \
scsi-get-configuration.h \
scsi-mmc1.h \
scsi-mmc2.h \
scsi-opcodes.h \
scsi-read-disc-info.c \
scsi-read-disc-info.h \
scsi-read-toc-pma-atip.c \
scsi-read-toc-pma-atip.h \
scsi-sense-data.c \
scsi-sense-data.h \
scsi-utils.h \
scsi-q-subchannel.h \
scsi-error.c \
scsi-read-track-information.c \
scsi-read-track-information.h \
scsi-get-performance.c \
scsi-get-performance.h \
scsi-mmc3.h \
scsi-mode-pages.h \
scsi-mode-sense.c \
scsi-status-page.h \
scsi-spc1.h \
scsi-read-capacity.c \
scsi-read-capacity.h \
scsi-read-disc-structure.c \
scsi-read-disc-structure.h \
scsi-dvd-structures.h \
scsi-read-format-capacities.c \
scsi-read-format-capacities.h \
scsi-read-cd.h \
scsi-read-cd.c \
burn-debug.c \
burn-debug.h \
burn-track.h \
burn-plugin.h \
burn-plugin.c \
......@@ -213,22 +295,8 @@ brasero_SOURCES = \
brasero-disc-message.c \
baobab-cell-renderer-progress.c \
baobab-cell-renderer-progress.h \
scsi-device.h \
brasero-io.h \
brasero-io.c \
brasero-medium-selection.h \
brasero-medium-selection.c \
burn-medium-monitor.c \
burn-medium-monitor.h \
burn-drive.h \
burn-drive.c \
burn-volume-obj.c \
burn-volume-obj.h \
scsi-eject.c \
scsi-mech-status.c \
scsi-mech-status.h \
burn-volume-read.h \
burn-volume-read.c \
brasero-jacket-background.c \
brasero-jacket-background.h \
brasero-jacket-buffer.c \
......@@ -245,18 +313,12 @@ brasero_SOURCES = \
brasero-rename.c \
brasero-notify.c \
brasero-notify.h \
burn-volume-source.c \
burn-volume-source.h \
brasero-video-disc.c \
brasero-video-disc.h \
brasero-video-project.h \
brasero-video-project.c \
brasero-video-tree-model.c \
brasero-video-tree-model.h \
scsi-write-page.h \
scsi-mode-select.c \
scsi-read10.c \
scsi-sbc.h \
brasero-app.c \
brasero-app.h \
brasero-session-cfg.h \
......@@ -269,13 +331,10 @@ brasero_SOURCES = \
brasero-medium-properties.c \
brasero-src-image.h \
brasero-src-image.c \
burn-media.c \
burn-media.h \
burn-hal-watch.c \
burn-hal-watch.h \
scsi-test-unit-ready.c \
brasero-tool-color-picker.h \
brasero-tool-color-picker.c \
burn-debug.c \
burn-debug.h \
eggdesktopfile.c \
eggdesktopfile.h \
eggsmclient.c \
......@@ -287,21 +346,25 @@ if BUILD_INOTIFY
brasero_SOURCES += brasero-file-monitor.c brasero-file-monitor.h
endif