Fix the library linking declaration
[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/Builder.cpp \
34                               src/jni/CallXmlLoader.cpp
35
36 GRAPHIC_OBJECTS_C_SOURCES = src/jni/DataLoader_wrap.c \
37                                                         src/jni/ScilabNativeView_wrap.c \
38                                                         src/jni/PolylineData_wrap.c \
39                                                         src/jni/SurfaceData_wrap.c \
40                             src/jni/ObjectData_wrap.c
41
42 GRAPHIC_OBJECTS_CXX_SOURCES =   src/cpp/createGraphicObject.cpp \
43                                                                 src/cpp/getGraphicObjectProperty.cpp \
44                                                                 src/cpp/getConsoleIdentifier.cpp \
45                                                                 src/cpp/setGraphicObjectProperty.cpp \
46                                                                 src/cpp/deleteGraphicObject.cpp \
47                                                                 src/cpp/dataModel.cpp \
48                                                                 src/cpp/Data3D.cpp \
49                                                                 src/cpp/DataLoader.cpp \
50                                                                 src/cpp/NgonData.cpp \
51                                                                 src/cpp/NgonGeneralData.cpp \
52                                                                 src/cpp/NgonGridData.cpp \
53                                                                 src/cpp/NgonGridMatplotData.cpp \
54                                                                 src/cpp/NgonPolylineData.cpp \
55                                                                 src/cpp/TriangleMeshData.cpp \
56                                                                 src/cpp/TriangleMeshFecData.cpp \
57                                                                 src/cpp/ColorComputer.cpp \
58                                                                 src/cpp/DecompositionUtils.cpp \
59                                                                 src/cpp/Fac3DColorComputer.cpp \
60                                                                 src/cpp/Fac3DDecomposer.cpp \
61                                                                 src/cpp/NgonGridDataDecomposer.cpp \
62                                                                 src/cpp/NgonGridGrayplotDataDecomposer.cpp \
63                                                                 src/cpp/MatPlotDecomposer.cpp \
64                                                                 src/cpp/NgonGridMatplotDataDecomposer.cpp \
65                                                                 src/cpp/Plot3DDecomposer.cpp \
66                                                                 src/cpp/PolylineDecomposer.cpp \
67                                                                 src/cpp/TriangleMeshFecDataDecomposer.cpp \
68                                                                 src/cpp/Triangulator.cpp \
69                                                                 src/cpp/ScilabView.cpp \
70                                                                 src/cpp/FigureList.cpp \
71                                                                 src/cpp/HandleManagement.cpp \
72                                                                 src/cpp/AxesModel.cpp \
73                                                                 src/cpp/FigureModel.cpp \
74                                                                 src/cpp/CurrentFigure.cpp \
75                                                                 src/cpp/CurrentObject.cpp \
76                                                                 src/cpp/CurrentSubwin.cpp \
77                                                                 src/cpp/createObjectData.cpp \
78                                                                 src/cpp/pickSurface.cpp \
79                                                                 src/cpp/Texture.cpp \
80                                                                 src/cpp/NormalGenerator.cpp
81
82 GIWS_WRAPPERS = src/jni/graphic_objects.giws.xml \
83                 src/jni/builder.giws.xml
84
85 if GIWS
86 BUILT_SOURCES += giws
87 endif
88
89
90 libscigraphic_objects_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
91                         -I$(srcdir)/includes/ \
92                         -I$(srcdir)/src/cpp/ \
93                         -I$(srcdir)/src/c/ \
94                         -I$(srcdir)/src/jni/ \
95                         -I$(top_srcdir)/modules/api_scilab/includes/ \
96                         -I$(top_srcdir)/modules/commons/src/jni/ \
97                         -I$(top_srcdir)/modules/core/includes/ \
98                         -I$(top_srcdir)/modules/jvm/includes/ \
99                         -I$(top_srcdir)/modules/localization/includes/ \
100                         -I$(top_srcdir)/modules/output_stream/includes/
101                         $(AM_CPPFLAGS)
102
103 # Without the graphic_objects module
104 libscigraphic_objects_disable_la_CPPFLAGS = -I$(srcdir)/includes/ \
105                         -I$(top_srcdir)/modules/localization/includes/ \
106                         -I$(top_srcdir)/modules/output_stream/includes/
107                         $(AM_CPPFLAGS)
108
109 GRAPHIC_OBJECTS_DISABLE_C_SOURCES = src/nographic_objects/nographic_objects.c
110 libscigraphic_objects_disable_la_SOURCES = $(GRAPHIC_OBJECTS_DISABLE_C_SOURCES)
111
112 pkglib_LTLIBRARIES = libscigraphic_objects-disable.la
113
114 if GUI
115 pkglib_LTLIBRARIES += libscigraphic_objects.la
116 endif
117
118 libscigraphic_objects_la_LDFLAGS = $(AM_LDFLAGS)
119
120 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)
121
122 # For the code check (splint)
123 CHECK_SRC= $(GRAPHIC_OBJECTS_C_SOURCES) $(GATEWAY_C_SOURCES)
124 INCLUDE_FLAGS = $(libscigraphic_objects_la_CPPFLAGS)
125
126
127 #### SWIG Declaration ####
128 SWIG_WRAPPERS = src/jni/DataLoader.i \
129                                 src/jni/ScilabNativeView.i \
130                                 src/jni/PolylineData.i \
131                                 src/jni/SurfaceData.i \
132                                 src/jni/graphic_objects.i \
133                                 src/jni/ObjectData.i
134
135 if SWIG
136 BUILT_SOURCES+=swig
137 endif
138
139 libscigraphic_objects_la_LIBADD = $(top_builddir)/modules/output_stream/libscioutput_stream.la $(X_LIBS) $(X_EXTRA_LIBS)
140
141
142 #### graphic_objects : gateway declaration ####
143 libscigraphic_objects_la_sci_gatewaydir = $(mydatadir)/sci_gateway
144 libscigraphic_objects_la_sci_gateway_DATA = sci_gateway/graphic_objects_gateway.xml
145
146 includes/graphicObjectsProperties.h: Makefile.am src/scripts/propertiesMap.properties
147         @$(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
148         @$(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
149
150 if GUI
151 USEANT=1
152 endif