168e191907f08fe3d1995d2871dc47b2788e325a
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
6 #
7 # This file is hereby licensed under the terms of the GNU GPL v2.0,
8 # pursuant to article 5.3.4 of the CeCILL v.2.1.
9 # This file was originally licensed under the terms of the CeCILL v2.1,
10 # and continues to be available under such terms.
11 # For more information, see the COPYING file which you should have received
12 # along with this program.
13 #
14
15 #### Target ######
16 modulename=graphic_objects
17
18
19 #### graphic_objects : Conf files ####
20 libscigraphic_objects_la_rootdir = $(mydatadir)
21 libscigraphic_objects_la_root_DATA = changelog.txt license.txt readme.txt
22
23
24 #### graphic_objects : init scripts ####
25 libscigraphic_objects_la_etcdir = $(mydatadir)/etc
26 libscigraphic_objects_la_etc_DATA = \
27     etc/graphic_objects.quit \
28         etc/graphic_objects.start
29
30 include $(top_srcdir)/Makefile.incl.am
31
32 BUILT_SOURCES =         includes/graphicObjectsProperties.h
33 #This file is also generated, but can not be listed to prevent GCJ call.
34 #src/java/org/scilab/modules/graphic_objects/graphicObject/GraphicObjectProperties.java
35
36 GRAPHIC_OBJECTS_JNI_SOURCES = \
37     src/jni/CallGraphicController.cpp \
38     src/jni/Builder.cpp \
39     src/jni/CallXmlLoader.cpp
40
41 GRAPHIC_OBJECTS_C_SOURCES = \
42     src/jni/DataLoader_wrap.c \
43     src/jni/ScilabNativeView_wrap.c \
44     src/jni/PolylineData_wrap.c \
45     src/jni/SurfaceData_wrap.c \
46     src/jni/ObjectData_wrap.c \
47     src/jni/ScilabNativeWebView_wrap.c
48
49 GRAPHIC_OBJECTS_CXX_SOURCES = \
50     src/cpp/createGraphicObject.cpp \
51     src/cpp/getGraphicObjectProperty.cpp \
52     src/cpp/getConsoleIdentifier.cpp \
53     src/cpp/setGraphicObjectProperty.cpp \
54     src/cpp/deleteGraphicObject.cpp \
55     src/cpp/dataModel.cpp \
56     src/cpp/Data3D.cpp \
57     src/cpp/DataLoader.cpp \
58     src/cpp/NgonData.cpp \
59     src/cpp/NgonGeneralData.cpp \
60     src/cpp/NgonGridData.cpp \
61     src/cpp/NgonGridMatplotData.cpp \
62     src/cpp/NgonPolylineData.cpp \
63     src/cpp/MeshData.cpp \
64     src/cpp/MeshFecData.cpp \
65     src/cpp/ColorComputer.cpp \
66     src/cpp/DecompositionUtils.cpp \
67     src/cpp/Fac3DColorComputer.cpp \
68     src/cpp/Fac3DDecomposer.cpp \
69     src/cpp/NgonGridDataDecomposer.cpp \
70     src/cpp/NgonGridGrayplotDataDecomposer.cpp \
71     src/cpp/MatPlotDecomposer.cpp \
72     src/cpp/NgonGridMatplotDataDecomposer.cpp \
73     src/cpp/Plot3DDecomposer.cpp \
74     src/cpp/PolylineDecomposer.cpp \
75     src/cpp/MeshFecDataDecomposer.cpp \
76     src/cpp/Triangulator.cpp \
77     src/cpp/ScilabView.cpp \
78     src/cpp/FigureList.cpp \
79     src/cpp/HandleManagement.cpp \
80     src/cpp/AxesModel.cpp \
81     src/cpp/FigureModel.cpp \
82     src/cpp/CurrentFigure.cpp \
83     src/cpp/CurrentObject.cpp \
84     src/cpp/CurrentSubwin.cpp \
85     src/cpp/createObjectData.cpp \
86     src/cpp/pickSurface.cpp \
87     src/cpp/Texture.cpp \
88     src/cpp/NormalGenerator.cpp \
89     src/cpp/DllmainGraphic_objects.cpp \
90     src/cpp/ScilabWebView.cpp \
91     src/cpp/webutils.cpp
92
93 GIWS_WRAPPERS = \
94     src/jni/graphic_objects.giws.xml \
95     src/jni/builder.giws.xml
96
97 if GIWS
98 BUILT_SOURCES += giws
99 endif
100
101
102 libscigraphic_objects_la_CPPFLAGS = \
103     -I$(srcdir)/includes/ \
104     -I$(srcdir)/src/cpp/ \
105     -I$(srcdir)/src/c/ \
106     -I$(srcdir)/src/jni/ \
107     -I$(top_srcdir)/modules/api_scilab/includes/ \
108     -I$(top_srcdir)/modules/commons/src/jni/ \
109     -I$(top_srcdir)/modules/core/includes/ \
110     -I$(top_srcdir)/modules/jvm/includes/ \
111     -I$(top_srcdir)/modules/localization/includes/ \
112     -I$(top_srcdir)/modules/ast/includes/ast/ \
113     -I$(top_srcdir)/modules/ast/includes/exps/ \
114     -I$(top_srcdir)/modules/ast/includes/operations/ \
115     -I$(top_srcdir)/modules/ast/includes/parse/ \
116     -I$(top_srcdir)/modules/ast/includes/symbol/ \
117     -I$(top_srcdir)/modules/ast/includes/system_env/ \
118     -I$(top_srcdir)/modules/ast/includes/types/ \
119     -I$(top_srcdir)/modules/ast/includes/analysis/ \
120     -I$(top_srcdir)/modules/output_stream/includes/ \
121     -I$(top_srcdir)/modules/string/includes/ \
122     -I$(top_srcdir)/modules/threads/includes/ \
123     -I$(top_srcdir)/modules/dynamic_link/includes/ \
124     -I$(top_srcdir)/modules/graphics/src/c/getHandleProperty/ \
125     -I$(top_srcdir)/usr/include/ \
126     $(JAVA_JNI_INCLUDE) \
127     $(AM_CPPFLAGS)
128
129 # Without the graphic_objects module
130 libscigraphic_objects_disable_la_CPPFLAGS = \
131     -I$(srcdir)/includes/ \
132     -I$(top_srcdir)/modules/localization/includes/ \
133     -I$(top_srcdir)/modules/output_stream/includes/ \
134     -I$(top_srcdir)/modules/ast/includes/ast/ \
135     -I$(top_srcdir)/modules/ast/includes/exps/ \
136     -I$(top_srcdir)/modules/ast/includes/operations/ \
137     -I$(top_srcdir)/modules/ast/includes/parse/ \
138     -I$(top_srcdir)/modules/ast/includes/symbol/ \
139     -I$(top_srcdir)/modules/ast/includes/system_env/ \
140     -I$(top_srcdir)/modules/ast/includes/types/ \
141     $(AM_CPPFLAGS)
142
143 GRAPHIC_OBJECTS_DISABLE_C_SOURCES = src/nographic_objects/nographic_objects.c
144 libscigraphic_objects_disable_la_SOURCES = $(GRAPHIC_OBJECTS_DISABLE_C_SOURCES)
145
146 pkglib_LTLIBRARIES = libscigraphic_objects-disable.la
147
148 if GUI
149 pkglib_LTLIBRARIES += libscigraphic_objects.la
150 endif
151
152 libscigraphic_objects_la_LDFLAGS = $(AM_LDFLAGS)
153
154 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)
155
156 # For the code check (splint)
157 CHECK_SRC= $(GRAPHIC_OBJECTS_C_SOURCES) $(GATEWAY_C_SOURCES)
158 INCLUDE_FLAGS = $(libscigraphic_objects_la_CPPFLAGS)
159
160
161 #### SWIG Declaration ####
162 SWIG_WRAPPERS = \
163     src/jni/DataLoader.i \
164     src/jni/ScilabNativeView.i \
165     src/jni/PolylineData.i \
166     src/jni/SurfaceData.i \
167     src/jni/graphic_objects.i \
168     src/jni/ObjectData.i
169
170 if SWIG
171 BUILT_SOURCES+=swig
172 endif
173
174 libscigraphic_objects_la_LIBADD = $(top_builddir)/modules/output_stream/libscioutput_stream.la $(X_LIBS) $(X_EXTRA_LIBS) -L$(top_builddir)/lib/thirdparty/ -lsocketio_client
175
176
177 #### graphic_objects : gateway declaration ####
178 libscigraphic_objects_la_sci_gatewaydir = $(mydatadir)/sci_gateway
179 libscigraphic_objects_la_sci_gateway_DATA = sci_gateway/graphic_objects_gateway.xml
180
181 includes/graphicObjectsProperties.h: Makefile.am src/scripts/propertiesMap.properties
182         @$(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
183         @$(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
184
185 if GUI
186 USEANT=1
187 endif