[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 2 Sep 2010 22:38:36 +0000 (22:38 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 2 Sep 2010 22:38:36 +0000 (22:38 +0000)
- Add ftfd driver to build.

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

drivers/CMakeLists.txt
drivers/video/CMakeLists.txt [new file with mode: 0644]
drivers/video/font/CMakeLists.txt [new file with mode: 0644]
drivers/video/font/ftfd/CMakeLists.txt [new file with mode: 0644]

index fe6bdd8..39f0eba 100644 (file)
@@ -2,3 +2,4 @@
 add_subdirectory(base)
 add_subdirectory(input)
 add_subdirectory(storage)
+add_subdirectory(video)
diff --git a/drivers/video/CMakeLists.txt b/drivers/video/CMakeLists.txt
new file mode 100644 (file)
index 0000000..05adbc3
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(font)
diff --git a/drivers/video/font/CMakeLists.txt b/drivers/video/font/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e34ffbf
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(ftfd)
diff --git a/drivers/video/font/ftfd/CMakeLists.txt b/drivers/video/font/ftfd/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1f4ad66
--- /dev/null
@@ -0,0 +1,21 @@
+
+set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
+
+include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include)
+
+add_library(ftfd SHARED
+    enable.c
+    font.c
+    glyph.c
+    rosglue.c
+    sprintf.c)
+
+set_target_properties(ftfd PROPERTIES LINK_FLAGS "-Wl,-entry,_FtfdEnableDriver@12 -Wl,--subsystem,native")
+
+target_link_libraries(ftfd
+    ${CMAKE_CURRENT_SOURCE_DIR}/freetype.def
+    -lwin32k
+    freetype
+    libcntpr)
+
+add_dependencies(ftfd psdk)