diff options
author | Jonathan Chambers <joncham@gmail.com> | 2009-06-09 18:01:16 +0400 |
---|---|---|
committer | Jonathan Chambers <joncham@gmail.com> | 2009-06-09 18:01:16 +0400 |
commit | c241d94045ac05d166fe4b5ab74529ec5b933900 (patch) | |
tree | 4b6a9244b108e0d8e45424f00215d67853fe5493 /eglib | |
parent | c44d20a7cf4f015489d29b718fc2cc2e585ccfe7 (diff) |
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.
svn path=/trunk/mono/; revision=135743
Diffstat (limited to 'eglib')
-rw-r--r-- | eglib/CMakeLists.txt | 8 | ||||
-rw-r--r-- | eglib/ChangeLog | 7 | ||||
-rw-r--r-- | eglib/src/CMakeLists.txt | 49 |
3 files changed, 64 insertions, 0 deletions
diff --git a/eglib/CMakeLists.txt b/eglib/CMakeLists.txt new file mode 100644 index 00000000000..cde7602aadd --- /dev/null +++ b/eglib/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SUBDIRS src test) + +autoheader("config.h" null) + +foreach(subdir ${SUBDIRS}) + add_subdirectory(${subdir}) +endforeach() + diff --git a/eglib/ChangeLog b/eglib/ChangeLog index 45dc9f3e9bd..e4fc5be5c2e 100644 --- a/eglib/ChangeLog +++ b/eglib/ChangeLog @@ -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 index 00000000000..2d134b4672d --- /dev/null +++ b/eglib/src/CMakeLists.txt @@ -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}) + |