diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-20 22:09:38 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-27 19:56:13 -0400 |
commit | bba2abe7ee38b8903822a07578c46466923d13ed (patch) | |
tree | a357fb8def6f58a9ea9a37411f3f5640dcb525fe /stage2/libraries.scala | |
parent | d2f8cade709b7d55a93e18592b6e38247d648ca9 (diff) | |
download | cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.gz cbt-bba2abe7ee38b8903822a07578c46466923d13ed.tar.bz2 cbt-bba2abe7ee38b8903822a07578c46466923d13ed.zip |
start modularizing cbt into libraries
this extracts certain parts of cbt into stand-alone libraries, which can
be published to maven and used outside of cbt.
This also adds scalariform for these parts of the code.
This slows down cbt’s own build a lot because of the number of projects
involved! So we’ll follow this by a bunch of performance tweak commits.
Diffstat (limited to 'stage2/libraries.scala')
-rw-r--r-- | stage2/libraries.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/stage2/libraries.scala b/stage2/libraries.scala new file mode 100644 index 0000000..3d2951c --- /dev/null +++ b/stage2/libraries.scala @@ -0,0 +1,12 @@ +package cbt +class libraries( context: Context ) { + private def dep( name: String ) = DirectoryDependency( context.cbtHome / "libraries" / name )( context ) + def captureArgs = dep( "capture_args" ) + def eval = dep( "eval" ) + def file = dep( "file" ) + def proguard = dep( "proguard" ) + def reflect = dep( "reflect" ) + def common_0 = dep( "common-0" ) + def common_1 = dep( "common-1" ) + def interfaces = dep( "interfaces" ) +} |