Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-12-14 20:40:12 +0300
committerThomas Dinges <blender@dingto.org>2009-12-14 20:40:12 +0300
commit2c977b83b34e9517e51afc6bcac40dce7e26612d (patch)
treeba38caeec09775f1cf1d49637f2eaad7f46eec57 /SConstruct
parent9a7f6e937bc80b9e72b503d0b0fb07ea840a3e38 (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--SConstruct22
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 "
+