summaryrefslogtreecommitdiff
path: root/modules/preferences/Makefile.am
blob: a2540ec3155d698c8f25cd0db8293826e90b0544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#
# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
# Copyright (C) 2011 - DIGITEO
#
# This file must be used under the terms of the CeCILL.
# This source file is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at
# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
#

#### Target ######
modulename=preferences


#### preferences : Conf files ####
libscipreferences_la_rootdir = $(mydatadir)
libscipreferences_la_root_DATA =  license.txt 


#### preferences : init scripts & configuration files ####
libscipreferences_la_etcdir = $(mydatadir)/etc
libscipreferences_la_etc_DATA = \
	etc/preferences.quit \
	etc/preferences.start \
	etc/XConfiguration.xml \
	etc/XConfiguration-preference.xml \
	etc/XConfiguration-preference.xsl \
	etc/XWizard-expression.xml \
	etc/XWizard-function.xml \
	etc/XWizard-xcos.xml \
	etc/XWizard.xml

#### preferences : xslt files ####
libscipreferences_la_src_xsltdir = $(mydatadir)/src/xslt
libscipreferences_la_src_xslt_DATA = \
	src/xslt/XCommon-toolbars.xsl \
	src/xslt/XCommon.xsl \
	src/xslt/XConfiguration.xsl \
	src/xslt/XGeneric.xsl \
	src/xslt/XWizard.xsl
libscipreferences_la_src_xslt_xwizarddir = $(mydatadir)/src/xslt/XWizard
libscipreferences_la_src_xslt_xwizard_DATA = \
	src/xslt/XWizard/XWizard-any.xsl \
	src/xslt/XWizard/XWizard-expression.xsl \
	src/xslt/XWizard/XWizard-function.xsl \
	src/xslt/XWizard/XWizard-xcos.xsl

PREFERENCES_JNI_SOURCES = src/jni/ScilabPreferences.cpp

PREFERENCES_C_SOURCES = src/c/getScilabPreference.c

GATEWAY_C_SOURCES = sci_gateway/c/gw_preferences.c

GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_addModulePreferences.cpp \
                      sci_gateway/cpp/sci_removeModulePreferences.cpp \
                      sci_gateway/cpp/sci_preferences.cpp

libscipreferences_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
    -I$(srcdir)/includes/ \
    -I$(srcdir)/src/c/ \
    -I$(srcdir)/src/jni/ \
    $(XML_FLAGS) \
    -I$(top_srcdir)/modules/commons/src/jni/ \
    -I$(top_srcdir)/modules/jvm/includes/ \
    -I$(top_srcdir)/modules/fileio/includes/ \
    -I$(top_srcdir)/modules/output_stream/includes/ \
    -I$(top_srcdir)/modules/localization/includes/ \
    -I$(top_srcdir)/modules/api_scilab/includes/ \
    -I$(top_srcdir)/modules/core/includes/ \
    -I$(top_srcdir)/modules/functions/includes/ \
    -I$(top_srcdir)/modules/string/includes/ \
    $(AM_CPPFLAGS)

# Without the preferences module 
libscipreferences_cli_la_CPPFLAGS = -I$(srcdir)/includes/ \
	-I$(top_srcdir)/modules/localization/includes/ \
	-I$(top_srcdir)/modules/output_stream/includes \
	$(AM_CPPFLAGS)

PREFERENCES_CLI_C_SOURCES = src/nopreferences/nopreferences.c
libscipreferences_cli_la_SOURCES = $(PREFERENCES_CLI_C_SOURCES)

libscipreferences_la_LDFLAGS = $(AM_LDFLAGS)

pkglib_LTLIBRARIES = libscipreferences-cli.la

if GUI
    pkglib_LTLIBRARIES += libscipreferences.la 
    noinst_LTLIBRARIES = libscipreferences-algo.la 
endif


libscipreferences_algo_la_SOURCES = $(PREFERENCES_C_SOURCES)
libscipreferences_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)  $(PREFERENCES_JNI_SOURCES)
libscipreferences_algo_la_CFLAGS = $(libscipreferences_la_CFLAGS)
libscipreferences_algo_la_CPPFLAGS = $(libscipreferences_la_CPPFLAGS)

# For the code check (splint)
CHECK_SRC= $(PREFERENCES_C_SOURCES) $(GATEWAY_C_SOURCES)
INCLUDE_FLAGS = $(libscipreferences_la_CPPFLAGS)


GIWS_WRAPPERS = src/jni/ScilabPreferences.giws.xml
SWIG_WRAPPERS = 

BUILT_SOURCES=
if GIWS
BUILT_SOURCES+=giws
endif
if SWIG
BUILT_SOURCES+=swig
endif

libscipreferences_cli_la_LIBADD = libscipreferences-algo.la
libscipreferences_la_LIBADD = libscipreferences-algo.la $(X_LIBS) $(X_EXTRA_LIBS) $(XML_LIBS)


#### preferences : gateway declaration ####
libscipreferences_la_sci_gatewaydir = $(mydatadir)/sci_gateway
libscipreferences_la_sci_gateway_DATA = sci_gateway/preferences_gateway.xml

if GUI
    USEANT=1
endif

include $(top_srcdir)/Makefile.incl.am