feeada0445ce5d3a52eadb954cd99ac846cf88ea
[scilab.git] / scilab / modules / graphic_objects / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2010 - Allan CORNET
4 #
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
10 #
11
12 #### Target ######
13 modulename=graphic_objects
14
15
16 #### graphic_objects : Conf files ####
17 libscigraphic_objects_la_rootdir = $(mydatadir)
18 libscigraphic_objects_la_root_DATA = changelog.txt license.txt readme.txt
19
20
21 #### graphic_objects : init scripts ####
22 libscigraphic_objects_la_etcdir = $(mydatadir)/etc
23 libscigraphic_objects_la_etc_DATA = etc/graphic_objects.quit \
24                                 etc/graphic_objects.start
25
26 include $(top_srcdir)/Makefile.incl.am
27
28 BUILT_SOURCES =         includes/graphicObjectsProperties.h
29 #This file is also generated, but can not be listed to prevent GCJ call.
30 #src/java/org/scilab/modules/graphic_objects/graphicObject/GraphicObjectProperties.java
31
32 GRAPHIC_OBJECTS_JNI_SOURCES = src/jni/CallGraphicController.cpp \
33                               src/jni/GraphicObjectBuilder.cpp \
34                               src/jni/Builder.cpp \
35                               src/jni/CallXmlLoader.cpp                              
36
37 GRAPHIC_OBJECTS_C_SOURCES = src/jni/DataLoader_wrap.c \
38                                                         src/jni/ScilabNativeView_wrap.c \
39                                                         src/jni/PolylineData_wrap.c \
40                                                         src/jni/SurfaceData_wrap.c \
41                             src/jni/ObjectData_wrap.c
42
43 GRAPHIC_OBJECTS_CXX_SOURCES =   src/cpp/createGraphicObject.cpp \
44                                                                 src/cpp/getGraphicObjectProperty.cpp \
45                                                                 src/cpp/getConsoleIdentifier.cpp \
46                                                                 src/cpp/setGraphicObjectProperty.cpp \
47                                                                 src/cpp/deleteGraphicObject.cpp \
48                                                                 src/cpp/dataModel.cpp \
49                                                                 src/cpp/Data3D.cpp \
50                                                                 src/cpp/DataLoader.cpp \
51                                                                 src/cpp/NgonData.cpp \
52                                                                 src/cpp/NgonGeneralData.cpp \
53                                                                 src/cpp/NgonGridData.cpp \
54                                                                 src/cpp/NgonGridMatplotData.cpp \
55                                                                 src/cpp/NgonPolylineData.cpp \
56                                                                 src/cpp/TriangleMeshData.cpp \
57                                                                 src/cpp/TriangleMeshFecData.cpp \
58                                                                 src/cpp/ColorComputer.cpp \
59                                                                 src/cpp/DecompositionUtils.cpp \
60                                                                 src/cpp/Fac3DColorComputer.cpp \
61                                                                 src/cpp/Fac3DDecomposer.cpp \
62                                                                 src/cpp/NgonGridDataDecomposer.cpp \
63                                                                 src/cpp/NgonGridGrayplotDataDecomposer.cpp \
64                                                                 src/cpp/MatPlotDecomposer.cpp \
65                                                                 src/cpp/NgonGridMatplotDataDecomposer.cpp \
66                                                                 src/cpp/Plot3DDecomposer.cpp \
67                                                                 src/cpp/PolylineDecomposer.cpp \
68                                                                 src/cpp/TriangleMeshFecDataDecomposer.cpp \
69                                                                 src/cpp/Triangulator.cpp \
70                                                                 src/cpp/ScilabView.cpp \
71                                                                 src/cpp/FigureList.cpp \
72                                                                 src/cpp/HandleManagement.cpp \
73                                                                 src/cpp/AxesModel.cpp \
74                                                                 src/cpp/FigureModel.cpp \
75                                                                 src/cpp/CurrentFigure.cpp \
76                                                                 src/cpp/CurrentObject.cpp \
77                                                                 src/cpp/CurrentSubwin.cpp \
78                                                                 src/cpp/createObjectData.cpp \
79                                                                 src/cpp/pickSurface.cpp \
80                                                                 src/cpp/Texture.cpp \
81                                                                 src/cpp/NormalGenerator.cpp
82
83 GIWS_WRAPPERS = src/jni/graphic_objects.giws.xml \
84                 src/jni/builder.giws.xml
85
86 if GIWS
87 BUILT_SOURCES += giws
88 endif
89
90
91 libscigraphic_objects_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
92                         -I$(srcdir)/includes/ \
93                         -I$(srcdir)/src/cpp/ \
94                         -I$(srcdir)/src/c/ \
95                         -I$(srcdir)/src/jni/ \
96                         -I$(top_srcdir)/modules/api_scilab/includes/ \
97                         -I$(top_srcdir)/modules/commons/src/jni/ \
98                         -I$(top_srcdir)/modules/core/includes/ \
99                         -I$(top_srcdir)/modules/jvm/includes/ \
100                         -I$(top_srcdir)/modules/localization/includes/ \
101                         -I$(top_srcdir)/modules/output_stream/includes/ 
102                         $(AM_CPPFLAGS)
103
104 # Without the graphic_objects module
105 libscigraphic_objects_disable_la_CPPFLAGS = -I$(srcdir)/includes/ \
106                         -I$(top_srcdir)/modules/localization/includes/ \
107                         -I$(top_srcdir)/modules/output_stream/includes/ 
108                         $(AM_CPPFLAGS)
109
110 GRAPHIC_OBJECTS_DISABLE_C_SOURCES = src/nographic_objects/nographic_objects.c
111 libscigraphic_objects_disable_la_SOURCES = $(GRAPHIC_OBJECTS_DISABLE_C_SOURCES)
112
113 pkglib_LTLIBRARIES = libscigraphic_objects-disable.la
114
115 if GUI
116 pkglib_LTLIBRARIES += libscigraphic_objects.la
117 endif
118
119 libscigraphic_objects_la_LDFLAGS = $(X_LIBS) $(X_EXTRA_LIBS) $(AM_LDFLAGS)
120
121 libscigraphic_objects_la_SOURCES = $(GRAPHIC_OBJECTS_GEN_SOURCES) $(GRAPHIC_OBJECTS_C_SOURCES) $(GRAPHIC_OBJECTS_JNI_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES) $(GRAPHIC_OBJECTS_CXX_SOURCES)
122
123 # For the code check (splint)
124 CHECK_SRC= $(GRAPHIC_OBJECTS_C_SOURCES) $(GATEWAY_C_SOURCES)
125 INCLUDE_FLAGS = $(libscigraphic_objects_la_CPPFLAGS)
126
127
128 #### SWIG Declaration ####
129 SWIG_WRAPPERS = src/jni/DataLoader.i \
130                                 src/jni/ScilabNativeView.i \
131                                 src/jni/PolylineData.i \
132                                 src/jni/SurfaceData.i \
133                                 src/jni/graphic_objects.i \
134                                 src/jni/ObjectData.i
135
136 if SWIG
137 BUILT_SOURCES+=swig
138 endif
139
140 libscigraphic_objects_la_LIBADD = $(top_builddir)/modules/output_stream/libscioutput_stream.la
141
142
143 #### graphic_objects : gateway declaration ####
144 libscigraphic_objects_la_sci_gatewaydir = $(mydatadir)/sci_gateway
145 libscigraphic_objects_la_sci_gateway_DATA = sci_gateway/graphic_objects_gateway.xml
146
147 includes/graphicObjectsProperties.h: Makefile.am src/scripts/propertiesMap.properties
148         @$(top_srcdir)/modules/graphic_objects/src/scripts/genPropertiesName.sh --C $(top_srcdir)/modules/graphic_objects/src/scripts/propertiesMap.properties $(top_srcdir)/modules/graphic_objects/includes/graphicObjectProperties.h
149         @$(top_srcdir)/modules/graphic_objects/src/scripts/genPropertiesName.sh --java $(top_srcdir)/modules/graphic_objects/src/scripts/propertiesMap.properties $(top_srcdir)/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/graphicObject/GraphicObjectProperties.java
150
151 if GUI
152 USEANT=1
153 endif