summaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2012-04-11Fix make clean for GhostPDL.Marcos H. Woehrmann1-1/+5
2012-03-09Fix Memento GhostPDL builds to actually build Memento on windows.Robin Watts1-0/+2
Windows makefiles were failing to pass the MEMENTO flag down due to some makefile wackiness. CLUSTER_UNTESTED.
2012-02-12PCL shared library build for unix.Henry Stiles1-1/+13
2012-01-31Have plver.mak use Ghostscript version.mak version numberChris Liddell1-0/+1
No (significant) cluster differences.
2012-01-10Change default cms to be lcms2 (for non-windows builds)Robin Watts1-1/+1
Forgot to change the unix builds. Expect lots of small changes in the cluster.
2011-09-29Add Memento targets to unix/autoconf makefiles.Robin Watts1-0/+4
Add new targets to unix makefiles (pcl-memento, xps-memento etc) that build executables into memobj. Parallels the work done with the windows builds.
2011-09-05Add Memento configuration to Visual Studio projects (and gs makefile)Robin Watts1-0/+5
When swapping between memento and non-memento builds, a complete rebuild is required due to the pervasive nature of the memento defines. As such it makes sense to have it as a separate configuration in the project. Memento directories are named 'memobj', 'memobj64', 'membin' etc in keeping with 'debugobj', and 'profobj' etc. Also, take the opportunity to fix a couple of small things in the visual studio files. Firstly, the 64 bit profile build targets were incorrect (weren't setting paths etc). Secondly, we remove the use of nmake /A for the rebuild step, and instead rely on an explicit clean call, then a rebuild; this means we get consistent results for a rebuild compared to a clean then a build. As part of this work, we add logic to the (MSVC) makefiles to detect MEMENTO=1 and PROFILE=1. If set, these change the default DEBUG, TDEBUG and DEBUGSYM flags as appropriate, and change the default output directory names. This keeps the invocations from Visual Studio sane (as I found lots of mistakes in them as I looked through). Also fix some places where we were failing to set and pass on BINDIR/PSOBJDIR resulting in stray directories being created. CLUSTER_UNTESTED
2011-08-16Missed a couple of files that should have been changed as part of the ↵Marcos H. Woehrmann1-2/+2
previous commit.
2011-07-06Bug 692318: Ensure that compiler flags are used for the "aux" files.Chris Liddell1-2/+2
For a normal host build, the build tools (genarch, genconf etc) should be built with the same compiler flags as Ghostscript/Ghost*. In this case the integer type used for encoded color values was not getting used when compiling genarch. Also, add a warning when tiffsep does have to skip one or more plates, with a pointer to the relevant documentation. Lastly, update the doc to reflect that the contone preview output may not be as expected if the job uses overprint. No cluster differences expected.
2011-06-24Fix 'aux' cluster breakages. Move aux into obj.Robin Watts2-6/+6
Move aux directories into the appropriate obj directories. Makes cleaning easier, and is neater overall. Also fix some unrelated problems with cleaning in the msvc builds.
2011-06-23Cross compilation (AUX) changes to ghostscript and ghostpdl.Robin Watts4-28/+45
Introduce a new 'aux' directory and appropriate defines to allow easier cross-compilation of gs/ghostpdl.
2011-05-19Make directories silently.Henry Stiles1-4/+4
The previous mkdir incantantation had unwanted warning messages if the directory already existed. Thanks to Norbert Janssen for the patch. CLUSTER_UNTESTED
2011-04-01Initial import of LittleCMS v2.1 into the Ghostscript/GhostPDLRobin Watts2-1/+8
build, with simple integration. LittleCMS version 1 is still used by default, so no cluster differences expected. The version of little cms imported was taken from the lcms git repository, commit 314bc7201d340ab303b36a0ade2c37cf40b83a3b, and then a couple of small tweaks were applied: * lcms2 currently offers no way to get the input/output format for a transform, so I add 2 functions (cmsGetTransformInputFormat and cmsGetTransformOutputFormat) to do this. * lcms2 currently offers no easy way to redirect malloc/free operations away from it's internal implementation, so we add a define (LCMS_USER_ALLOC) to allow us to be able to define our own functions. This mirrors the work done in lcms1 by Michael, I believe. The choice of which version of lcms to build with is made by the WHICH_CMS define option in the makefile. Currently this is set to lcms by default, but can be changed to lcms2 to allow lcms2 to be used instead. To make this work, various small tweaks have been required. Firstly, we rename gsicc_littlecms.h to gsicc_cms.h, reflecting the fact that this is not littlecms specific - rather, it defines the interface that any cms would have to provide in order to work with Ghostscript/GhostPDL. Secondly, we rename gsicc_littlecms.c to gsicc_lcms.c to make the makefile macros easier. We add a gsicc_lcms2.c file (derived from copying and editing gsicc_lcms.c) that interfaces with lcms2. Currently lcms2 builds and appears to run without crashing, but gives differing results in some cases. This will need to be solved before we can swap over to using lcms2 by default. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12340 a1074d23-0009-0410-80fe-cf8c14f379e6
2011-03-24Resolve build issues with language_switch and UFST.Chris Liddell1-4/+4
I had (wrongly) assumed that the PCL/language_switch builds with UFST and COMPILE_INITS=1 would have the relevant paths correctly setup for the PS/PDF world to access the Microtype FCOs. It turns out they are done in an incompatible manner. So, I've renamed the path variables (in the makefiles) so there isn't a clash between PCL and PS/PDF, ensured that the variables are correctly passed through recursive (n)make calls, and tidied up the FAPI options for the language_switch build. Not only does this allow language_switch to build with the UFST, but the Postscript interpreter does now use FAPI/UFST to access the Microtype fonts for the built-in fonts, and uses FAPI/Freetype for downloaded fonts. Bug 692093 No cluster differences expected. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12308 a1074d23-0009-0410-80fe-cf8c14f379e6
2011-01-22Fix the makefile changes for Windows display device on PCL6 when built on ↵Ken Sharp1-2/+2
Windows. This should now build on both Windows and non-Windows platforms. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12048 a1074d23-0009-0410-80fe-cf8c14f379e6
2011-01-21Modified makefile for the Windows PCL interpreter (and later other ↵Ken Sharp1-2/+2
languages) to use the Windows display device. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12042 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-12-22Add new top level GhostPDL makefile targets, pcl-lib, ls-lib, svg-lib, xps-libRobin Watts2-10/+14
and all-lib. These build the same as pcl, ls-product, svg, xps etc, except the final product is a library that offers pl_main() as its top level entrypoint. The sole piece of code that is NOT included in the libs that is included in the exes is a 1 line 'main()' veneer that just calls pl_main. No expected cluster differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11973 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-10-14Rename libpng.mak to png.mak to make it consistent with the otherChris Liddell1-2/+2
third part libraries. Bug 691681 No cluster differences expected. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11806 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-10-14Rename libtiff.mak to tiff.mak to be more consistent with the other third ↵Chris Liddell1-1/+1
party libs. Bug 691681 No cluster differences expected. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11803 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-10-13Add the merry band of tiff devices to pcl, pxl, & xps unix builds.Henry Stiles1-0/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11801 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-08-03Remove the mkromfs program upon make clean, fixes 691128.Henry Stiles1-0/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11593 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-06-29revert back to 11450.Henry Stiles1-2/+0
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11462 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-06-29Add the new LCMSPLATFORM definition to the Windows makefiles for non ↵Ken Sharp1-0/+2
PostScript PDLs. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11461 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-04-23Resolve issues with the Linux language_switch build of Ghostscript, since ↵Chris Liddell1-1/+1
Freetype enabled is now the default for GS. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11114 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-04-23Resolve issues with the language_switch Ghostscript build for Windows, since ↵Chris Liddell1-0/+3
Freetype enabled became the default for the normal GS build. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11113 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-02-17Remove harmless duplication of LCMSSRCDIR.Ray Johnston1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10766 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-02-17These files should have been included in revision 10762, see its logHenry Stiles2-2/+3
entry for details. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10764 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-01-22generate private copy of plver.h per language to allow parallel build, and ↵Hin-Tak Leung1-1/+0
remove reference to it in vcproj ; fixes bug 691061 git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10632 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-01-07Changes to the MSVC makefiles to prepare for the prototype vs2005 solutionRobin Watts1-0/+2
file. Firstly, we introduce an SBR symbol; if this is set when invoking the makefile, we add a new flag to the C compiler (held in SBRFLAGS) to cause the generation of the browse data for each source file. Next, we introduce a new bsc build target to combine those .sbr files into appropriate .bsc ones. The final change is enable debug builds to put their builds into debugobj rather than obj directories. With luck, this should cause no differences for anyone other than me. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10592 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-11-11GhostPDL makefile changes required to make GhostPDL targets make on msvc withRobin Watts1-0/+6
the new libtiff changes within gs. A couple of small changes to the gs makefiles are required too. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10318 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-10-03Remove pl/plver.h for make clean.Marcos H. Woehrmann1-0/+2
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10119 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-09-22Fix (build) : Incorrect path for Visual Studio 9 in make fileKen Sharp1-1/+1
Details When the variable MSVC_VERSION (set from the nmake version) is 9, the DEVSTUDIO variable, which contains a path used as the base to find the compiler and tools, was set to 'C:\Program Files\Microsoft Visual Studio 9' the correct default is in fact 'C:\Program Files\Microsoft Visual Studio 9.0' Expected differences None, but the build should work with Visual Studio 9 now. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10079 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-06-22debugging arguments were not being propagated to the gs library.Henry Stiles1-0/+2
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9815 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-03-19fixes 690280. Clean didn't remove all the configuration files. NB,Henry Stiles1-1/+3
the msvc build probably has similar omissions. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9569 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-01-15Add missing @ needed for UFST build.Ray Johnston1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9364 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-28Add a section for MSVC_VERSION 9 to msvcdefs.mak, which is used in ghostpdl ↵Tor Andersson1-0/+6
builds. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9039 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-23Fix a code separation issue: int.mak and psromfs.mak are in PSSRC.Ralph Giles2-2/+2
PSSRCDIR was also not on the include path for the psi code which references the interpreter source. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9021 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-08Massive commit discussed before the freeze to move the PostScript initializationRay Johnston1-1/+1
files to Resource/Init. This obviates the need for geninit when COMPILE_INITS=1. A followup change will enhance mkromfs to allow it to 'strip' comments and white space from PostScript input files somewhat reducing the compressed storage needed for the files in Resource/Init. All files mentioned in int.mak with 'ADDMOD ... -ps ...' are included as well as those that would have been included via gs_init.ps %% Replace lines. Builds tested on Windows and Cygwin for the various executables (gs, pcl6, pspcl6 and gxps). The default LIBPATH and GenericResourceDir are adjusted accordingly. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8954 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-02-29Fixes for COMPILE_INITS=1. Tested on Windows and linux with AFS and UFSTRay Johnston2-20/+26
font scalers. Note that this requires/expects gs rev 8558. As discussed with Henry, this does NOT currently fetch PCL fonts from the %rom%ttfonts/ path even though they are built into the rom filesystem. The code changes needed for this to work are too risky for this close to release. Also the language_switch build does not set the FontResourceDir as expected to %rom%Resource/Font/ even though the GenericResourceDir is set correctly to %rom%Resource/ which will be addressed separately. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3029 06663e23-700e-0410-b217-a244a6096597
2008-01-13Continue makefile refactoring (see rev 3004 log). This rev adds newHenry Stiles1-23/+25
'clean' targets. It includes a stylistic change where targets use hyphen instead of underscore (recommended by Ralph Giles). Documentation needs to be updated for the latter. The language switch build does not work with compile inits, it requires the romfs.dev to be done cleanly in gs, without circular dependencies. The language switch build does not work with the UFST without compile inits and apparently never has (not yet investigated). git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3010 06663e23-700e-0410-b217-a244a6096597
2008-01-09GS client makefile refactoring. The project is under development andHenry Stiles1-112/+46
should not be released. The important difference is the recursive make invocations of the gs lib (i.e. ugcclib.mak) makefile have been replaced with directly including the low level gs makefiles. Using this scheme the excessive number of makefile variables reguired to build gs can be set once and simply. The disadvantage is there is no longer a separate name space for client makefile targets. The following separate changes were made because it was a convenient time to do them: 1) XPS is now standalone (does not require) pcl 2) plimpl.c can be compiled to build all combinations of languages with modest supporting makefile changes. 3) Rampant duplication was reduced. pcl6_gcc.mak and pcl6_msvc.mak contain most of the options necessary for building the clients. xps and the language switch configurations need only customize a few of these make variables. TODO 1) clean does not work in any configuration. 2) more refactoring to remove duplication is needed. 3) compile_inits=1 does not yet work. 4) throw all of this nonsense away and use cmake. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3004 06663e23-700e-0410-b217-a244a6096597
2008-01-07continue USE_FPU/FPU_TYPE deprecation. This change removes makefileHenry Stiles2-13/+6
targets that have become unnecessary and the variable FPU_TYPE has been taken out. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3003 06663e23-700e-0410-b217-a244a6096597
2008-01-07Remove references to gsfemu.c from the various builds. It was removed inRalph Giles1-4/+4
ghostscript r8477. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3002 06663e23-700e-0410-b217-a244a6096597
2007-11-28CCAUX was not initialized properly on some platforms. This resultedHenry Stiles2-1/+3
in compliling genarch.c without the proper cpp flags. In particular, ARCH_SIZEOF_GX_COLOR_INDEX must be derived from the preprocessor definition for GX_COLOR_INDEX_TYPE if the rest of the code is compiled with the definition. Sigh, what a mess! git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2980 06663e23-700e-0410-b217-a244a6096597
2007-11-21Make the non DEBUG build the default for pcl6 with MSCV. Add theRay Johnston1-13/+18
missing parts needed to include the 'wtsimdi' device. Fix some formatting problems (spaces instead of tab) and add the support for including the gsromfs.obj module with PCL6 only build when COMPILE_INITS=1. NOTE: COMPILE_INITS=1 not yet functional on MSVC. This requires the gs/src/msvccmd.mak change for /Zi instead of /ZI as well (external tree means it must be a separate commit). git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2973 06663e23-700e-0410-b217-a244a6096597
2007-11-16Fix dependency problems that caused obj/gs_init.ps to be missed. Also fix aRay Johnston2-0/+6
typo that caused CMap files to be missing. DETAILS: This method of putting the gs_init.ps dependency down in lib.mak require us to get gs_init.ps. This hack was discussed with Ralph and is an alternative to adding a dependency to all of the top level makefiles. The dummy gs_init.ps is only made when we are NOT including the PS interpreter (PSI_INCLUDED) since we need the real one for the language switch build. Note that the dummy file doesn't get added to the %rom% file system since PS_ROMFS_ARGS is empty if int.mak is not included. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2963 06663e23-700e-0410-b217-a244a6096597
2007-11-15Continuing xps msvc makefile changes. xps\obj\gxps.exe now builds andHenry Stiles1-0/+3
runs. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2957 06663e23-700e-0410-b217-a244a6096597
2007-11-14rough draft windows makefiles for msvcHenry Stiles1-0/+4
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2955 06663e23-700e-0410-b217-a244a6096597
2007-11-14Add changes for building COMPILE_INITS=1 without PS (PCL only build). Make sureRay Johnston1-2/+7
gs/src/ugcclib.mak does conditional assignment of COMPILE_INITS. Fix main/pcl6_gcc.mak for UFST fco location when COMPILE_INITS=1. Add -ldl in (again) since it _is_ sometimes needed on modern linux. DETAILS: Most are explained above, but the -ldl is (almost) always there with gs builds since it is in the EXTRALIBS list, but main/pcl6_gcc.mak sets EXTRALIBS _before_ the gs/src/unixgcc.mak runs, so the EXTRALIBS in unixgcc.mak are ignored. This was needed on my ubuntu gutsy system but not Ralph's ???. It works fine on systems tested where it was not required. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2954 06663e23-700e-0410-b217-a244a6096597
2007-11-14Correct a typo in the previous commit that broke the language switchRalph Giles1-1/+1
build. git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@2950 06663e23-700e-0410-b217-a244a6096597