summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-03-06 17:04:14 +0000
committerTor Andersson <tor@ghostscript.com>2011-03-06 17:04:14 +0000
commit073d9a2bf73551a3ea5e1314b283ba474eb55b1c (patch)
tree5477f4941e5a362dd5a97c4b94746f84f043e503 /win32
parent4ba609fc289b18823a51093c8afea750c5636a5c (diff)
downloadmupdf-073d9a2bf73551a3ea5e1314b283ba474eb55b1c.tar.xz
Slim down freetype thirdparty library build.
Diffstat (limited to 'win32')
-rw-r--r--win32/libthirdparty.vcproj144
-rw-r--r--win32/slimftmodules.h21
-rw-r--r--win32/slimftoptions.h15
3 files changed, 38 insertions, 142 deletions
diff --git a/win32/libthirdparty.vcproj b/win32/libthirdparty.vcproj
index 5a09f5d5..eba52af8 100644
--- a/win32/libthirdparty.vcproj
+++ b/win32/libthirdparty.vcproj
@@ -41,7 +41,7 @@
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\win32;..\thirdparty\jbig2dec;..\thirdparty\jpeg-8c;..\thirdparty\openjpeg-1.4\libopenjpeg;..\thirdparty\zlib-1.2.5;..\thirdparty\freetype-2.4.4\include"
- PreprocessorDefinitions="FT2_BUILD_LIBRARY;OPJ_STATIC"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
@@ -104,7 +104,7 @@
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\win32;..\thirdparty\jbig2dec;..\thirdparty\jpeg-8c;..\thirdparty\openjpeg-1.4\libopenjpeg;..\thirdparty\zlib-1.2.5;..\thirdparty\freetype-2.4.4\include"
- PreprocessorDefinitions="FT2_BUILD_LIBRARY;OPJ_STATIC"
+ PreprocessorDefinitions="_CRT_SECURE_NO_WARNINGS;FT2_BUILD_LIBRARY;OPJ_STATIC;FT_CONFIG_MODULES_H=\&quot;slimftmodules.h\&quot;;FT_CONFIG_OPTIONS_H=\&quot;slimftoptions.h\&quot;"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
WarningLevel="3"
@@ -150,70 +150,10 @@
>
</File>
<File
- RelativePath="..\thirdparty\jpeg-8c\jcapimin.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcapistd.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcarith.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jccoefct.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jccolor.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcdctmgr.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jchuff.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcinit.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcmainct.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcmarker.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcmaster.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\jpeg-8c\jcomapi.c"
>
</File>
<File
- RelativePath="..\thirdparty\jpeg-8c\jcparam.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcprepct.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jcsample.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\jpeg-8c\jctrans.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\jpeg-8c\jdapimin.c"
>
</File>
@@ -410,10 +350,6 @@
>
</File>
<File
- RelativePath="..\thirdparty\zlib-1.2.5\infback.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\zlib-1.2.5\inffast.c"
>
</File>
@@ -518,54 +454,18 @@
Name="libfreetype"
>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\autofit\autofit.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\bdf\bdf.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\cff\cff.c"
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\cache\ftcache.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\gzip\ftgzip.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\lzw\ftlzw.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\pcf\pcf.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\pfr\pfr.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\psaux\psaux.c"
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\pshinter\pshinter.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\psnames\psnames.c"
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\raster\raster.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\sfnt\sfnt.c"
>
</File>
@@ -585,14 +485,6 @@
RelativePath="..\thirdparty\freetype-2.4.4\src\cid\type1cid.c"
>
</File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\type42\type42.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\winfonts\winfnt.c"
- >
- </File>
<Filter
Name="base"
>
@@ -605,18 +497,10 @@
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftbdf.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftbitmap.c"
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftdebug.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftgasp.c"
>
</File>
@@ -625,30 +509,10 @@
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftgxval.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftinit.c"
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftlcdfil.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftmm.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftotval.c"
- >
- </File>
- <File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftpfr.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftstroke.c"
>
</File>
@@ -665,10 +529,6 @@
>
</File>
<File
- RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftwinfnt.c"
- >
- </File>
- <File
RelativePath="..\thirdparty\freetype-2.4.4\src\base\ftxf86.c"
>
</File>
diff --git a/win32/slimftmodules.h b/win32/slimftmodules.h
new file mode 100644
index 00000000..5762018a
--- /dev/null
+++ b/win32/slimftmodules.h
@@ -0,0 +1,21 @@
+/* custom ftmodule.h which selects the minimum features required by mupdf */
+
+// FT_USE_MODULE( FT_Module_Class, autofit_module_class )
+FT_USE_MODULE( FT_Driver_ClassRec, tt_driver_class )
+FT_USE_MODULE( FT_Driver_ClassRec, t1_driver_class )
+FT_USE_MODULE( FT_Driver_ClassRec, cff_driver_class )
+FT_USE_MODULE( FT_Driver_ClassRec, t1cid_driver_class )
+// FT_USE_MODULE( FT_Driver_ClassRec, pfr_driver_class )
+// FT_USE_MODULE( FT_Driver_ClassRec, t42_driver_class )
+// FT_USE_MODULE( FT_Driver_ClassRec, winfnt_driver_class )
+// FT_USE_MODULE( FT_Driver_ClassRec, pcf_driver_class )
+FT_USE_MODULE( FT_Module_Class, psaux_module_class )
+FT_USE_MODULE( FT_Module_Class, psnames_module_class )
+// FT_USE_MODULE( FT_Module_Class, pshinter_module_class )
+// FT_USE_MODULE( FT_Renderer_Class, ft_raster1_renderer_class )
+FT_USE_MODULE( FT_Module_Class, sfnt_module_class )
+FT_USE_MODULE( FT_Renderer_Class, ft_smooth_renderer_class )
+// FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcd_renderer_class )
+// FT_USE_MODULE( FT_Renderer_Class, ft_smooth_lcdv_renderer_class )
+// FT_USE_MODULE( FT_Driver_ClassRec, bdf_driver_class )
+
diff --git a/win32/slimftoptions.h b/win32/slimftoptions.h
new file mode 100644
index 00000000..2289d7aa
--- /dev/null
+++ b/win32/slimftoptions.h
@@ -0,0 +1,15 @@
+/* custom ftoption.h which selects the minimum features needed by mupdf */
+
+#include <freetype/config/ftoption.h>
+#undef FT_CONFIG_OPTION_USE_LZW
+#undef FT_CONFIG_OPTION_USE_ZLIB
+#undef FT_CONFIG_OPTION_MAC_FONTS
+#undef FT_CONFIG_OPTION_INCREMENTAL
+#undef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
+#undef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+#undef TT_CONFIG_OPTION_BDF
+#undef T1_CONFIG_OPTION_NO_AFM
+#undef T1_CONFIG_OPTION_NO_MM_SUPPORT
+
+#undef FT_CONFIG_OPTION_OLD_INTERNALS
+