Localization: add C++ converters for UTF8 & Wide strings
[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     src/cpp/UTF8.cpp
33
34 GATEWAY_C_SOURCES = \
35     sci_gateway/c/sci_addlocalizationdomain.c \
36     sci_gateway/c/sci_gettext.c
37
38 GATEWAY_CPP_SOURCES = \
39         sci_gateway/cpp/localization_gw.cpp \
40         sci_gateway/cpp/sci_setdefaultlanguage.cpp \
41         sci_gateway/cpp/sci_getdefaultlanguage.cpp \
42         sci_gateway/cpp/sci_setlanguage.cpp \
43         sci_gateway/cpp/sci_getlanguage.cpp
44
45 libscilocalization_la_CPPFLAGS = \
46     $(JAVA_JNI_INCLUDE) \
47     -I$(srcdir)/includes/ \
48     -I$(srcdir)/src/c/ \
49     -I$(top_srcdir)/modules/ast/includes/ast/ \
50     -I$(top_srcdir)/modules/ast/includes/exps/ \
51     -I$(top_srcdir)/modules/ast/includes/operations/ \
52     -I$(top_srcdir)/modules/ast/includes/parse/ \
53     -I$(top_srcdir)/modules/ast/includes/symbol/ \
54     -I$(top_srcdir)/modules/ast/includes/system_env/ \
55     -I$(top_srcdir)/modules/ast/includes/types/ \
56     -I$(top_srcdir)/modules/ast/includes/analysis/ \
57     -I$(top_srcdir)/modules/functions_manager/includes/ \
58     -I$(top_srcdir)/modules/core/includes/ \
59     -I$(top_srcdir)/modules/string/includes/ \
60     -I$(top_srcdir)/modules/fileio/includes/ \
61     -I$(top_srcdir)/modules/api_scilab/includes/ \
62     -I$(top_srcdir)/modules/output_stream/includes/ \
63     -I$(top_srcdir)/modules/dynamic_link/includes/ \
64     $(AM_CPPFLAGS)
65
66 pkglib_LTLIBRARIES = libscilocalization.la
67 noinst_LTLIBRARIES = libscilocalization-algo.la
68
69 libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
70 libscilocalization_la_CFLAGS = $(AM_CFLAGS)
71
72 libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES) $(LOCALIZATION_CPP_SOURCES)
73 libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
74 libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
75
76 # For the code check (splint)
77 CHECK_SRC= $(libscilocalization_la_SOURCES)
78 INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
79
80 libscilocalization_la_LIBADD = libscilocalization-algo.la
81
82 # FIXME: platform dependent things should be in configure.ac
83 if IS_MACOSX
84 libscilocalization_la_LDFLAGS += -framework Cocoa
85 libscilocalization_la_LIBADD += -lintl
86 libscilocalization_la_CFLAGS += -framework Cocoa
87 endif
88
89 # $(top_builddir)/modules/io/libsciio.la
90 #### Target ######
91 modulename=localization
92
93 #### localization : Conf files ####
94 libscilocalization_la_rootdir = $(mydatadir)
95 libscilocalization_la_root_DATA =  license.txt
96
97
98 ####localization : init scripts ####
99 libscilocalization_la_etcdir = $(mydatadir)/etc
100 libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
101
102 ####´┐Żlocalization : gateway declaration ####
103 libscilocalization_la_sci_gatewaydir = $(mydatadir)/sci_gateway
104 libscilocalization_la_sci_gateway_DATA = sci_gateway/localization_gateway.xml
105
106
107 ####localization : include files ####
108 libscilocalization_la_includedir=$(pkgincludedir)
109 libscilocalization_la_include_HEADERS = includes/localization.h \
110 includes/localization.hxx \
111 includes/dynlib_localization.h \
112 includes/setgetlanguage.h \
113 includes/charEncoding.h
114
115 if GUI
116 USEANT=1
117 endif
118
119 #### SWIG Declaration ####
120 SWIG_WRAPPERS = src/jni/Messages.i \
121 src/jni/LocaleToLCID.i
122
123 if SWIG
124 BUILT_SOURCES=swig
125 endif
126
127
128 include $(top_srcdir)/Makefile.incl.am