From: Enlightenment S. <no-...@en...> - 2010-07-04 06:59:11
|
Log: make exchange compile on Windows Author: caro Date: 2010-07-03 23:59:03 -0700 (Sat, 03 Jul 2010) New Revision: 50020 Modified: trunk/PROTO/exchange/configure.ac trunk/PROTO/exchange/src/lib/Exchange.h trunk/PROTO/exchange/src/lib/Makefile.am trunk/PROTO/exchange/src/lib/exchange.c trunk/PROTO/exchange/src/lib/exchange_async.c trunk/PROTO/exchange/src/lib/exchange_async.h trunk/PROTO/exchange/src/lib/exchange_local_theme.c trunk/PROTO/exchange/src/lib/exchange_login.c trunk/PROTO/exchange/src/lib/exchange_remote_theme.c trunk/PROTO/exchange/src/lib/exchange_theme_group.c Modified: trunk/PROTO/exchange/configure.ac =================================================================== --- trunk/PROTO/exchange/configure.ac 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/configure.ac 2010-07-04 06:59:03 UTC (rev 50020) @@ -70,6 +70,14 @@ AM_CONDITIONAL([BUILD_ETK], [test "x${enable_etk}" = "xyes"]) AM_CONDITIONAL([BUILD_EWL], [test "x${enable_ewl}" = "xyes"]) +EFL_EXCHANGE_BUILD="" +case "$host_os" in + mingw*) + EFL_EXCHANGE_BUILD="-DEFL_EXCHANGE_BUILD" + ;; +esac +AC_SUBST(EFL_EXCHANGE_BUILD) + AC_OUTPUT([ exchange.pc Makefile Modified: trunk/PROTO/exchange/src/lib/Exchange.h =================================================================== --- trunk/PROTO/exchange/src/lib/Exchange.h 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/Exchange.h 2010-07-04 06:59:03 UTC (rev 50020) @@ -47,6 +47,7 @@ */ #include <libxml/parser.h> +#include <Ecore_File.h> #include <Edje.h> #ifdef EAPI Modified: trunk/PROTO/exchange/src/lib/Makefile.am =================================================================== --- trunk/PROTO/exchange/src/lib/Makefile.am 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/Makefile.am 2010-07-04 06:59:03 UTC (rev 50020) @@ -3,10 +3,11 @@ AM_CPPFLAGS = -Wall \ -I. \ -I$(top_srcdir)/src/lib \ -@EXCHANGE_CFLAGS@ \ -DPACKAGE_BIN_DIR=\"$(bindir)\" \ -DPACKAGE_LIB_DIR=\"$(libdir)\" \ --DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" +-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ +@EFL_EXCHANGE_BUILD@ \ +@EXCHANGE_CFLAGS@ lib_LTLIBRARIES = libexchange.la Modified: trunk/PROTO/exchange/src/lib/exchange.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -20,8 +20,9 @@ # include <config.h> #endif -#include "Ecore.h" -#include "Ecore_File.h" +#include <Ecore.h> +#include <Ecore_File.h> + #include "Exchange.h" #include "exchange_private.h" Modified: trunk/PROTO/exchange/src/lib/exchange_async.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_async.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_async.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -22,6 +22,12 @@ #include <stdlib.h> #include <string.h> +#ifdef _MSC_VER +# include <io.h> +#else +# include <unistd.h> +#endif + #include <Ecore_File.h> #include "Exchange.h" Modified: trunk/PROTO/exchange/src/lib/exchange_async.h =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_async.h 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_async.h 2010-07-04 06:59:03 UTC (rev 50020) @@ -19,8 +19,6 @@ #ifndef _EXCHANGE_THEMES_ASYNC_H #define _EXCHANGE_THEMES_ASYNC_H -#include <Ecore_File.h> - /** * @file exchange_async.h * @brief This file contains the function exchange_remote_list Modified: trunk/PROTO/exchange/src/lib/exchange_local_theme.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_local_theme.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_local_theme.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -21,7 +21,9 @@ #endif #include <string.h> + #include <Ecore_File.h> + #include "Exchange.h" #include "exchange_private.h" Modified: trunk/PROTO/exchange/src/lib/exchange_login.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_login.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_login.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -21,6 +21,7 @@ #endif #include <string.h> + #include "Exchange.h" xmlSAXHandler LoginParser = { Modified: trunk/PROTO/exchange/src/lib/exchange_remote_theme.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_remote_theme.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_remote_theme.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -21,6 +21,7 @@ #endif #include <string.h> + #include "Exchange.h" #include "exchange_private.h" Modified: trunk/PROTO/exchange/src/lib/exchange_theme_group.c =================================================================== --- trunk/PROTO/exchange/src/lib/exchange_theme_group.c 2010-07-04 06:23:41 UTC (rev 50019) +++ trunk/PROTO/exchange/src/lib/exchange_theme_group.c 2010-07-04 06:59:03 UTC (rev 50020) @@ -21,6 +21,7 @@ #endif #include <string.h> + #include "Exchange.h" xmlSAXHandler ThemeGroupParser = { |