]> source.dussan.org Git - tigervnc.git/commitdiff
Adapt Windows viewer to new build system.
authorAdam Tkac <atkac@redhat.com>
Fri, 4 Sep 2009 13:19:19 +0000 (13:19 +0000)
committerAdam Tkac <atkac@redhat.com>
Fri, 4 Sep 2009 13:19:19 +0000 (13:19 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/unified_buildsys@3895 3789f03b-4d11-0410-bbf8-ca57d06f2519

configure.ac
win/Makefile.am
win/configure.ac [deleted file]
win/rfb_win32/Makefile.am
win/vncviewer/Makefile.am

index d395c89b3bc815d13007f28cb6e3025956c08ea9..ce740990c9b38c3f1f99a2837e5d961b4cc74d55 100644 (file)
@@ -37,6 +37,7 @@ mingw*)
        CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
        CXXFLAGS="$CXXFLAGS -mthreads"
        BUILD_WIN=yes
+       AC_CHECK_TOOL([WINDRES], windres, [AC_MSG_ERROR(windres not found)])
        ;;
 esac
 AM_CONDITIONAL([BUILD_WIN], [test "x$BUILD_WIN" = xyes])
@@ -156,4 +157,7 @@ unix/x0vncserver/Makefile
 unix/vncviewer/Makefile
 unix/vncconfig/Makefile
 unix/vncpasswd/Makefile
+win/Makefile
+win/vncviewer/Makefile
+win/rfb_win32/Makefile
 ])
index d81086d42d1d3f76ce4d910529b8944078b0edac..945e4e8e2ebb8654dbbf242ea3c0152921f9a087 100644 (file)
@@ -1,2 +1,2 @@
-SUBDIRS = ../common rfb_win32 vncviewer
+SUBDIRS = rfb_win32 vncviewer
 
diff --git a/win/configure.ac b/win/configure.ac
deleted file mode 100644 (file)
index e9e0c40..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ([2.57])
-AC_INIT([tigervnc], [0.0.91], [http://www.tigervnc.org])
-AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
-
-AC_SUBST([COMMON_DIR], ['$(top_srcdir)/../common'])
-
-AC_CONFIG_SUBDIRS([../common])
-
-dnl Checks for programs.
-AC_PROG_CC
-AC_PROG_CXX
-AC_PROG_LIBTOOL
-AC_CHECK_TOOL([WINDRES], windres, [AC_MSG_ERROR(windres not found)])
-AC_LANG([C++])
-
-if test "$GCC" = yes; then
-  CFLAGS="$CFLAGS -Wall"
-fi
-if test "$GXX" = yes; then
-  CXXFLAGS="$CXXFLAGS -Wall"
-fi
-
-CPPFLAGS="$CPPFLAGS -DWINVER=0x0500 -D_WIN32_IE=0x0500"
-CXXFLAGS="$CXXFLAGS -mthreads"
-
-AC_PATH_XTRA
-
-AC_OUTPUT(Makefile
-         vncviewer/Makefile
-        rfb_win32/Makefile
-)
index e1e9c7c4404d95c5f3430664840c1c3cf6d8a0ef..7c5d1c54347953714b9bf585e46ad0b5405ce2e0 100644 (file)
@@ -99,5 +99,5 @@ librfb_win32_la_SOURCES = $(HDRS) \
   WMShatter.cxx \
   WMWindowCopyRect.cxx
 
-librfb_win32_la_CPPFLAGS = -I$(top_srcdir) -I$(COMMON_DIR)
+librfb_win32_la_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win
 librfb_win32_la_LIBADD =
index dddef27b082ff2d4fbfcf25ace873ddbda6a1a3b..201f1e13b61b2e047c7a77e2451525d032bea36b 100644 (file)
@@ -30,13 +30,13 @@ vncviewer_SOURCES = $(HDRS) \
   ViewerToolBar.cxx \
   vncviewer.cxx
 
-vncviewer_CPPFLAGS = -I$(COMMON_DIR) -I$(top_srcdir)
+vncviewer_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win
 
-vncviewer_LDADD = $(COMMON_DIR)/rfb/librfb.la \
-    $(top_srcdir)/rfb_win32/librfb_win32.la \
-    $(COMMON_DIR)/Xregion/libXregion.la \
-    $(COMMON_DIR)/network/libnetwork.la \
-    $(COMMON_DIR)/rdr/librdr.la \
+vncviewer_LDADD = $(top_srcdir)/common/rfb/librfb.la \
+    $(top_srcdir)/win/rfb_win32/librfb_win32.la \
+    $(top_srcdir)/common/Xregion/libXregion.la \
+    $(top_srcdir)/common/network/libnetwork.la \
+    $(top_srcdir)/common/rdr/librdr.la \
     resources.o -lws2_32 -lgdi32 -luser32 -lcomctl32 -lversion -lcomdlg32
 
 vncviewer_LDFLAGS = -I$(top_srcdir)/win -mwindows