Project

General

Profile

Building » History » Version 1

Sergey Smolov, 10/04/2019 06:46 PM

1 1 Sergey Smolov
h1. Building
2
3
h2. Getting project source code
4
5
# Clone the project Git repository
6
<pre>
7
$ git clone https://forge.ispras.ru/git/veritrans.git
8
</pre>
9
# The command above creates 'veritrans' directory with project's code inside it. Enter the 'veritrans' directory and do the following:
10
<pre>
11
$ git submodule init
12
$ git submodule update
13
</pre>
14
15
These commands get code of project's submodules to the current location.
16
17
h2. Building and running Verilog Translator from command line
18
19
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).
20
21
To compile main classes run:
22
<pre>
23
gradle classes
24
</pre>
25
To compile test classes run:
26
<pre>
27
gradle testClasses
28
</pre>
29
To run all unit tests run:
30
<pre>
31
gradle test
32
</pre>
33
To list all Gradle commands run:
34
<pre>
35
gradle tasks
36
</pre>
37
38
h2. Building and running Verilog Translator from Eclipse IDE
39
40
# Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE.
41
# Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it:
42
<pre>
43
allprojects
44
{
45
  apply plugin: 'eclipse'
46
47
  it.eclipse
48
  {
49
    classpath.downloadJavadoc = true
50
  }
51
}
52
</pre>
53
# Import Verilog Translator's sources into Eclipse workspace:
54
* Use the menu item "File/Import...".
55
* Choose "Gradle/Gradle Project".
56
* Select the "veritrans" directory as the root directory, press "Next".
57
* Select the "Gradle wrapper (recommended)" import option.
58
* Press the "Finish" button: the project will be opened in the Eclipse IDE.