New tests, updates
[mono.git] / mono / io-layer / CMakeLists.txt
1
2 # Last synched with Makefile.am at r134597
3
4 set(OTHER_H
5         access.h
6         atomic.h
7         collection.h
8         context.h
9         critical-sections.h
10         error.h 
11         events.h
12         handles.h
13         io.h    
14         io-layer.h
15         io-portability.h
16         macros.h
17         messages.h
18         mono-mutex.h
19         mutexes.h
20         processes.h
21         security.h
22         semaphores.h
23         sockets.h
24         status.h
25         system.h
26         threads.h
27         timefuncs.h
28         types.h 
29         uglify.h
30         versioninfo.h
31         wait.h  
32         wapi.h)
33
34 set(OTHER_SRC
35         access.h        
36         atomic.c        
37         atomic.h        
38         collection.c    
39         collection.h    
40         context.c       
41         context.h       
42         critical-sections.c
43         critical-sections.h
44         critical-section-private.h
45         error.c         
46         error.h         
47         events.c        
48         events.h        
49         event-private.h 
50         handles.c       
51         handles.h       
52         handles-private.h
53         io.c            
54         io.h            
55         io-portability.c
56         io-portability.h
57         io-private.h    
58         io-layer.h      
59         locking.c       
60         macros.h        
61         messages.c      
62         messages.h      
63         misc.c          
64         misc-private.h  
65         mutexes.c       
66         mutexes.h       
67         mutex-private.h 
68         mono-mutex.c    
69         mono-mutex.h    
70         mono-spinlock.h 
71         processes.c     
72         processes.h     
73         process-private.h
74         security.c      
75         security.h      
76         semaphores.c    
77         semaphores.h    
78         semaphore-private.h
79         shared.c        
80         shared.h        
81         sockets.c       
82         sockets.h       
83         socket-private.h
84         socket-wrappers.h
85         status.h        
86         system.c        
87         system.h        
88         threads.h       
89         thread-private.h
90         timefuncs.c     
91         timefuncs.h     
92         timefuncs-private.h
93         types.h         
94         uglify.h        
95         versioninfo.c   
96         versioninfo.h   
97         wait.c          
98         wait.h          
99         wapi_glob.h     
100         wapi_glob.c     
101         wapi.h          
102         wapi-private.h  
103         wthreads.c)
104
105 set(WINDOWS_H
106   io-layer.h)
107
108 set(WINDOWS_SRC
109   io-layer.h
110   io-layer-dummy.c)
111
112 set(HPPA_SRC
113   hppa_atomic.S)
114
115 if(PLATFORM_WIN32)
116 ###if PLATFORM_WIN32
117 ###libwapi_la_SOURCES = $(WINDOWS_SRC)
118 ###libwapiinclude_HEADERS = $(WINDOWS_H)
119 else()
120 ###if HPPA
121 ###libwapi_la_SOURCES = $(OTHER_SRC) $(HPPA_SRC)
122 #### to enable pick up of config.h
123 ###libwapi_la_CCASFLAGS = -I$(top_builddir)
124 ###else
125 set(libwapi_la_SOURCES ${OTHER_SRC})
126 ###endif
127 ###libwapiinclude_HEADERS = $(OTHER_H)
128 ###endif
129 endif()
130
131 ###EXTRA_DIST =
132 ###     $(WINDOWS_SRC)
133 ###        $(HPPA_SRC) \
134 ###     $(OTHER_SRC)
135
136 set(top_srcdir ../../)
137 include_directories(${top_srcdir} ${top_srcdir}/mono ${GLIB2_INCLUDE_DIRS})
138 add_definitions(${CFLAGS} ${LIBGC_CFLAGS} ${CPPFLAGS})
139
140 add_library(wapi-static STATIC ${libwapi_la_SOURCES})
141 add_library(wapi SHARED ${libwapi_la_SOURCES})