Autoscale for cmscope graph
[scilab.git] / scilab / modules / xcos / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2009-2010 - Allan CORNET <allan.cornet@scilab.org>
4 # Copyright (C) DIGITEO - 2010-2010 - Clément DAVID <clement.david@scilab.org>
5 # Copyright (C) 2012-2016 - Scilab Enterprises - Clément DAVID
6 #
7 # Copyright (C) 2012 - 2016 - Scilab Enterprises
8 #
9 # This file is hereby licensed under the terms of the GNU GPL v2.0,
10 # pursuant to article 5.3.4 of the CeCILL v.2.1.
11 # This file was originally licensed under the terms of the CeCILL v2.1,
12 # and continues to be available under such terms.
13 # For more information, see the COPYING file which you should have received
14 # along with this program.
15 #
16
17 #### Target ######
18 modulename=xcos
19
20
21 #### xcos : Conf files ####
22 libscixcos_la_rootdir = $(mydatadir)
23 libscixcos_la_root_DATA =  license.txt
24
25
26 #### xcos : init scripts ####
27 libscixcos_la_etcdir = $(mydatadir)/etc
28 libscixcos_la_etc_DATA = \
29         etc/xcos.quit \
30         etc/xcos.start \
31         etc/Xcos-style.xml \
32         etc/XcosFile.xsd \
33         etc/xcos.xml \
34         etc/XcosConfiguration.xsd \
35         etc/palettes.xml \
36         etc/PaletteConfiguration.xsd \
37         etc/Modelica.xsd \
38         etc/XConfiguration-xcos.xsl \
39         etc/XConfiguration-xcos.xml
40
41 XCOS_CXX_SOURCES =      \
42     src/jni/Xcos.cpp \
43     src/jni/Xcos.hxx \
44     src/jni/XcosCellFactory.cpp \
45     src/jni/XcosCellFactory.hxx \
46     src/jni/Palette.cpp \
47     src/jni/Palette.hxx \
48     src/jni/Modelica.cpp \
49     src/jni/Modelica.hxx \
50     src/jni/JavaController_wrap.cxx \
51     src/cpp/xcosUtilities.cpp \
52     src/cpp/loadStatus.cpp \
53     src/jni/JavaXMIResource_wrap.cxx
54
55 GIWS_WRAPPERS = \
56     src/jni/Xcos.giws.xml \
57     src/jni/XcosCellFactory.giws.xml \
58     src/jni/Palette.giws.xml \
59     src/jni/Modelica.giws.xml
60 SWIG_WRAPPERS = \
61     src/jni/JavaController.i \
62     src/jni/JavaXMIResource.i
63
64 # FORCE directors due to a bug into swig
65 SWIG_OPTIONS=-c++ -directors
66 BUILT_SOURCES=
67 if GIWS
68 BUILT_SOURCES+=giws
69 endif
70 if SWIG
71 BUILT_SOURCES+=swig
72 endif
73
74
75 GATEWAY_C_SOURCES =
76
77 GATEWAY_CXX_SOURCES = \
78         sci_gateway/cpp/sci_Xcos.cpp \
79         sci_gateway/cpp/sci_warnBlockByUID.cpp \
80         sci_gateway/cpp/sci_closeXcosFromScilab.cpp \
81         sci_gateway/cpp/sci_xcosCellCreated.cpp \
82         sci_gateway/cpp/sci_xcosUpdateBlock.cpp \
83         sci_gateway/cpp/sci_xcosDiagramToScilab.cpp \
84         sci_gateway/cpp/sci_xcosPalLoad.cpp \
85         sci_gateway/cpp/sci_xcosPalCategoryAdd.cpp \
86         sci_gateway/cpp/sci_xcosPalDelete.cpp \
87         sci_gateway/cpp/sci_xcosPalMove.cpp \
88         sci_gateway/cpp/sci_xcosPalEnable.cpp \
89         sci_gateway/cpp/sci_xcosPalDisable.cpp \
90         sci_gateway/cpp/sci_xcosPalGenerateIcon.cpp \
91         sci_gateway/cpp/sci_xcosPalGet.cpp \
92         sci_gateway/cpp/sci_xcosConfigureXmlFile.cpp \
93         sci_gateway/cpp/sci_xcosAddToolsMenu.cpp \
94         sci_gateway/cpp/sci_loadXcos.cpp \
95         sci_gateway/cpp/sci_xcosSimulationStarted.cpp
96
97 libscixcos_la_CPPFLAGS = \
98     -I$(srcdir)/includes/ \
99     -I$(srcdir)/src/jni/ \
100     -I$(srcdir)/src/cpp/ \
101     -I$(srcdir)/src/c/ \
102     -I$(top_srcdir)/modules/scicos/includes/ \
103     -I$(top_srcdir)/modules/scicos_blocks/includes/ \
104     -I$(top_srcdir)/modules/scicos_blocks/src/jni/ \
105     -I$(top_srcdir)/modules/dynamic_link/includes/ \
106     -I$(top_srcdir)/modules/string/includes/ \
107     -I$(top_srcdir)/modules/ast/includes/ast/ \
108     -I$(top_srcdir)/modules/ast/includes/exps/ \
109     -I$(top_srcdir)/modules/ast/includes/operations/ \
110     -I$(top_srcdir)/modules/ast/includes/parse/ \
111     -I$(top_srcdir)/modules/ast/includes/symbol/ \
112     -I$(top_srcdir)/modules/ast/includes/system_env/ \
113     -I$(top_srcdir)/modules/ast/includes/types/ \
114     -I$(top_srcdir)/modules/ast/includes/analysis/ \
115     -I$(top_srcdir)/modules/threads/includes/ \
116     -I$(top_srcdir)/modules/console/includes/ \
117     -I$(top_srcdir)/modules/jvm/includes/ \
118     -I$(top_srcdir)/modules/output_stream/includes/ \
119     -I$(top_srcdir)/modules/commons/src/jni/ \
120     -I$(top_srcdir)/modules/localization/includes/ \
121     -I$(top_srcdir)/modules/fileio/includes/ \
122     -I$(top_srcdir)/modules/api_scilab/includes/ \
123     $(XML_FLAGS) \
124     $(JAVA_JNI_INCLUDE) \
125     $(AM_CPPFLAGS)
126
127 # Without the xcos module
128 libscixcos_disable_la_CPPFLAGS = \
129     -I$(srcdir)/includes/ \
130     -I$(top_srcdir)/modules/ast/includes/ast/ \
131     -I$(top_srcdir)/modules/ast/includes/exps/ \
132     -I$(top_srcdir)/modules/ast/includes/operations/ \
133     -I$(top_srcdir)/modules/ast/includes/parse/ \
134     -I$(top_srcdir)/modules/ast/includes/symbol/ \
135     -I$(top_srcdir)/modules/ast/includes/system_env/ \
136     -I$(top_srcdir)/modules/ast/includes/types/ \
137     -I$(top_srcdir)/modules/localization/includes/ \
138     -I$(top_srcdir)/modules/output_stream/includes \
139     $(XML_FLAGS) \
140     $(AM_CPPFLAGS)
141
142 XCOS_DISABLE_C_SOURCES = src/noxcos/noxcos.c
143 libscixcos_disable_la_SOURCES = $(XCOS_DISABLE_C_SOURCES)
144
145 pkglib_LTLIBRARIES = libscixcos-disable.la
146
147 if XCOS
148 if GUI
149 noinst_LTLIBRARIES = libscixcos-algo.la
150 pkglib_LTLIBRARIES += libscixcos.la
151 endif
152 endif
153
154
155 libscixcos_algo_la_SOURCES = $(XCOS_C_SOURCES) $(XCOS_CXX_SOURCES)
156 libscixcos_la_SOURCES =  $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
157 libscixcos_algo_la_CPPFLAGS = $(libscixcos_la_CPPFLAGS)
158
159 # For the code check (splint)
160 CHECK_SRC= $(XCOS_C_SOURCES) $(GATEWAY_C_SOURCES)
161 INCLUDE_FLAGS = $(libscixcos_la_CPPFLAGS)
162
163
164
165 libscixcos_la_LIBADD = libscixcos-algo.la \
166                 $(top_builddir)/modules/scicos/libsciscicos.la \
167                 $(top_builddir)/modules/commons/libscicommons.la \
168                 $(top_builddir)/modules/jvm/libscijvm.la \
169                 $(LIBXML_LIBS)
170
171 #### xcos : gateway declaration ####
172 libscixcos_la_sci_gatewaydir = $(mydatadir)/sci_gateway
173 libscixcos_la_sci_gateway_DATA = sci_gateway/xcos_gateway.xml
174
175
176 #### xcos : images files ####
177 #
178 # Generated with:
179 #   $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png -not -name *_pal.jpg -not -name gui |sort |awk '$0 !~ /gui/{print;}' |awk '$0 !~ /_pal.jpg/{print;}'
180 libscixcos_la_imagesdir=$(mydatadir)/
181 nobase_libscixcos_la_images_DATA = \
182 images/blocks/3DSCOPE.svg \
183 images/blocks/ANDBLK.svg \
184 images/blocks/ASCOPE.svg \
185 images/blocks/BACHE.svg \
186 images/blocks/BARXY.svg \
187 images/blocks/BPLATFORM.svg \
188 images/blocks/Capacitor.svg \
189 images/blocks/CCS.svg \
190 images/blocks/CLOCK_c.svg \
191 images/blocks/CLOCK_f.svg \
192 images/blocks/ConstantVoltage.svg \
193 images/blocks/CSCOPXY.svg \
194 images/blocks/CSCOPXY3D.svg \
195 images/blocks/CurrentSensor.svg \
196 images/blocks/CVS.svg \
197 images/blocks/DEADBAND.svg \
198 images/blocks/Diode.svg \
199 images/blocks/DSCOPE.svg \
200 images/blocks/Flowmeter.svg \
201 images/blocks/Ground.svg \
202 images/blocks/Gyrator.svg \
203 images/blocks/HYSTHERESIS.svg \
204 images/blocks/IdealTransformer.svg \
205 images/blocks/Inductor.svg \
206 images/blocks/INTEGRAL.svg \
207 images/blocks/NMOS.svg \
208 images/blocks/NPN.svg \
209 images/blocks/PerteDP.svg \
210 images/blocks/PMOS.svg \
211 images/blocks/PNP.svg \
212 images/blocks/PotentialSensor.svg \
213 images/blocks/PRODUCT.svg \
214 images/blocks/PuitP.svg \
215 images/blocks/PULSE_SC.svg \
216 images/blocks/QUANT_f.svg \
217 images/blocks/RAMP.svg \
218 images/blocks/Resistor.svg \
219 images/blocks/SampleCLK.svg \
220 images/blocks/SATURATION.svg \
221 images/blocks/sawtooth.svg \
222 images/blocks/Self_Switch_off.svg \
223 images/blocks/Self_Switch_on.svg \
224 images/blocks/SELF_SWITCH.svg \
225 images/blocks/SINUS_f.svg \
226 images/blocks/SourceP.svg \
227 images/blocks/SQUARE_WAVE_f.svg \
228 images/blocks/STEP_FUNCTION.svg \
229 images/blocks/SUM.svg \
230 images/blocks/SUPER.svg \
231 images/blocks/SWITCH.svg \
232 images/blocks/VanneReglante.svg \
233 images/blocks/VariableResistor.svg \
234 images/blocks/VoltageSensor.svg \
235 images/icons/16x16/actions/align-horizontal-center.png \
236 images/icons/16x16/actions/align-horizontal-left.png \
237 images/icons/16x16/actions/align-horizontal-right.png \
238 images/icons/16x16/actions/align-vertical-bottom.png \
239 images/icons/16x16/actions/align-vertical-center.png \
240 images/icons/16x16/actions/align-vertical-top.png \
241 images/icons/16x16/actions/color-fill.png \
242 images/icons/16x16/actions/draw-brush.png \
243 images/icons/16x16/actions/object-group.png \
244 images/icons/16x16/actions/process-stop.png \
245 images/icons/16x16/actions/select-by-color.png \
246 images/icons/16x16/actions/transform-flip.png \
247 images/icons/16x16/actions/transform-mirror.png \
248 images/icons/16x16/categories/preferences-desktop.png \
249 images/palettes/ABS_VALUE.png \
250 images/palettes/AFFICH_m.png \
251 images/palettes/ANDBLK.png \
252 images/palettes/ANDLOG_f.png \
253 images/palettes/AUTOMAT.png \
254 images/palettes/Bache.png \
255 images/palettes/BACKLASH.png \
256 images/palettes/BARXY.png \
257 images/palettes/BIGSOM_f.png \
258 images/palettes/BITCLEAR.png \
259 images/palettes/BITSET.png \
260 images/palettes/BOUNCE.png \
261 images/palettes/BOUNCEXY.png \
262 images/palettes/BPLATFORM.png \
263 images/palettes/CANIMXY3D.png \
264 images/palettes/CANIMXY.png \
265 images/palettes/Capacitor.png \
266 images/palettes/c_block.png \
267 images/palettes/CBLOCK.png \
268 images/palettes/CCS.png \
269 images/palettes/CEVENTSCOPE.png \
270 images/palettes/CFSCOPE.png \
271 images/palettes/CLINDUMMY_f.png \
272 images/palettes/CLKFROM.png \
273 images/palettes/CLKGOTO.png \
274 images/palettes/CLKGotoTagVisibility.png \
275 images/palettes/CLKINV_f.png \
276 images/palettes/CLKOUTV_f.png \
277 images/palettes/CLKSOMV_f.png \
278 images/palettes/CLOCK_c.png \
279 images/palettes/CLR.png \
280 images/palettes/CLSS.png \
281 images/palettes/CMAT3D.png \
282 images/palettes/CMATVIEW.png \
283 images/palettes/CMSCOPE.png \
284 images/palettes/SCALE_CMSCOPE.png \
285 images/palettes/ConstantVoltage.png \
286 images/palettes/CONST_f.png \
287 images/palettes/CONST_m.png \
288 images/palettes/CONST.png \
289 images/palettes/CONSTRAINT2_c.png \
290 images/palettes/CONSTRAINT_c.png \
291 images/palettes/CONVERT.png \
292 images/palettes/COSBLK_f.png \
293 images/palettes/Counter.png \
294 images/palettes/CSCOPE.png \
295 images/palettes/SCALE_CSCOPE.png \
296 images/palettes/CSCOPXY3D.png \
297 images/palettes/CSCOPXY.png \
298 images/palettes/CUMSUM.png \
299 images/palettes/CurrentSensor.png \
300 images/palettes/CURV_f.png \
301 images/palettes/CVS.png \
302 images/palettes/DEADBAND.png \
303 images/palettes/DEBUG.png \
304 images/palettes/DELAY_f.png \
305 images/palettes/DELAYV_f.png \
306 images/palettes/DEMUX_f.png \
307 images/palettes/DEMUX.png \
308 images/palettes/DERIV.png \
309 images/palettes/DFLIPFLOP.png \
310 images/palettes/DIFF_f.png \
311 images/palettes/Diode.png \
312 images/palettes/DLATCH.png \
313 images/palettes/DLRADAPT_f.png \
314 images/palettes/DLR.png \
315 images/palettes/DLSS.png \
316 images/palettes/DOLLAR_f.png \
317 images/palettes/DOLLAR_m.png \
318 images/palettes/DOLLAR.png \
319 images/palettes/EDGE_TRIGGER.png \
320 images/palettes/ENDBLK.png \
321 images/palettes/END_c.png \
322 images/palettes/ESELECT_f.png \
323 images/palettes/EVTDLY_c.png \
324 images/palettes/EVTGEN_f.png \
325 images/palettes/EVTVARDLY.png \
326 images/palettes/EXPBLK_m.png \
327 images/palettes/EXPRESSION.png \
328 images/palettes/Extract_Activation.png \
329 images/palettes/EXTRACTBITS.png \
330 images/palettes/EXTRACTOR.png \
331 images/palettes/EXTRACT.png \
332 images/palettes/EXTTRI.png \
333 images/palettes/Flowmeter.png \
334 images/palettes/fortran_block.png \
335 images/palettes/freq_div.png \
336 images/palettes/FROMMO.png \
337 images/palettes/FROM.png \
338 images/palettes/FROMWSB.png \
339 images/palettes/GAINBLK_f.png \
340 images/palettes/GAINBLK.png \
341 images/palettes/GAIN_f.png \
342 images/palettes/GENERAL_f.png \
343 images/palettes/generic_block3.png \
344 images/palettes/GENSIN_f.png \
345 images/palettes/GENSQR_f.png \
346 images/palettes/GOTOMO.png \
347 images/palettes/GOTO.png \
348 images/palettes/GotoTagVisibilityMO.png \
349 images/palettes/GotoTagVisibility.png \
350 images/palettes/Ground.png \
351 images/palettes/Gyrator.png \
352 images/palettes/HALT_f.png \
353 images/palettes/HYSTHERESIS.png \
354 images/palettes/IdealTransformer.png \
355 images/palettes/IFTHEL_f.png \
356 images/palettes/Inductor.png \
357 images/palettes/IN_f.png \
358 images/palettes/INIMPL_f.png \
359 images/palettes/INTEGRAL_f.png \
360 images/palettes/INTEGRAL_m.png \
361 images/palettes/INTMUL.png \
362 images/palettes/INTRP2BLK_f.png \
363 images/palettes/INTRPLBLK_f.png \
364 images/palettes/INVBLK.png \
365 images/palettes/ISELECT_m.png \
366 images/palettes/JKFLIPFLOP.png \
367 images/palettes/LOGBLK_f.png \
368 images/palettes/LOGICAL_OP.png \
369 images/palettes/LOGIC.png \
370 images/palettes/LOOKUP_f.png \
371 images/palettes/MATBKSL.png \
372 images/palettes/MATCATH.png \
373 images/palettes/MATCATV.png \
374 images/palettes/MATDET.png \
375 images/palettes/MATDIAG.png \
376 images/palettes/MATDIV.png \
377 images/palettes/MATEIG.png \
378 images/palettes/MATEXPM.png \
379 images/palettes/MATINV.png \
380 images/palettes/MATLU.png \
381 images/palettes/MATMAGPHI.png \
382 images/palettes/MATMUL.png \
383 images/palettes/MATPINV.png \
384 images/palettes/MATRESH.png \
385 images/palettes/MATSING.png \
386 images/palettes/MATSUM.png \
387 images/palettes/MATTRAN.png \
388 images/palettes/MATZCONJ.png \
389 images/palettes/MATZREIM.png \
390 images/palettes/MAX_f.png \
391 images/palettes/MAXMIN.png \
392 images/palettes/MBLOCK.png \
393 images/palettes/MCLOCK_f.png \
394 images/palettes/MFCLCK_f.png \
395 images/palettes/M_freq.png \
396 images/palettes/MIN_f.png \
397 images/palettes/Modulo_Count.png \
398 images/palettes/M_SWITCH.png \
399 images/palettes/MUX_f.png \
400 images/palettes/MUX.png \
401 images/palettes/NEGTOPOS_f.png \
402 images/palettes/NMOS.png \
403 images/palettes/NPN.png \
404 images/palettes/NRMSOM_f.png \
405 images/palettes/OpAmp.png \
406 images/palettes/OUT_f.png \
407 images/palettes/OUTIMPL_f.png \
408 images/palettes/PDE.png \
409 images/palettes/PerteDP.png \
410 images/palettes/PID.png \
411 images/palettes/PMOS.png \
412 images/palettes/PNP.png \
413 images/palettes/POSTONEG_f.png \
414 images/palettes/PotentialSensor.png \
415 images/palettes/POWBLK_f.png \
416 images/palettes/PROD_f.png \
417 images/palettes/PRODUCT.png \
418 images/palettes/PuitsP.png \
419 images/palettes/PULSE_SC.png \
420 images/palettes/QUANT_f.png \
421 images/palettes/RAMP.png \
422 images/palettes/RAND_m.png \
423 images/palettes/RATELIMITER.png \
424 images/palettes/READAU_f.png \
425 images/palettes/READC_f.png \
426 images/palettes/REGISTER.png \
427 images/palettes/RELATIONALOP.png \
428 images/palettes/RELAY_f.png \
429 images/palettes/Resistor.png \
430 images/palettes/RFILE_f.png \
431 images/palettes/RICC.png \
432 images/palettes/ROOTCOEF.png \
433 images/palettes/SAMPHOLD_m.png \
434 images/palettes/SampleCLK.png \
435 images/palettes/SATURATION.png \
436 images/palettes/SAWTOOTH_f.png \
437 images/palettes/SCALAR2VECTOR.png \
438 images/palettes/scifunc_block_m.png \
439 images/palettes/SELECT_m.png \
440 images/palettes/SELF_SWITCH.png \
441 images/palettes/SHIFT.png \
442 images/palettes/Sigbuilder.png \
443 images/palettes/SIGNUM.png \
444 images/palettes/SINBLK_f.png \
445 images/palettes/SineVoltage.png \
446 images/palettes/SOM_f.png \
447 images/palettes/SourceP.png \
448 images/palettes/SQRT.png \
449 images/palettes/SRFLIPFLOP.png \
450 images/palettes/STEP_FUNCTION.png \
451 images/palettes/SUBMAT.png \
452 images/palettes/SUM_f.png \
453 images/palettes/SUMMATION.png \
454 images/palettes/SUPER_f.png \
455 images/palettes/SWITCH2_m.png \
456 images/palettes/SWITCH_f.png \
457 images/palettes/Switch.png \
458 images/palettes/TANBLK_f.png \
459 images/palettes/TCLSS.png \
460 images/palettes/TEXT_f.png \
461 images/palettes/TIME_DELAY.png \
462 images/palettes/TIME_f.png \
463 images/palettes/TKSCALE.png \
464 images/palettes/TOWS_c.png \
465 images/palettes/TRASH_f.png \
466 images/palettes/TrigFun.png \
467 images/palettes/VanneReglante.png \
468 images/palettes/VARIABLE_DELAY.png \
469 images/palettes/VariableResistor.png \
470 images/palettes/VirtualCLK0.png \
471 images/palettes/VoltageSensor.png \
472 images/palettes/VsourceAC.png \
473 images/palettes/VVsourceAC.png \
474 images/palettes/WRITEAU_f.png \
475 images/palettes/WRITEC_f.png \
476 images/palettes/ZCROSS_f.png
477
478 if XCOS
479 if GUI
480 USEANT=1
481 endif
482 endif
483
484 include $(top_srcdir)/Makefile.incl.am