Updated addon repository URL and improved debug output on download
[supertux.git] / external / tinygettext / SConstruct
1 # -*- python -*-
2
3 import os
4
5 env = Environment(ENV=os.environ,
6                   CXX="g++",
7                   CXXFLAGS=['-O0',
8                             '-g3',
9                             '-std=c++0x',
10                             '-Wall',
11                             '-Wextra',
12                             '-Wcast-qual',
13                             '-Wconversion',
14                             '-Weffc++',
15                             '-Werror',
16                             '-Wextra',
17                             '-Winit-self',
18                             '-Wno-unused-parameter',
19                             '-Wnon-virtual-dtor',
20                             '-Wshadow',
21                             # '-ansi', # conflicts with -std=c++0x
22                             '-pedantic',
23                             ],
24                   CPPPATH=['include', 'src'])
25
26 # env.ParseConfig("sdl-config --cflags --libs")
27 # env['CPPDEFINES'] += HAVE_SDL
28
29 libtinygettext = env.StaticLibrary('src/tinygettext',
30                                    ['src/tinygettext.cpp',
31                                     'src/language.cpp',
32                                     'src/plural_forms.cpp',
33                                     'src/dictionary.cpp',
34                                     'src/dictionary_manager.cpp',
35                                     'src/unix_file_system.cpp',
36                                     'src/po_parser.cpp',
37                                     'src/iconv.cpp',
38                                     'src/log.cpp'])
39
40 env.Program('test/tinygettext_test', ['test/tinygettext_test.cpp', libtinygettext])
41 env.Program('test/po_parser_test', ['test/po_parser_test.cpp', libtinygettext])
42
43 # EOF #