Fix the library linking declaration
[scilab.git] / scilab / modules / ui_data / 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=ui_data
14
15
16 #### ui_data : Conf files ####
17 libsciui_data_la_rootdir = $(mydatadir)
18 libsciui_data_la_root_DATA =  license.txt 
19
20
21 #### ui_data : init scripts ####
22 libsciui_data_la_etcdir = $(mydatadir)/etc
23 libsciui_data_la_etc_DATA = \
24         etc/ui_data.quit \
25         etc/ui_data.start \
26         etc/variablebrowser_menubar.xml \
27         etc/variableeditor_menubar.xml \
28         etc/XConfiguration-variables.xml \
29         etc/XConfiguration-variables.xsl
30
31 UI_DATA_JNI_SOURCES = src/jni/BrowseVar.cpp \
32                       src/jni/EditVar.cpp \
33                       src/jni/FileBrowser.cpp
34
35 UI_DATA_C_SOURCES = src/jni/ui_data_wrap.c \
36                     src/c/PutScilabVariable.c
37
38 UI_DATA_CXX_SOURCES = src/cpp/BrowseVarManager.cpp \
39                       src/cpp/FileBrowserChDir.cpp
40
41 GIWS_WRAPPERS = \
42 src/jni/BrowseVar.giws.xml \
43 src/jni/EditVar.giws.xml \
44 src/jni/FileBrowser.giws.xml
45
46 SWIG_WRAPPERS = \
47 src/jni/ui_data.i
48
49 BUILT_SOURCES=
50 if GIWS
51 BUILT_SOURCES+=giws
52 endif
53 if SWIG
54 BUILT_SOURCES+=swig
55 endif
56
57
58 GATEWAY_C_SOURCES = sci_gateway/c/gw_ui_data.c
59
60
61 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_editvar.cpp \
62                       sci_gateway/cpp/sci_browsevar.cpp \
63                       sci_gateway/cpp/sci_filebrowser.cpp \
64                         sci_gateway/cpp/sci_updatebrowsevar.cpp \
65                         sci_gateway/cpp/sci_closeEditvar.cpp
66
67
68 libsciui_data_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
69                         -I$(srcdir)/includes/ \
70                         -I$(srcdir)/src/cpp/ \
71                         -I$(srcdir)/src/c/ \
72                         -I$(srcdir)/src/jni/ \
73                         -I$(top_srcdir)/modules/jvm/includes/ \
74                         -I$(top_srcdir)/modules/output_stream/includes/ \
75                         -I$(top_srcdir)/modules/commons/src/jni \
76                         -I$(top_srcdir)/modules/localization/includes/ \
77                         -I$(top_srcdir)/modules/api_scilab/includes/ \
78                         -I$(top_srcdir)/modules/fileio/includes/ \
79                         -I$(top_srcdir)/modules/core/includes \
80                         $(AM_CPPFLAGS)
81
82 # Without the ui_data module 
83 libsciui_data_disable_la_CPPFLAGS = -I$(srcdir)/includes/ \
84                         -I$(top_srcdir)/modules/localization/includes/ \
85                         -I$(top_srcdir)/modules/output_stream/includes \
86                         $(AM_CPPFLAGS)
87
88 UI_DATA_DISABLE_C_SOURCES = src/noui_data/noui_data.c
89 libsciui_data_disable_la_SOURCES = $(UI_DATA_DISABLE_C_SOURCES)
90
91 pkglib_LTLIBRARIES = libsciui_data-disable.la
92
93 if GUI
94 pkglib_LTLIBRARIES += libsciui_data.la 
95 noinst_LTLIBRARIES = libsciui_data-algo.la 
96 endif
97
98 libsciui_data_la_LDFLAGS = $(AM_LDFLAGS)
99
100 libsciui_data_algo_la_SOURCES = $(UI_DATA_C_SOURCES) $(UI_DATA_JNI_SOURCES) $(UI_DATA_CXX_SOURCES)
101 libsciui_data_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
102 libsciui_data_algo_la_CPPFLAGS = $(libsciui_data_la_CPPFLAGS)
103
104 # For the code check (splint)
105 CHECK_SRC= $(UI_DATA_C_SOURCES) $(GATEWAY_C_SOURCES)
106 INCLUDE_FLAGS = $(libsciui_data_la_CPPFLAGS)
107
108 libsciui_data_la_LIBADD = libsciui_data-algo.la $(X_LIBS) $(X_EXTRA_LIBS)
109
110
111 #### ui_data : gateway declaration ####
112 libsciui_data_la_sci_gatewaydir = $(mydatadir)/sci_gateway
113 libsciui_data_la_sci_gateway_DATA = sci_gateway/ui_data_gateway.xml
114
115 #### ui_data : icons files ####
116 #
117 # Generated with:
118 #    $ find images/ -type f -printf "%p \\\\\n" -name *.svg -or -name *.gif -or -name *.jpg -or -name *.png |sort -u
119 libsciui_data_la_iconsdir=$(mydatadir)/
120 nobase_libsciui_data_la_icons_DATA = images/icons/16x16/mimetypes/array_up.png \
121 images/icons/16x16/mimetypes/boolean.png \
122 images/icons/16x16/mimetypes/cell.png \
123 images/icons/16x16/mimetypes/double.png \
124 images/icons/16x16/mimetypes/fptr.png \
125 images/icons/16x16/mimetypes/function.png \
126 images/icons/16x16/mimetypes/handle.png \
127 images/icons/16x16/mimetypes/int.png \
128 images/icons/16x16/mimetypes/list.png \
129 images/icons/16x16/mimetypes/mlist.png \
130 images/icons/16x16/mimetypes/noicon.png \
131 images/icons/16x16/mimetypes/object.png \
132 images/icons/16x16/mimetypes/polynomial.png \
133 images/icons/16x16/mimetypes/sparse.png \
134 images/icons/16x16/mimetypes/string.png \
135 images/icons/16x16/mimetypes/timeseries.png \
136 images/icons/16x16/mimetypes/tlist.png \
137 images/icons/16x16/mimetypes/uint.png \
138 images/icons/16x16/mimetypes/user.png
139
140 if GUI
141 USEANT=1
142 endif
143
144 include $(top_srcdir)/Makefile.incl.am