elif build_qt4:
frontend = 'qt4'
env['frontend'] = 'qt4'
+else:
+ frontend = env['frontend']
if build_boost:
intlenv = env.Copy()
# we need the original C compiler for these files
intlenv['CC'] = intlenv['C_COMPILER']
+ intlenv['CCFLAGS'] = intlenv['C_CCFLAGS']
intlenv['CPPPATH'] += ['intl']
intlenv.Append(CCFLAGS = [
ControlVSpace.C
ControlWrap.C
helper_funcs.C
- helper_funcs.h
''')]
)
Alias('controllers', controllers)
'-DQT_GENUINE_STR',
'-DQT_NO_STL',
'-DQT3_SUPPORT',
- '-Winvalid-pch']
+ ]
)
qt4_ui_files = ['$BUILDDIR/common/frontends/qt4/ui/%s' % x for x in Split('''
vc-backend.C
version.C
vspace.C
- main.C
''')
+ # temporary fix for MSVC, will remove later.
+ if not env['USE_VC']:
+ lyx_source_pre.append('main.C')
+
lyx_source_post = Split('''
tabular.C
dimension.C
#
# Build lyx with given frontend
#
+ # temporary fix for MSVC, will remove later.
+ if env['USE_VC']:
+ lyx_source = ['$BUILDDIR/common/main.C']
+ else:
+ lyx_source = []
lyx = env.Program(
target = '$BUILDDIR/$frontend/lyx',
- source = [],
+ source = lyx_source,
LIBS = [
'lyxbase_pre',
'mathed',