Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Files for compil Simgrid with cmake and make a distrib with cpack.
[simgrid.git] / buildtools / CPACK / CMakeDefinePackages.txt
1 ### define source packages
2
3 set(EXTRA_DIST 
4         portable.h
5         xbt/mallocator_private.h
6         xbt/dict_private.h
7         xbt/heap_private.h
8         xbt/fifo_private.h
9         xbt/graph_private.h
10         xbt/graphxml_parse.c
11         xbt/graphxml.l
12         xbt/graphxml.c
13         xbt/graphxml.dtd
14         xbt/log_private.h
15         xbt/ex_interface.h
16         xbt/backtrace_linux.c
17         xbt/backtrace_windows.c
18         xbt/backtrace_dummy.c
19         surf/maxmin_private.h
20         surf/trace_mgr_private.h
21         surf/surf_private.h
22         surf/surfxml_parse.c
23         surf/simgrid_dtd.l
24         surf/simgrid_dtd.c
25         surf/simgrid.dtd
26         surf/network_private.h
27         surf/network_gtnets_private.h
28         surf/gtnets/gtnets_interface.h
29         surf/gtnets/gtnets_simulator.h
30         surf/gtnets/gtnets_topology.h
31         surf/cpu_ti_private.h
32         include/surf/surf_resource.h
33         include/surf/datatypes.h
34         include/surf/maxmin.h
35         include/surf/trace_mgr.h
36         include/surf/surf.h
37         include/surf/surfxml_parse_private.h
38         include/surf/random_mgr.h
39         include/surf/surf_resource_lmm.h
40         include/xbt/wine_dbghelp.h
41         include/xbt/xbt_os_time.h
42         include/xbt/xbt_os_thread.h
43         msg/private.h
44         msg/mailbox.h
45         simdag/private.h
46         simdag/dax.dtd
47         simdag/dax_dtd.l
48         simdag/dax_dtd.h
49         simdag/dax_dtd.c
50         gras/DataDesc/ddt_parse.yy.l
51         gras/DataDesc/ddt_parse.yy.h
52         gras/Virtu/virtu_rl.h
53         gras/Virtu/virtu_sg.h
54         gras/Virtu/virtu_interface.h
55         gras/Virtu/virtu_private.h
56         gras/Transport/transport_interface.h
57         amok/Bandwidth/bandwidth_private.h
58         amok/amok_modinter.h
59         include/simix/simix.h
60         include/simix/datatypes.h
61         include/simix/context.h
62         simix/private.h
63         simix/smx_context_private.h
64         simix/smx_context_java.h
65         smpi/private.h
66         smpi/smpi_coll_private.h
67         smpi/smpi_mpi_dt_private.h
68         smpi/README
69         mk_supernovae.sh
70 )
71
72 set(XBT_RL_SRC 
73         xbt/xbt_rl_synchro.c
74         xbt/xbt_rl_time.c
75 )
76
77 set(XBT_SG_SRC 
78         xbt/xbt_sg_synchro.c
79         xbt/xbt_sg_time.c
80 )     
81
82 set(SMPI_SRC
83         smpi/smpi_base.c
84         smpi/smpi_bench.c
85         smpi/smpi_global.c
86         smpi/smpi_mpi.c
87         smpi/smpi_sender.c
88         smpi/smpi_receiver.c
89         smpi/smpi_util.c
90         smpi/smpi_coll.c
91         smpi/smpi_mpi_dt.c
92 )
93
94 set(JMSG_C_SRC
95         simix/smx_context_java.c
96         java/jxbt_utilities.c
97         java/jxbt_utilities.h
98         java/jmsg.c java/jmsg.h
99         java/jmsg_channel.c
100         java/jmsg_channel.h
101         java/jmsg_host.c
102         java/jmsg_host.h
103         java/jmsg_process.c
104         java/jmsg_process.h
105         java/jmsg_task.c
106         java/jmsg_task.h
107         java/jmsg_application_handler.c
108         java/jmsg_application_handler.h
109 )
110
111 set(JMSG_JAVA_SRC
112         java/simgrid/msg/MsgException.java
113         java/simgrid/msg/JniException.java
114         java/simgrid/msg/NativeException.java
115         java/simgrid/msg/HostNotFoundException.java
116         java/simgrid/msg/ProcessNotFoundException.java
117         java/simgrid/msg/Msg.java
118         java/simgrid/msg/Process.java
119         java/simgrid/msg/Host.java
120         java/simgrid/msg/Task.java
121         java/simgrid/msg/MsgNative.java
122         java/simgrid/msg/DTDResolver.java
123         java/simgrid/msg/ApplicationHandler.java
124         java/simgrid/msg/Sem.java
125 )
126
127 set(GRAS_RL_SRC
128         gras/rl_stubs.c
129         xbt/xbt_os_thread.c
130         gras/Transport/rl_transport.c
131         gras/Transport/transport_plugin_file.c
132         gras/Transport/transport_plugin_tcp.c
133         gras/Virtu/rl_emul.c
134         gras/Virtu/rl_process.c
135         gras/Virtu/rl_dns.c
136         gras/Msg/rl_msg.c
137         ${XBT_RL_SRC}
138 )
139
140 set(XBT_SRC 
141         xbt/snprintf.c
142         xbt/xbt_str.c
143         xbt/xbt_strbuff.c
144         xbt/xbt_sha.c
145         xbt/ex.c
146         xbt_modinter.h
147         gras_modinter.h
148         xbt/xbt_virtu.c
149         xbt/xbt_os_time.c
150         xbt/asserts.c
151         xbt/log.c
152         xbt/xbt_log_appender_file.c
153         xbt/xbt_log_layout_simple.c
154         xbt/xbt_log_layout_format.c
155         xbt/mallocator.c
156         xbt/dynar.c
157         xbt/dict.c
158         xbt/dict_elm.c
159         xbt/dict_cursor.c
160         xbt/dict_multi.c
161         xbt/heap.c
162         xbt/fifo.c
163         xbt/swag.c
164         xbt/graph.c
165         xbt/set.c
166         xbt/xbt_matrix.c
167         xbt/xbt_queue.c
168         xbt/xbt_synchro.c
169         xbt/xbt_peer.c
170         xbt/xbt_main.c
171         xbt/config.c
172         xbt/cunit.c
173         xbt/graphxml_parse.c
174 )
175
176 set(GTNETS_SRC 
177         surf/gtnets/gtnets_simulator.cc
178         surf/gtnets/gtnets_topology.cc
179         surf/gtnets/gtnets_interface.cc
180         surf/network_gtnets.c
181 )
182
183 set(SURF_SRC 
184         surf/surf_model.c
185         surf/surf_action.c
186         surf/surf_routing.c
187         surf/surf_config.c
188         surf/maxmin.c
189         surf/fair_bottleneck.c
190         surf/lagrange.c
191         surf/trace_mgr.c
192         surf/random_mgr.c
193         surf/surf.c
194         surf/surfxml_parse.c
195         surf/cpu.c
196         surf/network.c
197         surf/network_constant.c
198         surf/workstation.c
199         surf/surf_model_timer.c
200         surf/workstation_ptask_L07.c
201         surf/cpu_ti.c
202         surf/cpu_im.c
203         xbt/xbt_sg_stubs.c
204 )
205
206 set(SIMIX_SRC 
207         simix/smx_global.c
208         simix/smx_deployment.c
209         simix/smx_environment.c
210         simix/smx_host.c
211         simix/smx_process.c
212         simix/smx_context.c
213         simix/smx_action.c
214         simix/smx_synchro.c
215         simix/smx_network.c
216 )
217
218 set(MSG_SRC
219         msg/msg_config.c
220         msg/task.c
221         msg/host.c
222         msg/m_process.c
223         msg/gos.c
224         msg/global.c
225         msg/environment.c
226         msg/deployment.c
227         msg/msg_mailbox.c
228         msg/msg_actions.c
229 )
230
231 set(SIMDAG_SRC
232         simdag/sd_global.c
233         simdag/sd_link.c
234         simdag/sd_task.c
235         simdag/sd_workstation.c
236         simdag/sd_daxloader.c
237 )
238
239 set(GRAS_COMMON_SRC
240         gras/gras.c
241         gras/Transport/transport.c
242         gras/Transport/transport_private.h
243         gras/Msg/gras_msg_mod.c
244         gras/Msg/gras_msg_types.c
245         gras/Msg/gras_msg_exchange.c
246         gras/Msg/gras_msg_listener.c
247         gras/Msg/rpc.c gras/Msg/timer.c
248         gras/Msg/msg_interface.h
249         gras/Msg/msg_private.h
250         gras/Virtu/process.c
251         gras/Virtu/gras_module.c
252         gras/DataDesc/ddt_create.c
253         gras/DataDesc/ddt_convert.c
254         gras/DataDesc/ddt_exchange.c
255         gras/DataDesc/cbps.c
256         gras/DataDesc/datadesc.c
257         gras/DataDesc/datadesc_interface.h
258         gras/DataDesc/datadesc_private.h
259         gras/DataDesc/ddt_parse.c
260         gras/DataDesc/ddt_parse.yy.c
261 )
262
263 set(GRAS_SG_SRC
264         gras/Transport/sg_transport.c
265         gras/Transport/transport_plugin_sg.c
266         gras/Virtu/sg_emul.c
267         gras/Virtu/sg_process.c
268         gras/Virtu/sg_dns.c
269         gras/Msg/sg_msg.c
270         ${XBT_SG_SRC}
271 )
272
273 set(AMOK_SRC
274         amok/amok_base.c
275         amok/Bandwidth/bandwidth.c
276         amok/Bandwidth/saturate.c
277         amok/PeerManagement/peermanagement.c
278 )
279
280 ### depend of some variables setted upper
281 # -->CONTEXT_THREADS
282 if(${CONTEXT_THREADS})
283         set(SURF_SRC
284                 ${SURF_SRC}
285                 xbt/xbt_os_thread.c
286                 simix/smx_context_thread.c
287         )
288         set(EXTRA_DIST
289                 ${EXTRA_DIST}
290                 simix/smx_context_sysv.c
291         )
292 else(${CONTEXT_THREADS})
293         set(SURF_SRC
294                 ${SURF_SRC}
295                 simix/smx_context_sysv.c
296         )
297         set(EXTRA_DIST
298                 ${EXTRA_DIST}
299                 xbt/xbt_os_thread.c
300                 simix/smx_context_thread.c
301         )
302 endif(${CONTEXT_THREADS})
303
304 # -->HAVE_GTNETS
305 if(${HAVE_GTNETS})
306         set(GTNETS_USED 
307                 ${GTNETS_SRC}
308         )
309 else(${HAVE_GTNETS})
310         set(GTNETS_USED "")
311         set(EXTRA_DIST
312                 ${EXTRA_DIST}
313                 ${GTNETS_SRC}
314         )
315 endif(${HAVE_GTNETS})
316
317 set(EXTRA_DIST
318         ${EXTRA_DIST}
319         ${JMSG_JAVA_SRC}
320 )
321
322 ### Simgrid Lib sources
323 set(simgrid_sources
324         ${XBT_SRC}
325         ${SURF_SRC}
326         ${GTNETS_USED}
327         ${SIMIX_SRC}
328         ${MSG_SRC}
329         ${SIMDAG_SRC}
330         ${GRAS_COMMON_SRC}
331         ${GRAS_SG_SRC}
332         ${AMOK_SRC}
333 )
334
335 ### Gras Lib sources
336 set(gras_sources
337         ${XBT_SRC}
338         ${GRAS_COMMON_SRC}
339         ${GRAS_RL_SRC}
340         ${AMOK_SRC}
341 )
342
343 if(${HAVE_JAVA})
344         set(simgrid_sources
345                 ${simgrid_sources}
346                 ${JMSG_C_SRC} # add the binding support to the library
347         )
348 else(${HAVE_JAVA})
349         set(EXTRA_DIST
350                 ${EXTRA_DIST}
351                 ${JMSG_C_SRC}
352                 ${MSG_SRC}
353         )
354 endif(${HAVE_JAVA})