add static import of tinygettext
[supertux.git] / external / tinygettext / SConstruct
1 # -*- python -*-
2
3 env = Environment(CXXFLAGS=['-O0',
4                             '-g3',
5                             '-Wall',
6                             '-Wcast-qual',
7                             '-Wconversion',
8                             '-Weffc++',
9                             '-Werror',
10                             '-Wextra',
11                             '-Winit-self',
12                             '-Wno-unused-parameter',
13                             '-Wnon-virtual-dtor',
14                             '-Wshadow',
15                             '-ansi',
16                             '-pedantic',
17                             ],
18                   CPPPATH=['tinygettext', '.'])
19
20 # env.ParseConfig("sdl-config --cflags --libs")
21 # env['CPPDEFINES'] += HAVE_SDL
22
23 libtinygettext = env.StaticLibrary('tinygettext/tinygettext', 
24                                    ['tinygettext/tinygettext.cpp',
25                                     'tinygettext/language.cpp',
26                                     'tinygettext/plural_forms.cpp',
27                                     'tinygettext/dictionary.cpp',
28                                     'tinygettext/dictionary_manager.cpp',
29                                     'tinygettext/unix_file_system.cpp',
30                                     'tinygettext/po_parser.cpp',
31                                     'tinygettext/iconv.cpp',
32                                     'tinygettext/log.cpp'])
33
34 env.Program('test/tinygettext_test', ['test/tinygettext_test.cpp', libtinygettext])
35 env.Program('test/po_parser_test', ['test/po_parser_test.cpp', libtinygettext])
36
37 # EOF #