Merge pull request #1 from RandomReaper/master

Eclipse support for SpinalBaseProject
This commit is contained in:
Dolu1990
2016-06-01 15:30:52 +02:00
4 changed files with 28 additions and 0 deletions

6
.gitignore vendored
View File

@@ -20,9 +20,15 @@ project/plugins/project/
.idea
out
# Eclipse
bin/
.classpath
.project
.settings
#User
*.vhd
*.cf
*.json
!tester/src/test/resources/*.vhd

View File

@@ -36,3 +36,23 @@ And do the following :
- In the project (Intellij project GUI), right click on src/main/scala/MyCode/TopLeve.scala and select "Run MyTopLevel"
Normally, this must generate output files MyTopLevel.vhd.
## Basics, with Eclipse and its scala plugin
You need to install :
- Java JDK
- Scala
- SBT
- Eclipse (tested with Mars.2 - 4.5.2)
- [Sacla plugin](http://scala-ide.org/) (tested with 4.4.1)
And do the following :
- Clone or download this repository.
- Run ```sbt eclipse``` in the ```SpinalBaseProject``` directory.
- Import the eclipse project from eclipse.
- In the project (eclips project GUI), right click on src/main/scala/MyCode/TopLeve.scala and select "Run as" > "Scala application"
Normally, this must generate output file ```MyTopLevel.vhd```.

View File

2
project/plugins.sbt Normal file
View File

@@ -0,0 +1,2 @@
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")