Permalink
Browse files

Clean up and remove some old build code.

  • Loading branch information...
1 parent a1dbf40 commit dec17d09efedee4e366460b701aa6503faf4320f Josh Roesslein committed Jan 27, 2011
Showing with 1 addition and 1,003 deletions.
  1. +0 −46 SConscript.docs
  2. +0 −35 SConscript.test
  3. +0 −2 SConstruct
  4. +1 −1 kroll
  5. +0 −401 site_scons/apicoverage.py
  6. +0 −60 site_scons/generate_doc.py
  7. +0 −87 site_scons/profile.py
  8. +0 −94 site_scons/testcoverage.py
  9. +0 −24 site_scons/testcoverage_report.py
  10. +0 −253 site_scons/textmate.py
View
@@ -1,46 +0,0 @@
-#!/usr/bin/env python
-
-Import('build')
-import os.path as path, apicoverage, textmate, sys
-import SCons.Variables
-import SCons.Environment
-from SCons.Script import *
-
-def apicoverage_builder(target, source, env):
- print 'Building API coverage report...',
- sys.stdout.flush()
- f = open(str(target[0]), 'w')
- apicoverage.generate_api_coverage(['kroll', 'modules'], f)
- print 'done'
-
-build.env.Append(BUILDERS = {'APICoverage' : Builder(
- action=apicoverage_builder,
- target_factory=SCons.Node.FS.default_fs.Entry,
- multi=0)})
-
-api_out = path.join(build.dir, 'apicoverage.json')
-apicoveraget = build.env.APICoverage(api_out, [])
-Alias('apicoverage', apicoveraget)
-AlwaysBuild(apicoveraget)
-
-def textmate_builder(target, source, env):
- print 'Building Textmate bundle...',
- sys.stdout.flush()
- f = open(str(source[0]),'w')
- outdir = str(target[0])
- if not os.path.exists(outdir):
- os.makedirs(outdir)
- textmate.generate_textmate_bundle(f, outdir)
- f.close()
- print 'done'
-
-build.env.Append(BUILDERS = {'Textmate' : Builder(
- action=textmate_builder,
- source_factory=SCons.Node.FS.default_fs.Entry,
- target_factory=SCons.Node.FS.default_fs.Dir,
- multi=0)})
-
-tm_out = path.join(build.dir, 'Titanium.tmbundle')
-textmatet = build.env.Textmate(tm_out, [api_out])
-Alias('textmate', textmatet)
-AlwaysBuild(textmatet)
View
@@ -1,35 +0,0 @@
-#!/usr/bin/env python
-
-Import('build')
-import os.path as path, testcoverage, sys, simplejson
-import SCons.Variables
-import SCons.Environment
-from SCons.Script import *
-
-def testcoverage_builder(target, source, env):
- print 'Building test coverage report...',
- sys.stdout.flush()
- f = open(str(target[0]), 'w')
- apicoverage = simplejson.loads(open(os.path.join(build.dir, 'apicoverage.json'), 'r').read())
- drillbit_results_path = os.path.join(build.dir, "Drillbit")
- if build.is_osx():
- drillbit_results_path = os.path.join(drillbit_results_path + ".app", "Contents")
- drillbit_results_path = os.path.join(drillbit_results_path, "Resources", "test_results")
-
- if not os.path.exists(drillbit_results_path):
- print >>sys.stderr, "!! Error: you must run drillbit to collect test coverage results"
- else:
- testcoverage.generate_test_coverage([drillbit_results_path], apicoverage, f)
- print 'done'
-
-
-build.env.Append(BUILDERS = {'TestCoverage' : Builder(
- action=testcoverage_builder,
- target_factory=SCons.Node.FS.default_fs.Entry,
- multi=0)})
-
-test_out = path.join(build.dir, 'testcoverage.json')
-testcoveraget = build.env.TestCoverage(test_out, [])
-Alias('testcoverage', testcoveraget)
-Depends(testcoveraget, 'apicoverage')
-AlwaysBuild(testcoveraget)
View
@@ -74,8 +74,6 @@ SConscript('installer/SConscript')
SConscript('kroll/SConscript', exports='debug')
SConscript('modules/SConscript')
SConscript('SConscript.dist')
-SConscript('SConscript.docs')
-SConscript('SConscript.test')
run = ARGUMENTS.get('run', 0)
run_with = ARGUMENTS.get('run_with', 0)
Oops, something went wrong.

0 comments on commit dec17d0

Please sign in to comment.