2009-06-09 Jonathan Chambers <joncham@gmail.com>
authorJonathan Chambers <joncham@gmail.com>
Tue, 9 Jun 2009 14:01:16 +0000 (14:01 -0000)
committerJonathan Chambers <joncham@gmail.com>
Tue, 9 Jun 2009 14:01:16 +0000 (14:01 -0000)
        * CMakeLists.txt: Add start of CMake build.
        * src/CMakeLists.txt: Add start of CMake build.

        Contribution is licensed as MIT/X11.

svn path=/trunk/mono/; revision=135743

eglib/CMakeLists.txt [new file with mode: 0644]
eglib/ChangeLog
eglib/src/CMakeLists.txt [new file with mode: 0644]

diff --git a/eglib/CMakeLists.txt b/eglib/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cde7602
--- /dev/null
@@ -0,0 +1,8 @@
+set(SUBDIRS src test)
+
+autoheader("config.h" null)
+
+foreach(subdir ${SUBDIRS})
+  add_subdirectory(${subdir})
+endforeach()
+
index 45dc9f3e9bd51dd25b5dc15efdb842727b7f7834..e4fc5be5c2ef99a84ead25b2f1a5f5a49fd5d420 100644 (file)
@@ -1,3 +1,10 @@
+2009-06-09  Jonathan Chambers <joncham@gmail.com>
+       
+       * CMakeLists.txt: Add start of CMake build.
+       * src/CMakeLists.txt: Add start of CMake build.
+       
+       Contribution is licensed as MIT/X11.
+
 2009-06-02  Bill Holmes  <billholmes54@gmail.com>
 
        * src/gpath.c (g_find_program_in_path):  While searching on Windows
diff --git a/eglib/src/CMakeLists.txt b/eglib/src/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2d134b4
--- /dev/null
@@ -0,0 +1,49 @@
+set(win_files
+       gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c
+       gmodule-win32.c gtimer-win32.c)
+
+set(unix_files
+       gdate-unix.c  gdir-unix.c  gfile-unix.c  gmisc-unix.c
+       gmodule-unix.c gtimer-unix.c)
+
+if (MSVC)
+  set(os_files ${win_files})
+else(MSVC)
+  set(os_files ${unix_files})
+endif(MSVC)
+
+set(libeglib_la_SOURCES
+       ${os_files}
+       eglib-config.h
+       sort.frag.h
+       glib.h
+       garray.c
+       gerror.c
+       ghashtable.c
+       gmem.c
+       gmodule.h
+       goutput.c
+       gstr.c
+       gslist.c
+       gstring.c
+       gptrarray.c
+       glist.c
+       gqueue.c
+       gpath.c
+       gshell.c
+       gspawn.c
+       gfile.c 
+       gfile-posix.c
+       gpattern.c
+       gmarkup.c
+       gutf8.c
+       gunicode.c
+       unicode-data.h)
+
+set(EXTRA_DIST eglib-config.h.in eglib-config.hw ${win_files} ${unix_files})
+
+INCLUDE_DIRECTORIES(../ ${CMAKE_CURRENT_SOURCE_DIR})
+ADD_DEFINITIONS(${CFLAGS} -D_FORTIFY_SOURCE=2)
+ADD_LIBRARY(eglib-static STATIC ${libeglib_la_SOURCES})
+ADD_LIBRARY(eglib SHARED ${libeglib_la_SOURCES})
+