4a859895f1626c9b6924054471266295f83c2187
[scilab.git] / scilab / modules / localization / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
9
10
11 LOCALIZATION_C_SOURCES = \
12     src/c/InitializeLocalization.c \
13     src/c/setgetlanguage.c \
14     src/c/getLcidString.c \
15     src/c/charEncoding.c \
16     src/c/setdefaultlanguage.c
17
18 if NEED_JAVA
19 LOCALIZATION_C_SOURCES += \
20     src/jni/Messages_wrap.c \
21     src/jni/LocaleToLCID_wrap.c \
22     src/jni/setdefaultlanguage_wrap.c
23 endif
24
25 if IS_MACOSX
26 LOCALIZATION_C_SOURCES += \
27     src/c/getLocaleInfo_Apple.c
28 endif
29
30 LOCALIZATION_CPP_SOURCES = \
31     src/cpp/localization.cpp
32
33 GATEWAY_C_SOURCES = \
34     sci_gateway/c/sci_addlocalizationdomain.c \
35     sci_gateway/c/sci_gettext.c
36
37 GATEWAY_CPP_SOURCES = \
38         sci_gateway/cpp/localization_gw.cpp \
39         sci_gateway/cpp/sci_setdefaultlanguage.cpp \
40         sci_gateway/cpp/sci_getdefaultlanguage.cpp \
41         sci_gateway/cpp/sci_setlanguage.cpp \
42         sci_gateway/cpp/sci_getlanguage.cpp
43
44 libscilocalization_la_CPPFLAGS = \
45     $(JAVA_JNI_INCLUDE) \
46     -I$(srcdir)/includes/ \
47     -I$(srcdir)/src/c/ \
48     -I$(top_srcdir)/modules/ast/includes/ast/ \
49     -I$(top_srcdir)/modules/ast/includes/exps/ \
50     -I$(top_srcdir)/modules/ast/includes/operations/ \
51     -I$(top_srcdir)/modules/ast/includes/parse/ \
52     -I$(top_srcdir)/modules/ast/includes/symbol/ \
53     -I$(top_srcdir)/modules/ast/includes/system_env/ \
54     -I$(top_srcdir)/modules/ast/includes/types/ \
55     -I$(top_srcdir)/modules/ast/includes/analysis/ \
56     -I$(top_srcdir)/modules/functions_manager/includes/ \
57     -I$(top_srcdir)/modules/core/includes/ \
58     -I$(top_srcdir)/modules/string/includes/ \
59     -I$(top_srcdir)/modules/fileio/includes/ \
60     -I$(top_srcdir)/modules/api_scilab/includes/ \
61     -I$(top_srcdir)/modules/output_stream/includes/ \
62     -I$(top_srcdir)/modules/dynamic_link/includes/ \
63     $(AM_CPPFLAGS)
64
65 pkglib_LTLIBRARIES = libscilocalization.la
66 noinst_LTLIBRARIES = libscilocalization-algo.la
67
68 libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
69 libscilocalization_la_CFLAGS = $(AM_CFLAGS)
70
71 libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES) $(LOCALIZATION_CPP_SOURCES)
72 libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
73 libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
74
75 # For the code check (splint)
76 CHECK_SRC= $(libscilocalization_la_SOURCES)
77 INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
78
79 libscilocalization_la_LIBADD = libscilocalization-algo.la
80
81 # FIXME: platform dependent things should be in configure.ac
82 if IS_MACOSX
83 libscilocalization_la_LDFLAGS += -framework Cocoa
84 libscilocalization_la_LIBADD += -lintl
85 libscilocalization_la_CFLAGS += -framework Cocoa
86 endif
87
88 # $(top_builddir)/modules/io/libsciio.la
89 #### Target ######
90 modulename=localization
91
92 #### localization : Conf files ####
93 libscilocalization_la_rootdir = $(mydatadir)
94 libscilocalization_la_root_DATA =  license.txt
95
96
97 ####localization : init scripts ####
98 libscilocalization_la_etcdir = $(mydatadir)/etc
99 libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
100
101 ####´┐Żlocalization : gateway declaration ####
102 libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
103 libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
104
105
106 ####localization : include files ####
107 libscilocalization_la_includedir=$(pkgincludedir)
108 libscilocalization_la_include_HEADERS = includes/localization.h \
109 includes/localization.hxx \
110 includes/dynlib_localization.h \
111 includes/setgetlanguage.h \
112 includes/charEncoding.h
113
114 if GUI
115 USEANT=1
116 endif
117
118 #### SWIG Declaration ####
119 SWIG_WRAPPERS = src/jni/Messages.i \
120 src/jni/LocaleToLCID.i
121
122 if SWIG
123 BUILT_SOURCES=swig
124 endif
125
126
127 include $(top_srcdir)/Makefile.incl.am