diff options
author | marha <marha@users.sourceforge.net> | 2012-10-30 15:11:32 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-10-30 15:11:32 +0100 |
commit | 5bda4b6582522d21b15d62c5c76c71104e924cbc (patch) | |
tree | 93089bb5cb06e8ffb6ef666ee8eb91a614cba4f0 /xorg-server | |
parent | 33d29586bf3a280e821e0bf62694492dba459dab (diff) | |
download | vcxsrv-5bda4b6582522d21b15d62c5c76c71104e924cbc.tar.gz vcxsrv-5bda4b6582522d21b15d62c5c76c71104e924cbc.tar.bz2 vcxsrv-5bda4b6582522d21b15d62c5c76c71104e924cbc.zip |
Now create a seperate installer for the debug exe and dlls
Diffstat (limited to 'xorg-server')
-rw-r--r-- | xorg-server/glx/glxdricommon.c | 4 | ||||
-rw-r--r-- | xorg-server/hw/xwin/swrastwgl_dri/makefile | 7 | ||||
-rw-r--r-- | xorg-server/installer/packageall.bat | 16 | ||||
-rw-r--r-- | xorg-server/installer/vcxsrv-debug.nsi | 86 | ||||
-rw-r--r-- | xorg-server/installer/vcxsrv.nsi | 64 | ||||
-rw-r--r-- | xorg-server/makefile | 98 |
6 files changed, 122 insertions, 153 deletions
diff --git a/xorg-server/glx/glxdricommon.c b/xorg-server/glx/glxdricommon.c index 5e299b8d0..43b5e5b5f 100644 --- a/xorg-server/glx/glxdricommon.c +++ b/xorg-server/glx/glxdricommon.c @@ -232,11 +232,7 @@ glxProbeDriver(const char *driverName, const __DRIextension **extensions; #ifdef _MSC_VER -#ifdef _DEBUG -#define DLLNAME "%s%s_dri_dbg.dll" -#else #define DLLNAME "%s%s_dri.dll" -#endif snprintf(filename, sizeof filename, DLLNAME, dri_driver_path, driverName); diff --git a/xorg-server/hw/xwin/swrastwgl_dri/makefile b/xorg-server/hw/xwin/swrastwgl_dri/makefile index ebdda1cd5..7a389db7f 100644 --- a/xorg-server/hw/xwin/swrastwgl_dri/makefile +++ b/xorg-server/hw/xwin/swrastwgl_dri/makefile @@ -3,11 +3,8 @@ SHAREDLIB = swrastwgl_dri INCLUDES += $(OBJDIR) ..\..\.. .. DEFINES += INSERVER HAVE_XWIN_CONFIG_H PTW32_STATIC_LIB -ifeq ($(DEBUG),1) -LINKLIBS += ..\..\..\obj\servdebug\vcxsrv_dbg.lib -else -LINKLIBS += ..\..\..\obj\servrelease\vcxsrv.lib -endif +$(OBJDIR)\swrastwgl_dri.dll : ..\..\..\$(SERVOBJDIR)\vcxsrv.exe +LINKLIBS += ..\..\..\$(SERVOBJDIR)\vcxsrv.lib CSRCS = swrastwgl_dri.c glwrap.c wgl_ext_api.c diff --git a/xorg-server/installer/packageall.bat b/xorg-server/installer/packageall.bat index 0aa098086..720c29893 100644 --- a/xorg-server/installer/packageall.bat +++ b/xorg-server/installer/packageall.bat @@ -1,21 +1,13 @@ @echo off
-if exist vcxsrv.*.installer.exe del vcxsrv.*.installer.exe
-if "%VS2008%"=="1" goto vs2008
+if exist vcxsrv*.installer.exe del vcxsrv*.installer.exe
copy %systemroot%\system32\msvcr100.dll
copy %systemroot%\system32\msvcp100.dll
copy %systemroot%\system32\msvcr100d.dll
+copy %systemroot%\system32\msvcp100d.dll
"C:\Program Files\NSIS\makensis.exe" vcxsrv.nsi
+"C:\Program Files\NSIS\makensis.exe" vcxsrv-debug.nsi
del msvcr100.dll
del msvcr100d.dll
del msvcp100.dll
-
-goto end
-:vs2008
-
-python genruntimeinclude.py
-"C:\Program Files\NSIS\makensis.exe" /DVS2008=1 vcxsrv.nsi
-del runtime
-
-:end
-
+del msvcp100d.dll
diff --git a/xorg-server/installer/vcxsrv-debug.nsi b/xorg-server/installer/vcxsrv-debug.nsi new file mode 100644 index 000000000..be435a14f --- /dev/null +++ b/xorg-server/installer/vcxsrv-debug.nsi @@ -0,0 +1,86 @@ +/* This file is part of vcxsrv.
+ *
+ * Copyright (C) 2009 Marc Haesen
+ *
+ * vcxsrv 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 3 of the License, or
+ * (at your option) any later version.
+ *
+ * vcxsrv 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 vcxsrv. If not, see <http://www.gnu.org/licenses/>.
+*/
+;--------------------------------
+
+; The name of the installer
+Name "VcXsrv"
+
+; The file to write
+OutFile "vcxsrv-debug.1.13.0.0.installer.exe"
+
+; The default installation directory
+InstallDir $PROGRAMFILES\VcXsrv
+
+; Registry key to check for directory (so if you install again, it will
+; overwrite the old one automatically)
+InstallDirRegKey HKLM "Software\VcXsrv" "Install_Dir"
+
+; Request application privileges for Windows Vista
+RequestExecutionLevel admin
+
+;--------------------------------
+InstType "Full"
+
+; Pages
+
+Page components
+Page directory
+Page instfiles
+
+UninstPage uninstConfirm
+UninstPage instfiles
+
+SetPluginUnload alwaysoff
+; ShowInstDetails show
+XPStyle on
+
+!define FUSION_REFCOUNT_UNINSTALL_SUBKEY_GUID {8cedc215-ac4b-488b-93c0-a50a49cb2fb8}
+
+;--------------------------------
+; The stuff to install
+Section "VcXsrv debug exe and dlls"
+
+ SectionIn RO
+ SectionIn 1
+
+ ; Set output path to the installation directory.
+ SetOutPath $INSTDIR
+
+ ; Put files there
+ File "..\obj\servdebug\vcxsrv.exe"
+ File "..\..\xkbcomp\obj\debug\xkbcomp.exe"
+ File "..\..\apps\xhost\obj\debug\xhost.exe"
+ File "..\..\apps\xauth\obj\debug\xauth.exe"
+ File "..\..\apps\xcalc\obj\debug\xcalc.exe"
+ File "..\..\apps\xclock\obj\debug\xclock.exe"
+ File "..\..\apps\xwininfo\obj\debug\xwininfo.exe"
+ File "..\hw\xwin\xlaunch\obj\debug\xlaunch.exe"
+ File "..\..\tools\plink\obj\debug\plink.exe"
+ File "..\..\mesalib\windows\VC8\mesa\Debug\swrast_dri.dll"
+ File "..\hw\xwin\swrastwgl_dri\obj\debug\swrastwgl_dri.dll"
+ File "..\..\dxtn\obj\debug\dxtn.dll"
+ File "..\..\zlib\obj\debug\zlib1.dll"
+ File "..\..\libxcb\src\obj\debug\libxcb.dll"
+ File "..\..\libXau\obj\debug\libXau.dll"
+ File "..\..\libX11\obj\debug\libX11.dll"
+ File "..\..\libXext\src\obj\debug\libXext.dll"
+ File "..\..\libXmu\src\obj\debug\libXmu.dll"
+ File "msvcr100d.dll"
+ File "msvcp100d.dll"
+
+SectionEnd
diff --git a/xorg-server/installer/vcxsrv.nsi b/xorg-server/installer/vcxsrv.nsi index 90ec32560..cb031cb52 100644 --- a/xorg-server/installer/vcxsrv.nsi +++ b/xorg-server/installer/vcxsrv.nsi @@ -36,7 +36,6 @@ RequestExecutionLevel admin ;--------------------------------
InstType "Full"
InstType "Minimal"
-InstType "Full with Debug"
; Pages
@@ -69,27 +68,27 @@ Section "VcXsrv (required)" ; Put files there
File "..\obj\servrelease\vcxsrv.exe"
- File "..\protocol.txt"
+ File "..\dix\protocol.txt"
File "..\system.XWinrc"
File "..\..\xkbcomp\obj\release\xkbcomp.exe"
File "..\..\apps\xhost\obj\release\xhost.exe"
File "..\..\apps\xauth\obj\release\xauth.exe"
File "..\..\apps\xcalc\obj\release\xcalc.exe"
- File "..\xcalc"
- File "..\xcalc-color"
+ File "..\..\apps\xcalc\app-defaults\xcalc"
+ File "..\..\apps\xcalc\app-defaults\xcalc-color"
File "..\..\apps\xclock\obj\release\xclock.exe"
- File "..\xclock"
- File "..\xclock-color"
+ File "..\..\apps\xclock\app-defaults\xclock"
+ File "..\..\apps\xclock\app-defaults\xclock-color"
File "..\..\apps\xwininfo\obj\release\xwininfo.exe"
File "..\XKeysymDB"
- File "..\XErrorDB"
+ File "..\..\libX11\src\XErrorDB"
File "..\XtErrorDB"
File "..\.Xdefaults"
File "..\hw\xwin\xlaunch\obj\release\xlaunch.exe"
File "..\..\tools\plink\obj\release\plink.exe"
- File "..\swrast_dri.dll"
- File "..\swrastwgl_dri.dll"
- File "..\dxtn.dll"
+ File "..\..\mesalib\windows\VC8\mesa\Release\swrast_dri.dll"
+ File "..\hw\xwin\swrastwgl_dri\obj\release\swrastwgl_dri.dll"
+ File "..\..\dxtn\obj\release\dxtn.dll"
File "..\..\libxml2\bin\libxml2.dll"
File "..\..\zlib\obj\release\zlib1.dll"
File "..\..\libxcb\src\obj\release\libxcb.dll"
@@ -116,7 +115,7 @@ Section "VcXsrv (required)" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VcXsrv" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VcXsrv" "NoRepair" 1
WriteUninstaller "uninstall.exe"
-
+
; Register the xlaunch file extension
WriteRegStr HKCR ".xlaunch" "" "XLaunchFile"
WriteRegStr HKCR "XLaunchFile" "" "XLaunch Configuration"
@@ -178,43 +177,6 @@ Section "Desktop Shortcuts" SectionEnd
;--------------------------------
-; Optional debug libraries
-Section "VcXsrv debug version" VcXsrv_debug_version
- SectionIn 3
-
- ; Set output path to the installation directory.
- SetOutPath $INSTDIR
-
- ; Put files there
- File "..\obj\servdebug\vcxsrv_dbg.exe"
- File "..\obj\servdebug\vcxsrv_dbg.pdb"
- File "..\swrast_dri_dbg.dll"
- File "..\swrastwgl_dri_dbg.dll"
- File "..\dxtn_dbg.dll"
- File "msvcr100d.dll"
-
-SectionEnd
-
-Section -removedbg
- SectionGetFlags ${VcXsrv_debug_version} $0
- IntCmp $0 0 nodebug done done
- nodebug:
- IfFileExists "$INSTDIR\vcxsrv_dbg.exe" 0 +2
- Delete "$INSTDIR\vcxsrv_dbg.exe"
- IfFileExists "$INSTDIR\vcxsrv_dbg.pdb" 0 +2
- Delete "$INSTDIR\vcxsrv_dbg.pdb"
- IfFileExists "$INSTDIR\swrast_dri_dbg.dll" 0 +2
- Delete "$INSTDIR\swrast_dri_dbg.dll"
- IfFileExists "$INSTDIR\swrastwgl_dri_dbg.dll" 0 +2
- Delete "$INSTDIR\swrastwgl_dri_dbg.dll"
- IfFileExists "$INSTDIR\dxtn_dbg.dll" 0 +2
- Delete "$INSTDIR\dxtn_dbg.dll"
- IfFileExists "$INSTDIR\msvcr100d.dll" 0 +2
- Delete "$INSTDIR\msvcr100d.dll"
- done:
-SectionEnd
-
-;--------------------------------
; Uninstaller
@@ -231,8 +193,6 @@ Section "Uninstall" ; Remove files and uninstaller
Delete "$INSTDIR\vcxsrv.exe"
- Delete "$INSTDIR\vcxsrv_dbg.exe"
- Delete "$INSTDIR\vcxsrv_dbg.pdb"
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\protocol.txt"
Delete "$INSTDIR\system.XWinrc"
@@ -251,11 +211,8 @@ Section "Uninstall" Delete "$INSTDIR\xlaunch.exe"
Delete "$INSTDIR\plink.exe"
Delete "$INSTDIR\swrast_dri.dll"
- Delete "$INSTDIR\swrast_dri_dbg.dll"
Delete "$INSTDIR\dxtn.dll"
- Delete "$INSTDIR\dxtn_dbg.dll"
Delete "$INSTDIR\swrastwgl_dri.dll"
- Delete "$INSTDIR\swrastwgl_dri_dbg.dll"
Delete "$INSTDIR\libxcb.dll"
Delete "$INSTDIR\libXau.dll"
Delete "$INSTDIR\libX11.dll"
@@ -267,6 +224,7 @@ Section "Uninstall" Delete "$INSTDIR\msvcr100.dll"
Delete "$INSTDIR\msvcp100.dll"
Delete "$INSTDIR\msvcr100d.dll"
+ Delete "$INSTDIR\msvcp100d.dll"
RMDir /r "$INSTDIR\fonts"
RMDir /r "$INSTDIR\xkbdata"
diff --git a/xorg-server/makefile b/xorg-server/makefile index 55fbd6ef8..6b8ec305f 100644 --- a/xorg-server/makefile +++ b/xorg-server/makefile @@ -52,15 +52,13 @@ load_makefile $(NOSERVLIBDIRS:%$(NOSERVOBJDIR)\=%makefile MAKESERVER=0 DEBUG=$(D OBJS = dix\$(OBJDIR)\main.obj ifeq ($(DEBUG),1) -TTYAPP=vcxsrv_dbg +TTYAPP=vcxsrv APP:=$(TTYAPP) LINKLIBS += $(MHMAKECONF)\openssl\out32_d\libeay32.lib \ $(MHMAKECONF)\freetype\lib\freetype2410MT_D.lib \ $(MHMAKECONF)\pthreads\pthreadVC2d.lib -$(OBJDIR)\$(TTYAPP).exe: $(LINKLIBS) - else WINAPP=vcxsrv APP:=$(WINAPP) @@ -80,87 +78,29 @@ RESOURCES = XWin.rc $(OBJDIR)\$(APP).exe: $(LINKLIBS) -XErrorDB: ..\libX11\src\XErrorDB - copy $< $@ - -%.exe: $(OBJDIR)\%.exe - copy $< $@ - -load_makefile hw\xwin\xlaunch\makefile MAKESERVER=0 DEBUG=0 -xlaunch.exe: hw\xwin\xlaunch\obj\release\xlaunch.exe - copy $< $@ - -load_makefile ..\xkbcomp\makefile MAKESERVER=0 DEBUG=0 -xkbcomp.exe: ..\xkbcomp\obj\release\xkbcomp.exe - copy $< $@ - -%: ..\apps\xcalc\app-defaults\% - copy $< $@ - -load_makefile ..\apps\xcalc\makefile MAKESERVER=0 DEBUG=0 -xcalc.exe: ..\apps\xcalc\obj\release\xcalc.exe XCalc XCalc-color - copy $< $@ - -%: ..\apps\xclock\app-defaults\% - copy $< $@ - -load_makefile ..\apps\xclock\makefile MAKESERVER=0 DEBUG=0 -xclock.exe: ..\apps\xclock\obj\release\xclock.exe XClock XClock-color - copy $< $@ - -load_makefile ..\apps\xwininfo\makefile MAKESERVER=0 DEBUG=0 -xwininfo.exe: ..\apps\xwininfo\obj\release\xwininfo.exe - copy $< $@ - -load_makefile ..\apps\xhost\makefile MAKESERVER=0 DEBUG=0 -xhost.exe: ..\apps\xhost\obj\release\xhost.exe - copy $< $@ - -load_makefile ..\apps\xauth\makefile MAKESERVER=0 DEBUG=0 -xauth.exe: ..\apps\xauth\obj\release\xauth.exe - copy $< $@ - -load_makefile ..\tools\plink\makefile MAKESERVER=0 DEBUG=0 -plink.exe: ..\tools\plink\obj\release\plink.exe - copy $< $@ - load_makefile fonts.src\makefile MAKESERVER=0 DEBUG=0 load_makefile xkeyboard-config\makefile MAKESERVER=0 DEBUG=0 -all: $(APP).exe xlaunch.exe xkbcomp.exe protocol.txt XErrorDB xhost.exe xauth.exe \ - fonts.src\all xkeyboard-config\all plink.exe xclock.exe xcalc.exe \ - xwininfo.exe swrast_dri_dbg.dll swrast_dri.dll dxtn.dll dxtn_dbg.dll \ - swrastwgl_dri.dll swrastwgl_dri_dbg.dll - - -load_makefile ..\mesalib\windows\VC8\mesa\makefile MAKESERVER=0 DEBUG=0 -swrast_dri.dll: ..\mesalib\windows\VC8\mesa\Release\swrast_dri.dll - copy $< $@ - -swrast_dri_dbg.dll: ..\mesalib\windows\VC8\mesa\Debug\swrast_dri.dll - copy $< $@ - -load_makefile hw\xwin\swrastwgl_dri\makefile MAKESERVER=0 DEBUG=0 -swrastwgl_dri.dll: hw\xwin\swrastwgl_dri\obj\release\swrastwgl_dri.dll - copy $< $@ - -load_makefile hw\xwin\swrastwgl_dri\makefile MAKESERVER=0 DEBUG=1 -swrastwgl_dri_dbg.dll: hw\xwin\swrastwgl_dri\obj\debug\swrastwgl_dri.dll - copy $< $@ - +EXTRASTOBUILD = \ + hw\xwin\xlaunch\$(NOSERVOBJDIR)\xlaunch.exe \ + ..\xkbcomp\$(NOSERVOBJDIR)\xkbcomp.exe \ + ..\apps\xcalc\$(NOSERVOBJDIR)\xcalc.exe \ + ..\apps\xclock\$(NOSERVOBJDIR)\xclock.exe \ + ..\apps\xwininfo\$(NOSERVOBJDIR)\xwininfo.exe \ + ..\apps\xhost\$(NOSERVOBJDIR)\xhost.exe \ + ..\apps\xauth\$(NOSERVOBJDIR)\xauth.exe \ + ..\tools\plink\$(NOSERVOBJDIR)\plink.exe \ + hw\xwin\swrastwgl_dri\$(NOSERVOBJDIR)\swrastwgl_dri.dll \ + ..\dxtn\$(NOSERVOBJDIR)\dxtn.dll -load_makefile ..\dxtn\makefile MAKESERVER=0 DEBUG=0 -dxtn.dll: ..\dxtn\obj\release\dxtn.dll - copy $< $@ +EXTRASTOBUILDDIRS=$(dir $(EXTRASTOBUILD)) -load_makefile ..\dxtn\makefile MAKESERVER=0 DEBUG=1 -dxtn_dbg.dll: ..\dxtn\obj\debug\dxtn.dll - copy $< $@ +load_makefile $(EXTRASTOBUILDDIRS:%$(NOSERVOBJDIR)\=%makefile MAKESERVER=0 DEBUG=$(DEBUG);) +all: $(EXTRASTOBUILD) -mesaopengl32.dll: ..\mesalib\lib\mesaopengl32.dll - copy $< $@ - -protocol.txt: dix\protocol.txt - copy $< $@ +BASEOBJDIR=$(NOSERVOBJDIR:obj\%=%) +load_makefile ..\mesalib\windows\VC8\mesa\makefile MAKESERVER=0 DEBUG=$(DEBUG) +all: ..\mesalib\windows\VC8\mesa\$(BASEOBJDIR)\swrast_dri.dll +all: fonts.src\all xkeyboard-config\all |