Skip to content

Contributing

Daniil Tiganov edited this page Feb 18, 2020 · 6 revisions

Contributing to SWAN

IDE setup

  1. Follow the instructions in the Readme.
  2. Open up swan/ in IntelliJ IDEA.
  3. Select Import Module from Gradle - This should appear in the bottom right corner of your IDE.
  4. Select Use auto-import, "Use Gradle 'wrapper' task configuration, and the Gradle JVM should be Use Project JDK`. Press OK.

Note: If you change any C++ code, the IDE will not rebuild the shared library as it does not recognize C++ source. You will have to manually rebuild using ./gradlew assemble.

(Optional) CLion IDE

  1. Open swan/ca.maple.swan.translator/ in CLion.
  2. Uncomment the path in swan/ca.maple.swan.translator/CMakeLists.txt under the comment # SET THIS FOR C++ IDE.

When you change the C++ code, in any IDE, you must recompile it using ./gradlew assemble in order for SWAN to use the updated shared library.