diff options
author | Thomas Dinges <blender@dingto.org> | 2009-12-14 20:40:12 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-12-14 20:40:12 +0300 |
commit | 2c977b83b34e9517e51afc6bcac40dce7e26612d (patch) | |
tree | ba38caeec09775f1cf1d49637f2eaad7f46eec57 /SConstruct | |
parent | 9a7f6e937bc80b9e72b503d0b0fb07ea840a3e38 (diff) |
Scons:
* Sequencer and textures dir (and the makefiles for that) go into the /plugins folder again, as it should be.
* Don't generate a "doc" dir, when building them is disabled.
Patch by Matt. D. Thanks a lot!
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/SConstruct b/SConstruct index 369a1801aec..a5ae5f47c6d 100644 --- a/SConstruct +++ b/SConstruct @@ -378,7 +378,7 @@ if not os.path.isdir ( B.root_build_dir): os.makedirs ( B.root_build_dir + 'extern' ) os.makedirs ( B.root_build_dir + 'lib' ) os.makedirs ( B.root_build_dir + 'bin' ) -if not os.path.isdir(B.doc_build_dir): +if not os.path.isdir(B.doc_build_dir) and env['WITH_BF_DOCS']: os.makedirs ( B.doc_build_dir ) Help(opts.GenerateHelpText(env)) @@ -535,7 +535,7 @@ for tp, tn, tf in os.walk('release/plugins'): tn.remove('.svn') for f in tf: pluglist.append(os.path.join(tp, f)) - plugtargetlist.append( os.path.join(*([BLENDERPATH] + tp.split(os.sep)[1:] + [f])) ) + plugtargetlist.append( os.path.join(*([BLENDERPATH, 'plugins'] + tp.split(os.sep)[1:] + [f])) ) # header files for plugins @@ -648,12 +648,14 @@ if not env['WITHOUT_BF_INSTALL']: #------------ EPYDOC if env['WITH_BF_DOCS']: - try: import epydoc - except: epydoc = None - - if epydoc: - SConscript('source/gameengine/PyDoc/SConscript') - else: - print "No epydoc install detected, Python API and Gameengine API Docs will not be generated " - + try: + import epydoc + except ImportError: + epydoc = None + + if epydoc: + SConscript('source/gameengine/PyDoc/SConscript') + else: + print "No epydoc install detected, Python API and Gameengine API Docs will not be generated " + |