summaryrefslogtreecommitdiffstats
path: root/scilab/modules/graphic_export/Makefile.am
blob: b4ca3bd7270e4792668b1d9d329719cda7ca2649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
##########
### Sylvestre Ledru <sylvestre.ledru@inria.fr>
### Graphic export module
### INRIA - Scilab 2008
##########

if GUI
# List of the c files
GRAPHIC_EXPORT_CPP_SOURCES = src/cpp/exportToFile.cpp \
src/jni/FileExporter.cpp \
src/cpp/GL2PSConstant.cpp \
src/cpp/GL2PSWrapping.cpp \
src/cpp/JoGLInterface.cpp  \
src/jni/GL2PSToJOGL.cpp \
src/jni/JOGLConstant.cpp

GRAPHIC_EXPORT_C_SOURCES = src/c/xs2file.c \
src/jni/GL2PSConstant_wrap.c \
src/jni/GL2PSWrapping_wrap.c \
src/c/gl2ps/gl2ps.c

# List of the gateway c files
GATEWAY_C_SOURCES = sci_gateway/c/gw_graphic_export.c \
sci_gateway/c/sci_xs2bmp.c \
sci_gateway/c/sci_xs2gif.c \
sci_gateway/c/sci_xs2ppm.c \
sci_gateway/c/sci_xs2ps.c \
sci_gateway/c/sci_xs2svg.c \
sci_gateway/c/sci_xs2jpg.c \
sci_gateway/c/sci_xs2png.c \
sci_gateway/c/sci_xs2eps.c \
sci_gateway/c/sci_xs2pdf.c


# Includes need for the compilation
libscigraphic_export_la_CPPFLAGS =  	$(JAVA_JNI_INCLUDE) \
				-Iincludes/ \
				-Isrc/cpp/ \
				-Isrc/jni/ \
				-Isrc/c/ \
				-I$(top_srcdir)/modules/jvm/includes \
				-I$(top_srcdir)/modules/graphics/includes/ \
				-I$(top_srcdir)/modules/renderer/includes/ \
				-I$(top_srcdir)/modules/output_stream/includes \
				-I$(top_srcdir)/libs/doublylinkedlist/includes


# All the sources needed by libscigraphic_export.la
libscigraphic_export_la_SOURCES = $(GRAPHIC_EXPORT_C_SOURCES) $(GATEWAY_C_SOURCES) $(GRAPHIC_EXPORT_CPP_SOURCES)

## Libraries necessary
## Change to include other Scilab modules/lib
libscigraphic_export_la_LIBADD =  $(top_builddir)/modules/jvm/libscijvm.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/graphics/libscigraphics.la

GIWS_WRAPPERS= src/jni/FileExporter.giws.xml \
src/jni/GL2PSToJOGL.giws.xml \
src/jni/JOGLConstant.giws.xml


else

# All the sources needed by libscigraphic_export.la
libscigraphic_export_la_SOURCES = src/nographic_export/nographic_export.c

libscigraphic_export_la_CPPFLAGS = -I$(top_srcdir)/modules/output_stream/includes
endif

# Name of the future library (.la will be replace by .so, .a, etc regarding
# the system)
pkglib_LTLIBRARIES = libscigraphic_export.la

libscigraphic_export_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)


#### Name of the module and the path ######
modulename=graphic_export

#### graphic_export : Conf files ####
libscigraphic_export_la_rootdir = $(mydatadir)
libscigraphic_export_la_root_DATA = changelog.txt license.txt readme.txt version.xml

#### graphic_export : init scripts ####
libscigraphic_export_la_etcdir = $(mydatadir)/etc
libscigraphic_export_la_etc_DATA = etc/graphic_export.quit etc/graphic_export.start

#### graphic_export : gateway declaration ####
libscigraphic_export_la_sci_gatewaydir = $(mydatadir)/sci_gateway
libscigraphic_export_la_sci_gateway_DATA = sci_gateway/graphic_export_gateway.xml

#### graphic_export : include files ####
libscigraphic_export_la_includedir=$(pkgincludedir)/graphic_export
libscigraphic_export_la_include_HEADERS = includes/gw_graphic_export.h \
includes/sci_xs2ppm.h \
includes/sci_xs2gif.h \
includes/xs2file.h \
includes/sci_xs2bmp.h \
includes/sci_xs2ps.h \
includes/sci_xs2eps.h \
includes/sci_xs2jpg.h \
includes/sci_xs2pdf.h \
includes/sci_xs2png.h \
includes/sci_xs2svg.h

# Provides macros compilation, Java compilation, cleaning
# If you want Makefile to call ant, added USEANT=1

USEANT=1

include $(top_srcdir)/Makefile.incl.am