ccea264395ffe6e359392a2fec560ca8ff01d6dc
[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-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 = etc/ui_data.quit \
24                                 etc/ui_data.start \
25                                 etc/variablebrowser_menubar.xml \
26                                 etc/variableeditor_menubar.xml
27
28 include $(top_srcdir)/Makefile.incl.am
29
30 UI_DATA_JNI_SOURCES = src/jni/BrowseVar.cpp \
31                       src/jni/EditVar.cpp \
32                       src/jni/FileBrowser.cpp
33
34 UI_DATA_C_SOURCES = 
35
36 UI_DATA_CPP_SOURCES = src/cpp/UpdateBrowseVar.cpp \
37                       src/cpp/FileBrowserChDir.cpp
38
39 GIWS_WRAPPERS = \
40 src/jni/BrowseVar.giws.xml \
41 src/jni/EditVar.giws.xml \
42 src/jni/FileBrowser.giws.xml
43
44 if GIWS
45 BUILT_SOURCES=giws
46 endif
47
48
49 GATEWAY_C_SOURCES = sci_gateway/c/gw_ui_data.c
50
51 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_editvar.cpp \
52                       sci_gateway/cpp/sci_browsevar.cpp \
53                       sci_gateway/cpp/sci_filebrowser.cpp
54
55 libsciui_data_la_CFLAGS= $(JAVA_JNI_INCLUDE) \
56                         -I$(top_srcdir)/libs/MALLOC/includes/ \
57                         -I$(top_srcdir)/modules/jvm/includes/ \
58                         -I$(top_srcdir)/modules/output_stream/includes \
59                         -I$(top_srcdir)/modules/localization/includes \
60                         -I$(top_srcdir)/modules/api_scilab/includes \
61                         -I$(top_srcdir)/modules/core/includes
62
63
64 libsciui_data_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
65                         -I$(srcdir)/includes/ \
66                         -I$(srcdir)/src/cpp/ \
67                         -I$(srcdir)/src/c/ \
68                         -I$(srcdir)/src/jni/ \
69                         -I$(top_srcdir)/modules/jvm/includes/ \
70                         -I$(top_srcdir)/modules/output_stream/includes \
71                         -I$(top_srcdir)/modules/localization/includes \
72                         -I$(top_srcdir)/modules/api_scilab/includes
73
74 # Without the ui_data module 
75 libsciui_data_disable_la_CFLAGS = -Iincludes/ \
76                         -I$(top_srcdir)/modules/output_stream/includes
77
78 UI_DATA_DISABLE_C_SOURCES = src/noui_data/noui_data.c
79 libsciui_data_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
80 libsciui_data_disable_la_SOURCES = $(UI_DATA_DISABLE_C_SOURCES)
81
82 pkglib_LTLIBRARIES = libsciui_data-disable.la
83
84 if GUI
85 pkglib_LTLIBRARIES += libsciui_data.la 
86 noinst_LTLIBRARIES = libsciui_data-algo.la 
87 endif
88
89 libsciui_data_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
90
91 libsciui_data_algo_la_SOURCES = $(UI_DATA_C_SOURCES) $(UI_DATA_JNI_SOURCES) $(UI_DATA_CPP_SOURCES)
92 libsciui_data_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
93 libsciui_data_algo_la_CFLAGS = $(libsciui_data_la_CFLAGS)
94 libsciui_data_algo_la_CPPFLAGS = $(libsciui_data_la_CPPFLAGS)
95
96 # For the code check (splint)
97 CHECK_SRC= $(UI_DATA_C_SOURCES) $(GATEWAY_C_SOURCES)
98 INCLUDE_FLAGS = $(libsciui_data_la_CFLAGS)
99
100 libsciui_data_la_LIBADD =  \
101 libsciui_data-algo.la \
102 $(top_builddir)/libs/MALLOC/libscimalloc.la \
103 $(top_builddir)/modules/jvm/libscijvm.la \
104 $(top_builddir)/modules/output_stream/libscioutput_stream.la
105
106
107 #### ui_data : gateway declaration ####
108 libsciui_data_la_sci_gatewaydir = $(mydatadir)/sci_gateway
109 libsciui_data_la_sci_gateway_DATA = sci_gateway/ui_data_gateway.xml
110
111 #### ui_data : icons files ####
112 libsciui_data_la_iconsdir=$(mydatadir)/
113 nobase_libsciui_data_la_icons_DATA = images/icons/cell.png \
114 images/icons/double.png \
115 images/icons/sparse.png \
116 images/icons/boolean.png \
117 images/icons/object.png \
118 images/icons/string.png \
119 images/icons/list.png \
120 images/icons/noicon.png \
121 images/icons/array_up.png \
122 images/icons/fptr.png \
123 images/icons/function.png \
124 images/icons/handle.png \
125 images/icons/int.png \
126 images/icons/uint.png \
127 images/icons/mlist.png \
128 images/icons/polynomial.png \
129 images/icons/user.png \
130 images/icons/tlist.png
131
132
133 if GUI
134 USEANT=1
135 endif