diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2004-01-03 20:36:09 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2004-01-03 20:36:09 +0000 |
commit | 30e9c39c8f141bd8f1d73ed0771503f2e3ecd5e8 (patch) | |
tree | 610a244fa3d170e12373c60e3d67dfbeedce27f8 /win32/source | |
parent | 2bf8b573f108274ad86bf05319bf92e65d76c699 (diff) | |
download | xine-lib-30e9c39c8f141bd8f1d73ed0771503f2e3ecd5e8.tar.gz xine-lib-30e9c39c8f141bd8f1d73ed0771503f2e3ecd5e8.tar.bz2 |
Makefile for compiling win32 xineui under cygwin against already installed libxine. Don't use common.h in include/ directory, there it's together with helping system files and CygWin wouldn't be happy.
CVS patchset: 5985
CVS date: 2004/01/03 20:36:09
Diffstat (limited to 'win32/source')
-rwxr-xr-x | win32/source/Makefile | 17 | ||||
-rw-r--r-- | win32/source/common.h | 244 |
2 files changed, 261 insertions, 0 deletions
diff --git a/win32/source/Makefile b/win32/source/Makefile new file mode 100755 index 000000000..e36aab3cd --- /dev/null +++ b/win32/source/Makefile @@ -0,0 +1,17 @@ +# Makefile for compilation xineui under cygwin. +# It requires installed libxine1. + +OBJS = main.o wnd.ctrl.o wnd.panel.o wnd.playlist.o wnd.video.o xineui.o resource.o +CFLAGS=-g -O2 + +all: $(OBJS) + $(CXX) $(OBJS) `xine-config --libs` -luser32 -lgdi32 -lcomdlg32 -lcomctl32 -o xineui + +resource.o: resource.rc + windres -i $< -o $@ + +clean: + -$(RM) $(OBJS) *.exe *~ + +.cpp.o: + $(CC) -W -Wall $(CFLAGS) `xine-config --cflags` -I../include -c $< diff --git a/win32/source/common.h b/win32/source/common.h new file mode 100644 index 000000000..29eb1e56c --- /dev/null +++ b/win32/source/common.h @@ -0,0 +1,244 @@ +/*
+ * Copyright (C) 2000-2003 the xine project
+ *
+ * This file is part of xine, a unix video player.
+ *
+ * xine is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * $Id: common.h,v 1.1 2004/01/03 20:36:09 valtri Exp $
+ *
+ */
+
+#ifndef __COMMON_H__
+#define __COMMON_H__
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <xine.h>
+#if 0
+#include <xineutils.h>
+
+#include "Imlib-light/Imlib.h"
+
+#include "xitk.h"
+
+#include "kbindings.h"
+#include "videowin.h"
+#include "mediamark.h"
+#include "actions.h"
+#include "config_wrapper.h"
+#include "control.h"
+#include "errors.h"
+#include "event.h"
+#include "event_sender.h"
+#include "i18n.h"
+#include "lang.h"
+#include "lirc.h"
+#include "mrl_browser.h"
+#include "network.h"
+#include "panel.h"
+#include "playlist.h"
+#include "session.h"
+#include "setup.h"
+#include "skins.h"
+#include "snapshot.h"
+#include "stream_infos.h"
+#include "viewlog.h"
+#include "download.h"
+#include "osd.h"
+#include "file_browser.h"
+#include "post.h"
+
+#include "utils.h"
+#endif
+
+#ifdef HAVE_ORBIT
+#include "../corba/xine-server.h"
+#endif
+
+#ifdef HAVE_LIRC
+#include <lirc/lirc_client.h>
+#endif
+
+/*
+ * config related constants
+ */
+#define CONFIG_LEVEL_BEG 0 /* => beginner */
+#define CONFIG_LEVEL_ADV 10 /* advanced user */
+#define CONFIG_LEVEL_EXP 20 /* expert */
+#define CONFIG_LEVEL_MAS 30 /* motku */
+#define CONFIG_LEVEL_DEB 40 /* debugger (only available in debug mode) */
+
+#define CONFIG_NO_DESC NULL
+#define CONFIG_NO_HELP NULL
+#define CONFIG_NO_CB NULL
+#define CONFIG_NO_DATA NULL
+
+/*
+ * flags for autoplay options
+ */
+#define PLAY_ON_START 0x00000001
+#define PLAYED_ON_START 0x00000002
+#define QUIT_ON_STOP 0x00000004
+#define FULL_ON_START 0x00000008
+#define HIDEGUI_ON_START 0x00000010
+#define PLAY_FROM_DVD 0x00000020
+#define PLAY_FROM_VCD 0x00000040
+
+/* Sound mixer capabilities */
+#define MIXER_CAP_NOTHING 0x00000000
+#define MIXER_CAP_VOL 0x00000001
+#define MIXER_CAP_MUTE 0x00000002
+
+/* Playlist loop modes */
+#define PLAYLIST_LOOP_NO_LOOP 0 /* no loop (default) */
+#define PLAYLIST_LOOP_LOOP 1 /* loop the whole playlist */
+#define PLAYLIST_LOOP_REPEAT 2 /* loop the current mrl */
+#define PLAYLIST_LOOP_SHUFFLE 3 /* random selection in playlist */
+#define PLAYLIST_LOOP_SHUF_PLUS 4 /* random selection in playlist, never ending */
+#define PLAYLIST_LOOP_MODES_NUM 5
+
+#define SAFE_FREE(x) do { \
+ if((x)) { \
+ free((x)); \
+ x = NULL; \
+ } \
+ } while(0)
+
+/* Our default location for skin downloads */
+#define SKIN_SERVER_URL "http://xine.sourceforge.net/skins/skins.slx"
+
+typedef struct {
+ xine_video_port_t *vo_port;
+ int post_video_num;
+ xine_post_t *post_video;
+
+ struct {
+ int hue;
+ int brightness;
+ int saturation;
+ int contrast;
+ } video_settings;
+
+ xine_audio_port_t *ao_port;
+
+ xine_stream_t *stream;
+ xine_stream_t *spu_stream;
+
+ xine_t *xine;
+
+ xine_event_queue_t *event_queue;
+
+ int smart_mode;
+
+ /* Visual stuff (like animation in video window while audio only playback) */
+ struct {
+ xine_stream_t *stream;
+ xine_event_queue_t *event_queue;
+ int running;
+ int current;
+ int enabled; /* 0, 1:vpost, 2:vanim */
+
+ char **mrls;
+ int num_mrls;
+
+ int post_plugin_num;
+ xine_post_t *post_output;
+ int post_changed;
+
+ } visual_anim;
+
+ struct {
+ int enabled;
+ int timeout;
+
+ xine_osd_t *sinfo;
+ int sinfo_visible;
+
+ xine_osd_t *bar[2];
+ int bar_visible;
+
+ xine_osd_t *status;
+ int status_visible;
+
+ xine_osd_t *info;
+ int info_visible;
+
+ } osd;
+
+ /* xine lib/gui configuration filename */
+ char *configfile;
+ int experience_level;
+
+ const char *logo_mrl;
+ int logo_mode;
+ int logo_has_changed;
+
+ /* stuff like FULL_ON_START, QUIT_ON_STOP */
+ /*action_id_t actions_on_start[16];*/
+ char *autoscan_plugin;
+
+
+ uint32_t debug_level;
+
+ int is_display_mrl;
+
+ int mrl_overrided;
+
+ int running;
+ int ignore_next;
+
+#ifdef HAVE_LIRC
+ int lirc_enable;
+#endif
+
+#ifdef HAVE_XF86VIDMODE
+ int XF86VidMode_fullscreen;
+#endif
+
+ struct {
+ int caps; /* MIXER_CAP_x */
+ int volume_level;
+ int mute;
+ } mixer;
+
+ int layer_above;
+ int always_layer_above;
+
+ int network;
+
+ int use_root_window;
+
+ const char *snapshot_location;
+
+ int ssaver_timeout;
+
+ int skip_by_chapter;
+
+ int auto_vo_visibility;
+ int auto_panel_visibility;
+
+ int eventer_sticky;
+ int stream_info_auto_update;
+
+ int play_anyway;
+
+ pthread_mutex_t download_mutex;
+
+} gGui_t;
+
+#endif
|