[CMAKE]
authorZiliang Guo <drakekaizer666@gmail.com>
Mon, 26 Jul 2010 17:59:46 +0000 (17:59 +0000)
committerZiliang Guo <drakekaizer666@gmail.com>
Mon, 26 Jul 2010 17:59:46 +0000 (17:59 +0000)
-Add freetype to build.

svn path=/branches/cmake-bringup/; revision=48282

lib/3rdparty/CMakeLists.txt
lib/3rdparty/freetype/CMakeLists.txt [new file with mode: 0644]

index 47c130a..36f2196 100644 (file)
@@ -3,7 +3,7 @@ add_subdirectory(adns)
 add_subdirectory(bzip2)
 add_subdirectory(cardlib)
 add_subdirectory(expat)
-#add_subdirectory(freetype) # Add files by hand, not with a glob!
+add_subdirectory(freetype)
 add_subdirectory(fullfat)
 add_subdirectory(icu4ros)
 add_subdirectory(libsamplerate)
diff --git a/lib/3rdparty/freetype/CMakeLists.txt b/lib/3rdparty/freetype/CMakeLists.txt
new file mode 100644 (file)
index 0000000..220202f
--- /dev/null
@@ -0,0 +1,56 @@
+add_definitions(-D__NTDRIVER__)
+add_definitions(-DFT2_BUILD_LIBRARY)
+
+IF(NSWPAT STREQUAL "1")
+  add_definitions(-DTT_CONFIG_OPTION_UNPATHENTED_HINTING)
+ELSE
+  ADD_DEFINITIONS(-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER)
+ENDIF()
+
+include_directories(include)
+
+set(SOURCE
+  "src/autofit/autofit.c"
+  "src/base/ftbase.c"
+  "src/base/ftbbox.c"
+  "src/base/ftbdf.c"
+  "src/base/ftbitmap.c"
+  "src/base/ftdebug.c"
+  "src/base/ftgasp.c"
+  "src/base/ftglyph.c"
+  "src/base/ftgxval.c"
+  "src/base/ftinit.c"
+  "src/base/ftlcdfil.c"
+  "src/base/ftmm.c"
+  "src/base/ftotval.c"
+  "src/base/ftpatent.c"
+  "src/base/ftpfr.c"
+  "src/base/ftstroke.c"
+  "src/base/ftsynth.c"
+  "src/base/ftsystem.c"
+  "src/base/fttype1.c"
+  "src/base/ftwinfnt.c"
+  "src/base/ftxf86.c"
+  "src/bdf/bdf.c"
+  "src/cache/ftcache.c"
+  "src/cff/cff.c"
+  "src/cid/type1cid.c"
+  "src/gxvalid/gxvalid.c"
+  "src/gzip/ftgzip.c"
+  "src/lzw/ftlzw.c"
+  "src/otvalid/otvalid.c"
+  "src/pcf/pcf.c"
+  "src/pfr/pfr.c"
+  "src/psaux/psaux.c"
+  "src/pshinter/pshinter.c"
+  "src/psnames/psnames.c"
+  "src/raster/raster.c"
+  "src/sfnt/sfnt.c"
+  "src/smooth/smooth.c"
+  "src/truetype/truetype.c"
+  "src/type1/type1.c"
+  "src/type42/type42.c"
+  "src/winfonts/winfnt.c"
+)
+
+add_library(freetype ${SOURCE})
\ No newline at end of file