opts.AddOptions(
# frontend
EnumOption('frontend', 'Main GUI', default_frontend,
- allowed_values = ('qt4') ),
+ allowed_values = ('qt4',) ),
# debug or release build
EnumOption('mode', 'Building method', default_build_mode,
allowed_values = ('debug', 'release') ),
# define WANT_GETFILEATTRIBUTESEX_WRAPPER 1
#endif
+#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4
+# define LIBC_WCTYPE_USES_UCS4
+#endif
+
#endif
'''
)
],
functions = [
('open', 'HAVE_OPEN', None),
+ ('chmod', 'HAVE_CHMOD', None),
('close', 'HAVE_CLOSE', None),
('popen', 'HAVE_POPEN', None),
('pclose', 'HAVE_PCLOSE', None),
tex2lyx_env.Prepend(CPPPATH = ['$BUILDDIR/common/tex2lyx'])
tex2lyx_env.AppendUnique(LIBPATH = ['#$LOCALLIBPATH'])
- for file in ['FloatList.C', 'Floating.C', 'counters.C', 'lyxlayout.h', 'lyxlayout.C',
+ for file in ['FloatList.C', 'Floating.C', 'counters.C', 'gettext.h', 'gettext.C',
+ 'lyxlayout.h', 'lyxlayout.C', 'messages.h', 'messages.C',
'lyxtextclass.h', 'lyxtextclass.C', 'lyxlex.C', 'lyxlex_pimpl.C']:
env.Command('$BUILDDIR/common/tex2lyx/'+file, '$TOP_SRCDIR/src/'+file,
[Copy('$TARGET', '$SOURCE')])
tex2lyx = tex2lyx_env.Program(
target = '$BUILDDIR/common/tex2lyx/tex2lyx',
- LIBS = ['support'] + boost_libraries + system_libs,
+ LIBS = ['support'] + boost_libraries + intl_libs + system_libs,
source = ['$BUILDDIR/common/tex2lyx/%s' % x for x in src_tex2lyx_files]
)
Alias('tex2lyx', env.Command(os.path.join('$BUILDDIR', os.path.split(str(tex2lyx[0]))[1]),
socket_libs +
system_libs
)
- # [/path/to/lyx.ext] => lyx-qt3.ext
- target_name = os.path.split(str(lyx[0]))[1].replace('lyx', 'lyx-%s' % frontend)
- Alias('lyx', env.Command(os.path.join('$BUILDDIR', target_name), lyx,
- [Copy('$TARGET', '$SOURCE')]))
Alias('lyx', lyx)
else:
# define lyx even if lyx is not built with rebuild=no