Project

General

Profile

Building » History » Version 5

Sergey Smolov, 11/08/2019 06:04 PM

1 1 Sergey Smolov
h1. Building
2
3
h2. Getting project source code
4
5 5 Sergey Smolov
Clone the project Git repository and it's submodules:
6 1 Sergey Smolov
<pre>
7 2 Sergey Smolov
$ git clone --recursive https://forge.ispras.ru/git/veritrans.git
8 1 Sergey Smolov
</pre>
9
10
h2. Building and running Verilog Translator from command line
11
12
To build Verilog Translator and run JUnit tests we use "Gradle":http://gradle.org. Please install it first ("Gradle 4.10.3":https://docs.gradle.org/4.10.3/release-notes.html is recommended) or use Gradle wrapper script ('gradlew.bat' for Windows, 'gradlew' for Unix).
13
14
To compile main classes run:
15
<pre>
16
gradle classes
17
</pre>
18
To compile test classes run:
19
<pre>
20
gradle testClasses
21
</pre>
22
To run all unit tests run:
23
<pre>
24
gradle test
25
</pre>
26 4 Sergey Smolov
_NOTE : to list all Gradle commands run:_
27 1 Sergey Smolov
<pre>
28
gradle tasks
29
</pre>
30
31
h2. Building and running Verilog Translator from Eclipse IDE
32
33
# Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE.
34
# Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it:
35
<pre>
36
allprojects
37
{
38
  apply plugin: 'eclipse'
39
40
  it.eclipse
41
  {
42
    classpath.downloadJavadoc = true
43
  }
44
}
45
</pre>
46
# Import Verilog Translator's sources into Eclipse workspace:
47
* Use the menu item "File/Import...".
48
* Choose "Gradle/Gradle Project".
49
* Select the "veritrans" directory as the root directory, press "Next".
50
* Select the "Gradle wrapper (recommended)" import option.
51
* Press the "Finish" button: the project will be opened in the Eclipse IDE.