From f4d823fa029133d5837e1b25f02c1326f3723a93 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Sun, 7 Dec 2008 13:22:50 +0000 Subject: * blenderlite works now on windows too. - when WITH_BF_SDL=True entry-point is mainCTRStartup (due to SDL) - with WITH_BF_SDL=False this should be just main --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 0bc05a59df2..bf5356a4073 100644 --- a/SConstruct +++ b/SConstruct @@ -284,6 +284,10 @@ if 'blenderlite' in B.targets: env['BF_NO_ELBEEM'] = True env['WITH_BF_PYTHON'] = False +if env['WITH_BF_SDL'] == False and env['OURPLATFORM'] in ('win32-vc', 'win32-ming'): + env['PLATFORM_LINKFLAGS'].remove('/ENTRY:mainCRTStartup') + env['PLATFORM_LINKFLAGS'].append('/ENTRY:main') + # lastly we check for root_build_dir ( we should not do before, otherwise we might do wrong builddir #B.root_build_dir = B.arguments.get('BF_BUILDDIR', '..'+os.sep+'build'+os.sep+platform+os.sep) B.root_build_dir = env['BF_BUILDDIR'] -- cgit v1.2.3