summaryrefslogtreecommitdiffstats
path: root/kernel/kls_ttf
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kls_ttf')
-rw-r--r--kernel/kls_ttf/CMakeLists.txt26
-rw-r--r--kernel/kls_ttf/Makefile.am2
-rw-r--r--kernel/kls_ttf/ftview/CMakeLists.txt13
-rw-r--r--kernel/kls_ttf/ftview/Makefile.am2
4 files changed, 41 insertions, 2 deletions
diff --git a/kernel/kls_ttf/CMakeLists.txt b/kernel/kls_ttf/CMakeLists.txt
new file mode 100644
index 0000000..bd4c2a4
--- /dev/null
+++ b/kernel/kls_ttf/CMakeLists.txt
@@ -0,0 +1,26 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/ftview
+ ${CMAKE_SOURCE_DIR}/kernel/include
+ ${CMAKE_BINARY_DIR}
+ ${FREETYPE_INCLUDE_DIRS}
+)
+
+
+add_subdirectory( ftview )
+
+
+##### codecs
+
+tde_add_library( kls_ttf SHARED AUTOMOC
+ SOURCES fmt_codec_pnm.cpp
+ LINK ksquirrel-libs-shared
+ VERSION 0.8.0
+ DESTINATION ${LIB_INSTALL_DIR}/ksquirrel-libs
+)
+
+tde_add_executable( ksquirrel-libs-ttf2pnm
+ SOURCES ttf2pnm.cpp ftcommon.cpp
+ LINK ${LCMS_LIBRARIES} ${FREETYPE_LIBRARIES} ftview-static
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kernel/kls_ttf/Makefile.am b/kernel/kls_ttf/Makefile.am
index 10d2efe..979b2f6 100644
--- a/kernel/kls_ttf/Makefile.am
+++ b/kernel/kls_ttf/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = ftview
-INCLUDES = -I../include -Iftview @SQ_FT_CFLAGS@
+INCLUDES = -I../include -Iftview @SQ_FT_CFLAGS@ $(all_includes)
bin_PROGRAMS = ksquirrel-libs-ttf2pnm
diff --git a/kernel/kls_ttf/ftview/CMakeLists.txt b/kernel/kls_ttf/ftview/CMakeLists.txt
new file mode 100644
index 0000000..a0fa7cd
--- /dev/null
+++ b/kernel/kls_ttf/ftview/CMakeLists.txt
@@ -0,0 +1,13 @@
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kernel/include
+ ${CMAKE_BINARY_DIR}
+)
+
+
+##### executable
+
+file( GLOB _bin_cpp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp )
+tde_add_library( ftview STATIC_PIC AUTOMOC
+ SOURCES ${_bin_cpp_files}
+)
diff --git a/kernel/kls_ttf/ftview/Makefile.am b/kernel/kls_ttf/ftview/Makefile.am
index d744d11..3961023 100644
--- a/kernel/kls_ttf/ftview/Makefile.am
+++ b/kernel/kls_ttf/ftview/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = -I. @SQ_FT_CFLAGS@
+INCLUDES = -I. @SQ_FT_CFLAGS@ $(all_includes)
noinst_LTLIBRARIES = libftview.la