Skip to content

SolidityBuilder

UrsZeidler edited this page Feb 10, 2017 · 9 revisions

Solidity builder

The compiler support plugin adds preferences to manage the solidity compilers and the builder. The builder uses the selected compiler to generate a combine json file from the given sources files.

to enable the compilation of solidity files in eclipse:

  • add the compiler to the preferences
  • add the builder to the project
  • configure the builder

enable disable builder

The builder is added via context menu configure on the project.

installed compiler pref

installed compiler pref

solidity builder preferences

The builder preferences are divided in the preferences part and the project specific setting. The builder is always configured by the project settings.

Installed solidity compilers

The preferences for the solidity builder contains a list of available compilers and where to find them.

installed compiler pref

  • add - Select a solc file to add a single compiler
  • remove - Removes a selected entry
  • search - Searches recusive the given directory for solc files

Each solc is checked and queried for the version, only valid compilers are added to the view. From this view you can select the

Solc Builder Preference Page

Uses the list of compilers to set the compiler for a project. The main preferences are used as template for the project preferences.

installed compiler pref

configure builder

The builder setting is taken from the project properties and will be configured via the context menu properties on the project.

installed compiler pref

installed compiler pref

The source directory is the directory in which the solidity files are searched, all found files will be compiled together to a combined json file defined by the 'compile to file'. In the combobox you choose one of the installed compilers. Note that the 'gas optimization' is really expensive.

install without the modeling stuff

Don't want to use the modeling approach? You don't need the modeling and generation stuff to compile solidity code.

The compiler feature is a separate installable feature.

installed compiler pref