root/gs2-extensions/xpdf-tools/trunk/src/gs3-setup.bat @ 32256

Revision 32227, 1.7 KB (checked in by ak19, 12 months ago)

First attempt at compiling up xpdf-tools and the cmake that it needs. Haven't yet tried compiling against the FreeType?, libpng and zlib libraries needed for xpdf-tools, but at present the compile sequence runs successfully to completion and generates the binaries in the trunk/src/linux/bin folder.

  • Property svn:executable set to *
Line 
1@echo off
2pushd "%CD%"
3CD /D "%~dp0"
4
5set extdesc=the Xpdf-Tools Extension
6
7if "%OS%" == "Windows_NT" goto WinNT
8if "%OS%" == "" goto Win95
9if "%GSDLLANG%" == "en" echo Setup failed - your PATH has not been set
10if "%GSDLLANG%" == "es" echo No se pudo realizar la configuraci¢n - no se ha establecido la RUTA.
11if "%GSDLLANG%" == "fr" echo Ech‚c de l'installation - votre variable PATH n'a pas ‚t‚ ajust‚e
12if "%GSDLLANG%" == "ru" echo “áâ ­®¢ª  ­¥ ã€ « áì - “’œ ­¥ ¡ë« ãáâ ­®¢«¥­
13goto End
14
15:WinNT
16set GEXT_XPDFTOOLS=%CD%
17set PATH=%GEXT_XPDFTOOLS%\bin\script;%PATH%
18set PATH=%GEXT_XPDFTOOLS%\bin\windows;%PATH%
19set PATH=%GEXT_XPDFTOOLS%\lib;%PATH%
20set GS_CP_SET=yes
21goto Success
22
23:Win95
24if "%1" == "SetEnv" goto Win95Env
25REM We'll invoke a second copy of the command processor to make
26REM sure there's enough environment space
27COMMAND /E:2048 /K %0 SetEnv
28goto End
29
30:Win95Env
31set GEXT_XPDFTOOLS=%CD%
32set PATH="%GEXT_XPDFTOOLS%\bin\script";"%PATH%"
33set PATH="%GEXT_XPDFTOOLS%\bin\windows";"%PATH%"
34set PATH="%GEXT_XPDFTOOLS%\lib";"%PATH%"
35set GS_CP_SET=yes
36goto Success
37
38:Success
39
40set fulldir=%~dp0
41
42:: strip off everything up to (and including) ext dir
43set extdir=%fulldir:*ext\=%
44
45:: remove trailing slash
46set extdir=%extdir:\=%
47
48setlocal enabledelayedexpansion
49if "x%GSDL3EXTS%" == "x" (
50  set GSDL3EXTS=!extdir!
51) else (
52  set GSDL3EXTS=!GSDL3EXTS!:!extdir!
53)
54endlocal & set GSDL3EXTS=%GSDL3EXTS%
55
56echo +Your environment is now setup for %extdesc%
57
58:: Back to delayed expansion to avoid problems with environment
59:: variables with brackets in them, such as "Program Files (x86)"
60
61
62:End
63
64popd
Note: See TracBrowser for help on using the browser.