2 # Source code which helps implement the ANSI C standards, and thus *should* be
3 # portable to any platform having a C compiler.
14 # Source code which helps implement POSIX and other related Unix standards,
15 # and *may* be portable between Unix platforms.
41 set(MPH_SOURCE ${MPH_C_SOURCE})
42 set(MPH_LIBS ${GLIB_LIBS})
44 set(MPH_SOURCE ${MPH_C_SOURCE} ${MPH_UNIX_SOURCE})
45 set(MPH_LIBS ${GLIB_LIBS})
82 set(Z_SOURCE zlib-helper.c)
85 set(Z_SOURCE zlib-helper.c ${ZLIB_SOURCES})
89 set(libMonoPosixHelper_la_SOURCES
94 set(libMonoPosixHelper_la_LIBADD
99 # set(libMonoPosixHelper_la_LDFLAGS -no-undefined -version-info 1:0:1
100 ###set(libMonoPosixHelper_la_LDFLAGS -no-undefined -avoid-version)
101 ###set(libMonoSupportW_la_LDFLAGS -no-undefined -avoid-version)
103 set(libMonoSupportW_la_SOURCES
108 set(libMonoSupportW_la_LIBADD
111 include_directories(${top_srcdir})
112 include_directories(${GLIB2_INCLUDE_DIRS})
113 set(CMAKE_C_FLAGS "${CFLAGS} ${CPPFLAGS}")
114 link_directories(../mini)
116 add_library(MonoPosixHelper SHARED ${libMonoPosixHelper_la_SOURCES})
117 target_link_libraries(MonoPosixHelper ${libMonoPosixHelper_la_LIBADD})
121 ###set(lib_LTLIBRARIES
122 ### libMonoPosixHelper.la
127 # Use this target to refresh the values in map.[ch]
129 add_custom_target(refresh
130 COMMAND cp `pkg-config --variable=Programs create-native-map` .
131 COMMAND ${top_builddir}/runtime/mono-wrapper create-native-map.exe
132 --autoconf-member=d_off
133 --autoconf-member=d_reclen
134 --autoconf-member=d_type
135 --exclude-native-symbol=Mono_Posix_Stdlib_snprintf
136 --impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE
137 --impl-header="<sys/types.h>"
138 --impl-header="<sys/stat.h>"
139 --autoconf-header="<sys/time.h>"
140 --autoconf-header="<sys/poll.h>"
141 --autoconf-header="<sys/wait.h>"
142 --autoconf-header="<sys/statvfs.h>"
143 --autoconf-header="<sys/xattr.h>"
144 --autoconf-header="<sys/mman.h>"
145 --autoconf-header="<unistd.h>"
146 --impl-header="<fcntl.h>"
147 --impl-header="<signal.h>"
148 --autoconf-header="<poll.h>"
149 --autoconf-header="<grp.h>"
150 --impl-header="<errno.h>"
151 --autoconf-header="<syslog.h>"
152 --autoconf-header="<dirent.h>"
153 --autoconf-header="<utime.h>"
154 --impl-header="<time.h>"
155 --impl-header=""mph.h""
156 --rename-member=st_atime=st_atime_
157 --rename-member=st_ctime=st_ctime_
158 --rename-member=st_mtime=st_mtime_
159 --rename-namespace=Mono.Unix.Native=Mono.Posix
160 --library=MonoPosixHelper
161 ${mcs_topdir}/class/lib/net_2_0/Mono.Posix.dll map