e57de4c4cdd97b0485f30dfb6cd674a1e4ede5b1
[scilab.git] / scilab / modules / graphic_export / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA   - 2008 - Sylvestre Ledru
4 # Copyright (C) DIGITEO - 2009 - Pierre MARECHAL
5
6 # This file must be used under the terms of the CeCILL.
7 # This source file is licensed as described in the file COPYING, which
8 # you should have received as part of this distribution.  The terms
9 # are also available at    
10 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11 #
12
13
14 #### Name of the module and the path ######
15 modulename=graphic_export
16
17 #### graphic_export : Conf files ####
18 libscigraphic_export_la_rootdir = $(mydatadir)
19 libscigraphic_export_la_root_DATA =  license.txt 
20
21 #### graphic_export : init scripts ####
22 libscigraphic_export_la_etcdir = $(mydatadir)/etc
23 libscigraphic_export_la_etc_DATA = etc/graphic_export.quit etc/graphic_export.start
24
25
26 # List of the c files
27 GRAPHIC_EXPORT_CPP_SOURCES = src/cpp/exportToFile.cpp \
28 src/jni/FileExporter.cpp \
29 src/cpp/GL2PSConstant.cpp \
30 src/cpp/GL2PSWrapping.cpp \
31 src/cpp/JoGLInterface.cpp  \
32 src/jni/GL2PSToJOGL.cpp \
33 src/jni/JOGLConstant.cpp
34
35 GRAPHIC_EXPORT_C_SOURCES = src/c/xs2file.c \
36 src/jni/GL2PSConstant_wrap.c \
37 src/jni/GL2PSWrapping_wrap.c \
38 src/c/gl2ps/gl2ps.c
39
40 # List of the gateway c files
41 GATEWAY_C_SOURCES = sci_gateway/c/gw_graphic_export.c \
42 sci_gateway/c/sci_xs2bmp.c \
43 sci_gateway/c/sci_xs2gif.c \
44 sci_gateway/c/sci_xs2ppm.c \
45 sci_gateway/c/sci_xs2ps.c \
46 sci_gateway/c/sci_xs2svg.c \
47 sci_gateway/c/sci_xs2jpg.c \
48 sci_gateway/c/sci_xs2eps.c \
49 sci_gateway/c/sci_xs2pdf.c \
50 sci_gateway/c/sci_xs2png.c
51
52 GATEWAY_CPP_SOURCES = 
53
54 # Includes need for the compilation
55 libscigraphic_export_la_CPPFLAGS =      $(JAVA_JNI_INCLUDE) \
56                                 -I$(srcdir)/includes/ \
57                                 -I$(srcdir)/src/cpp/ \
58                                 -I$(srcdir)/src/jni/ \
59                                 -I$(srcdir)/src/c/ \
60                                 -I$(top_srcdir)/modules/jvm/includes \
61                                 -I$(top_srcdir)/modules/graphics/includes/ \
62                                 -I$(top_srcdir)/modules/renderer/includes/ \
63                                 -I$(top_srcdir)/modules/output_stream/includes \
64                                 -I$(top_srcdir)/modules/fileio/includes \
65                                 -I$(top_srcdir)/modules/api_scilab/includes \
66                                 -I$(top_srcdir)/modules/commons/src/jni \
67                                 -I$(top_srcdir)/libs/doublylinkedlist/includes \
68                                 -I$(top_srcdir)/modules/graphic_objects/includes
69
70 # All the sources needed by libscigraphic_export.la
71 libscigraphic_export_algo_la_SOURCES = $(GRAPHIC_EXPORT_C_SOURCES) $(GRAPHIC_EXPORT_CPP_SOURCES)
72 libscigraphic_export_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
73 libscigraphic_export_algo_la_CFLAGS = $(libscigraphic_export_la_CFLAGS)
74 libscigraphic_export_algo_la_CPPFLAGS = $(libscigraphic_export_la_CPPFLAGS)
75
76 # For the code check (splint)
77 CHECK_SRC= $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
78 INCLUDE_FLAGS = $(libscigraphic_export_la_CPPFLAGS)
79
80 ## Libraries necessary
81 ## Change to include other Scilab modules/lib
82 libscigraphic_export_la_LIBADD = libscigraphic_export-algo.la
83
84 GIWS_WRAPPERS= src/jni/FileExporter.giws.xml \
85 src/jni/GL2PSToJOGL.giws.xml \
86 src/jni/JOGLConstant.giws.xml
87
88 SWIG_WRAPPERS = src/jni/GL2PSConstant.i \
89 src/jni/GL2PSWrapping.i
90
91 BUILT_SOURCES=
92 if GIWS
93 BUILT_SOURCES+=giws
94 endif
95 if SWIG
96 BUILT_SOURCES+=swig
97 endif
98
99 # All the sources needed by libscigraphic_export.la
100 libscigraphic_export_disable_la_SOURCES = src/nographic_export/nographic_export.c
101
102 libscigraphic_export_disable_la_CPPFLAGS = -I$(top_srcdir)/modules/output_stream/includes \
103         -I$(top_srcdir)/modules/api_scilab/includes \
104         -I$(srcdir)/includes/ 
105
106 # Name of the future library (.la will be replace by .so, .a, etc regarding
107 # the system)
108 pkglib_LTLIBRARIES = libscigraphic_export-disable.la
109
110 if GUI
111 USEANT=1
112 pkglib_LTLIBRARIES += libscigraphic_export.la 
113 noinst_LTLIBRARIES = libscigraphic_export-algo.la 
114 endif
115
116 libscigraphic_export_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
117
118 #### graphic_export : gateway declaration ####
119 libscigraphic_export_la_sci_gatewaydir = $(mydatadir)/sci_gateway
120 libscigraphic_export_la_sci_gateway_DATA = sci_gateway/graphic_export_gateway.xml
121
122 include $(top_srcdir)/Makefile.incl.am