diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-07 16:22:50 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-12-07 16:22:50 +0300 |
commit | f4d823fa029133d5837e1b25f02c1326f3723a93 (patch) | |
tree | d678f197841e3f9114b1241be4a88c7f88d7dad5 /SConstruct | |
parent | ed015907df3f08874cd4ac4f21907e7257f0da9b (diff) |
* 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
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
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'] |