Project

General

Profile

Building » History » Version 6

Sergey Smolov, 01/22/2020 03:27 PM

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