Merge remote-tracking branch 'origin/6.1'
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
5 #
6 # This file is hereby licensed under the terms of the GNU GPL v2.0,
7 # pursuant to article 5.3.4 of the CeCILL v.2.1.
8 # This file was originally licensed under the terms of the CeCILL v2.1,
9 # and continues to be available under such terms.
10 # For more information, see the COPYING file which you should have received
11 # along with this program.
12
13
14 LOCALIZATION_C_SOURCES = \
15     src/c/InitializeLocalization.c \
16     src/c/setgetlanguage.c \
17     src/c/getLcidString.c \
18     src/c/charEncoding.c \
19     src/c/setdefaultlanguage.c
20
21 if NEED_JAVA
22 LOCALIZATION_C_SOURCES += \
23     src/jni/Messages_wrap.c \
24     src/jni/LocaleToLCID_wrap.c \
25     src/jni/setdefaultlanguage_wrap.c
26 endif
27
28 if IS_MACOSX
29 LOCALIZATION_C_SOURCES += \
30     src/c/getLocaleInfo_Apple.c
31 endif
32
33 LOCALIZATION_CPP_SOURCES = \
34     src/cpp/localization.cpp \
35     src/cpp/UTF8.cpp
36
37 GATEWAY_C_SOURCES = \
38     sci_gateway/c/sci_addlocalizationdomain.c \
39     sci_gateway/c/sci_gettext.c
40
41 GATEWAY_CPP_SOURCES = \
42         sci_gateway/cpp/localization_gw.cpp \
43         sci_gateway/cpp/sci_setdefaultlanguage.cpp \
44         sci_gateway/cpp/sci_getdefaultlanguage.cpp \
45         sci_gateway/cpp/sci_setlanguage.cpp \
46         sci_gateway/cpp/sci_getlanguage.cpp
47
48 libscilocalization_la_CPPFLAGS = \
49     $(JAVA_JNI_INCLUDE) \
50     -I$(srcdir)/includes/ \
51     -I$(srcdir)/src/c/ \
52     -I$(top_srcdir)/modules/ast/includes/ast/ \
53     -I$(top_srcdir)/modules/ast/includes/exps/ \
54     -I$(top_srcdir)/modules/ast/includes/operations/ \
55     -I$(top_srcdir)/modules/ast/includes/parse/ \
56     -I$(top_srcdir)/modules/ast/includes/symbol/ \
57     -I$(top_srcdir)/modules/ast/includes/system_env/ \
58     -I$(top_srcdir)/modules/ast/includes/types/ \
59     -I$(top_srcdir)/modules/ast/includes/analysis/ \
60     -I$(top_srcdir)/modules/functions_manager/includes/ \
61     -I$(top_srcdir)/modules/core/includes/ \
62     -I$(top_srcdir)/modules/string/includes/ \
63     -I$(top_srcdir)/modules/fileio/includes/ \
64     -I$(top_srcdir)/modules/api_scilab/includes/ \
65     -I$(top_srcdir)/modules/output_stream/includes/ \
66     -I$(top_srcdir)/modules/dynamic_link/includes/ \
67     $(AM_CPPFLAGS)
68
69 pkglib_LTLIBRARIES = libscilocalization.la
70 noinst_LTLIBRARIES = libscilocalization-algo.la
71
72 libscilocalization_la_LDFLAGS = $(AM_LDFLAGS)
73 libscilocalization_la_CFLAGS = $(AM_CFLAGS)
74
75 libscilocalization_algo_la_SOURCES = $(LOCALIZATION_C_SOURCES) $(LOCALIZATION_CPP_SOURCES)
76 libscilocalization_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
77 libscilocalization_algo_la_CPPFLAGS = $(libscilocalization_la_CPPFLAGS)
78
79 # For the code check (splint)
80 CHECK_SRC= $(libscilocalization_la_SOURCES)
81 INCLUDE_FLAGS = $(libscilocalization_la_CPPFLAGS)
82
83 libscilocalization_la_LIBADD = libscilocalization-algo.la
84
85 # FIXME: platform dependent things should be in configure.ac
86 if IS_MACOSX
87 libscilocalization_la_LDFLAGS += -framework Cocoa
88 libscilocalization_la_LIBADD += -lintl
89 libscilocalization_la_CFLAGS += -framework Cocoa
90 endif
91
92 # $(top_builddir)/modules/io/libsciio.la
93 #### Target ######
94 modulename=localization
95
96 #### localization : Conf files ####
97 libscilocalization_la_rootdir = $(mydatadir)
98 libscilocalization_la_root_DATA =  license.txt
99
100
101 ####localization : init scripts ####
102 libscilocalization_la_etcdir = $(mydatadir)/etc
103 libscilocalization_la_etc_DATA = etc/localization.quit etc/localization.start
104
105 ####localization : include files ####
106 libscilocalization_la_includedir=$(pkgincludedir)
107 libscilocalization_la_include_HEADERS = includes/localization.h \
108 includes/localization.hxx \
109 includes/dynlib_localization.h \
110 includes/setgetlanguage.h \
111 includes/charEncoding.h \
112 includes/UTF8.hxx
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