Enable export via driver/xinit/xend
[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/jni/Driver.cpp \
30 src/cpp/GL2PSConstant.cpp \
31 src/cpp/GL2PSWrapping.cpp \
32 src/cpp/JoGLInterface.cpp  \
33 src/jni/GL2PSToJOGL.cpp \
34 src/jni/JOGLConstant.cpp
35
36 GRAPHIC_EXPORT_C_SOURCES = src/c/xs2file.c \
37 src/jni/GL2PSConstant_wrap.c \
38 src/jni/GL2PSWrapping_wrap.c \
39 src/c/gl2ps/gl2ps.c
40
41 # List of the gateway c files
42 GATEWAY_C_SOURCES = sci_gateway/c/gw_graphic_export.c \
43 sci_gateway/c/sci_xs2bmp.c \
44 sci_gateway/c/sci_xs2gif.c \
45 sci_gateway/c/sci_xs2ppm.c \
46 sci_gateway/c/sci_xs2ps.c \
47 sci_gateway/c/sci_xs2svg.c \
48 sci_gateway/c/sci_xs2jpg.c \
49 sci_gateway/c/sci_xs2eps.c \
50 sci_gateway/c/sci_xs2pdf.c \
51 sci_gateway/c/sci_xs2png.c
52
53 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_driver.cpp \
54 sci_gateway/cpp/sci_xinit.cpp \
55 sci_gateway/cpp/sci_xend.cpp
56
57 # Includes need for the compilation
58 libscigraphic_export_la_CPPFLAGS =      $(JAVA_JNI_INCLUDE) \
59                                 -I$(srcdir)/includes/ \
60                                 -I$(srcdir)/src/cpp/ \
61                                 -I$(srcdir)/src/jni/ \
62                                 -I$(srcdir)/src/c/ \
63                                 -I$(top_srcdir)/modules/jvm/includes \
64                                 -I$(top_srcdir)/modules/graphics/includes/ \
65                                 -I$(top_srcdir)/modules/renderer/includes/ \
66                                 -I$(top_srcdir)/modules/output_stream/includes \
67                                 -I$(top_srcdir)/modules/fileio/includes \
68                                 -I$(top_srcdir)/modules/api_scilab/includes \
69                                 -I$(top_srcdir)/modules/commons/src/jni \
70                                 -I$(top_srcdir)/libs/doublylinkedlist/includes \
71                                 -I$(top_srcdir)/modules/graphic_objects/includes \
72                                 -I$(top_srcdir)/modules/gui/src/jni
73
74 # All the sources needed by libscigraphic_export.la
75 libscigraphic_export_algo_la_SOURCES = $(GRAPHIC_EXPORT_C_SOURCES) $(GRAPHIC_EXPORT_CPP_SOURCES)
76 libscigraphic_export_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
77 libscigraphic_export_algo_la_CFLAGS = $(libscigraphic_export_la_CFLAGS)
78 libscigraphic_export_algo_la_CPPFLAGS = $(libscigraphic_export_la_CPPFLAGS)
79
80 # For the code check (splint)
81 CHECK_SRC= $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
82 INCLUDE_FLAGS = $(libscigraphic_export_la_CPPFLAGS)
83
84 ## Libraries necessary
85 ## Change to include other Scilab modules/lib
86 libscigraphic_export_la_LIBADD = libscigraphic_export-algo.la
87
88 GIWS_WRAPPERS= src/jni/FileExporter.giws.xml \
89 src/jni/GL2PSToJOGL.giws.xml \
90 src/jni/JOGLConstant.giws.xml
91
92 SWIG_WRAPPERS = src/jni/GL2PSConstant.i \
93 src/jni/GL2PSWrapping.i
94
95 BUILT_SOURCES=
96 if GIWS
97 BUILT_SOURCES+=giws
98 endif
99 if SWIG
100 BUILT_SOURCES+=swig
101 endif
102
103 # All the sources needed by libscigraphic_export.la
104 libscigraphic_export_disable_la_SOURCES = src/nographic_export/nographic_export.c
105
106 libscigraphic_export_disable_la_CPPFLAGS = -I$(top_srcdir)/modules/output_stream/includes \
107         -I$(top_srcdir)/modules/api_scilab/includes \
108         -I$(srcdir)/includes/ 
109
110 # Name of the future library (.la will be replace by .so, .a, etc regarding
111 # the system)
112 pkglib_LTLIBRARIES = libscigraphic_export-disable.la
113
114 if GUI
115 USEANT=1
116 pkglib_LTLIBRARIES += libscigraphic_export.la 
117 noinst_LTLIBRARIES = libscigraphic_export-algo.la 
118 endif
119
120 libscigraphic_export_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
121
122 #### graphic_export : gateway declaration ####
123 libscigraphic_export_la_sci_gatewaydir = $(mydatadir)/sci_gateway
124 libscigraphic_export_la_sci_gateway_DATA = sci_gateway/graphic_export_gateway.xml
125
126 include $(top_srcdir)/Makefile.incl.am