Contributing - themaplelab/swan GitHub Wiki
Contributing to SWAN
IDE setup
- Follow the instructions in the Readme.
- Open up
swan/in IntelliJ IDEA. - Select
Import Module from Gradle- This should appear in the bottom right corner of your IDE. - Select
Use auto-import, "Use Gradle 'wrapper' task configuration, and the Gradle JVM should beUse 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
- Open
swan/ca.maple.swan.translator/in CLion. - Uncomment the path in
swan/ca.maple.swan.translator/CMakeLists.txtunder 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.