aboutsummaryrefslogtreecommitdiff
path: root/examples/multi-standalone-example/build
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-11-12 18:51:33 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 10:10:03 -0500
commitb1db36baebe1f76a39e8bd1a89892465c70b69be (patch)
tree455c2429a2b94c9d6813a5df498fddf293123ec7 /examples/multi-standalone-example/build
parent8ebada86b1fc58465751864acba8aafd387ccb4b (diff)
downloadcbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.tar.gz
cbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.tar.bz2
cbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.zip
rename folder of one example as preparation for creating another one
showing how to do the same in a single build
Diffstat (limited to 'examples/multi-standalone-example/build')
-rw-r--r--examples/multi-standalone-example/build/build.scala10
-rw-r--r--examples/multi-standalone-example/build/build/build.scala10
2 files changed, 20 insertions, 0 deletions
diff --git a/examples/multi-standalone-example/build/build.scala b/examples/multi-standalone-example/build/build.scala
new file mode 100644
index 0000000..9a67488
--- /dev/null
+++ b/examples/multi-standalone-example/build/build.scala
@@ -0,0 +1,10 @@
+import cbt._
+class Build(val context: Context) extends SharedCbtBuild{
+ override def dependencies =
+ super.dependencies ++ // don't forget super.dependencies here
+ Seq(
+ // source dependency
+ DirectoryDependency( projectDirectory ++ "/sub1" ),
+ DirectoryDependency( projectDirectory ++ "/sub2" )
+ )
+}
diff --git a/examples/multi-standalone-example/build/build/build.scala b/examples/multi-standalone-example/build/build/build.scala
new file mode 100644
index 0000000..be72a13
--- /dev/null
+++ b/examples/multi-standalone-example/build/build/build.scala
@@ -0,0 +1,10 @@
+import cbt._
+
+class Build(val context: Context) extends BuildBuild{
+ override def dependencies =
+ super.dependencies ++ // don't forget super.dependencies here
+ Seq(
+ // source dependency
+ DirectoryDependency( projectDirectory.getParentFile ++ "/shared-build" )
+ )
+}