Project

General

Profile

Building » History » Revision 2

Revision 1 (Sergey Smolov, 10/04/2019 06:46 PM) → Revision 2/9 (Sergey Smolov, 10/07/2019 11:39 AM)

h1. Building 

 h2. Getting project source code 

 # Clone the project Git repository 
 <pre> 
 $ git clone --recursive https://forge.ispras.ru/git/veritrans.git 
 </pre> 
 # The command above creates 'veritrans' directory with project's code inside it. Enter the 'veritrans' directory and do the following: 
 <pre> 
 $ git submodule init 
 $ git submodule update 
 </pre> 

 These commands get code of project's submodules to the current location. 

 h2. Building and running Verilog Translator from command line 

 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). 

 To compile main classes run: 
 <pre> 
 gradle classes 
 </pre> 
 To compile test classes run: 
 <pre> 
 gradle testClasses 
 </pre> 
 To run all unit tests run: 
 <pre> 
 gradle test 
 </pre> 
 To list all Gradle commands run: 
 <pre> 
 gradle tasks 
 </pre> 

 h2. Building and running Verilog Translator from Eclipse IDE 

 # Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE. 
 # Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it: 
 <pre> 
 allprojects 
 { 
   apply plugin: 'eclipse' 

   it.eclipse 
   { 
     classpath.downloadJavadoc = true 
   } 
 } 
 </pre> 
 # Import Verilog Translator's sources into Eclipse workspace: 
 * Use the menu item "File/Import...". 
 * Choose "Gradle/Gradle Project". 
 * Select the "veritrans" directory as the root directory, press "Next". 
 * Select the "Gradle wrapper (recommended)" import option. 
 * Press the "Finish" button: the project will be opened in the Eclipse IDE.