Skip to content

Commit c241d94

Browse files
committed
2009-06-09 Jonathan Chambers <[email protected]>
* 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
1 parent c44d20a commit c241d94

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

eglib/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set(SUBDIRS src test)
2+
3+
autoheader("config.h" null)
4+
5+
foreach(subdir ${SUBDIRS})
6+
add_subdirectory(${subdir})
7+
endforeach()
8+

eglib/ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2009-06-09 Jonathan Chambers <[email protected]>
2+
3+
* CMakeLists.txt: Add start of CMake build.
4+
* src/CMakeLists.txt: Add start of CMake build.
5+
6+
Contribution is licensed as MIT/X11.
7+
18
2009-06-02 Bill Holmes <[email protected]>
29

310
* src/gpath.c (g_find_program_in_path): While searching on Windows

eglib/src/CMakeLists.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
set(win_files
2+
gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c
3+
gmodule-win32.c gtimer-win32.c)
4+
5+
set(unix_files
6+
gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c
7+
gmodule-unix.c gtimer-unix.c)
8+
9+
if (MSVC)
10+
set(os_files ${win_files})
11+
else(MSVC)
12+
set(os_files ${unix_files})
13+
endif(MSVC)
14+
15+
set(libeglib_la_SOURCES
16+
${os_files}
17+
eglib-config.h
18+
sort.frag.h
19+
glib.h
20+
garray.c
21+
gerror.c
22+
ghashtable.c
23+
gmem.c
24+
gmodule.h
25+
goutput.c
26+
gstr.c
27+
gslist.c
28+
gstring.c
29+
gptrarray.c
30+
glist.c
31+
gqueue.c
32+
gpath.c
33+
gshell.c
34+
gspawn.c
35+
gfile.c
36+
gfile-posix.c
37+
gpattern.c
38+
gmarkup.c
39+
gutf8.c
40+
gunicode.c
41+
unicode-data.h)
42+
43+
set(EXTRA_DIST eglib-config.h.in eglib-config.hw ${win_files} ${unix_files})
44+
45+
INCLUDE_DIRECTORIES(../ ${CMAKE_CURRENT_SOURCE_DIR})
46+
ADD_DEFINITIONS(${CFLAGS} -D_FORTIFY_SOURCE=2)
47+
ADD_LIBRARY(eglib-static STATIC ${libeglib_la_SOURCES})
48+
ADD_LIBRARY(eglib SHARED ${libeglib_la_SOURCES})
49+

0 commit comments

Comments
 (0)