Skip to content

Latest commit

 

History

History
56 lines (54 loc) · 1.68 KB

CONTRIBUTING.md

File metadata and controls

56 lines (54 loc) · 1.68 KB

Getting Started & Building:

  1. Prerequisites:

    • CMake version 3.17.0+ -> Ubuntu systems seem to have a problem getting the latest version, please build from sources or use another package such as snap.
    • Ninja
    • Additional prerequisites for building the documentation:
      • python packages: sphinx, breathe, divio-docs-theme
      • doxygen
  2. Checkout the repository:

    # --recursive flag is needed to pull in the submodule
    git clone https://github.com/codereport/jsource.git --recursive
  3. Build jconsole:

    • Run cmake:
    cd jsource
    mkdir build
    cmake -G "Ninja Multi-Config" -B build
    # If you want documentation built, modify your cmake command to:
    cmake -G "Ninja Multi-Config" -B build -DDOCS:STRING=YES
    • To build debug:
    ninja -C build
    • To build release:
    ninja -C build -f build-Release.ninja
  4. Run jconsole:

    • To run the debug build:
    ./build/jsrc/Debug/jconsole
    • To run the release build:
    ./build/jsrc/Release/jconsole
  5. Run tests:

    ninja -C build test
    • Filter tests:
    cd ./build && /usr/bin/ctest --force-new-ctest-process -C Debug -R hare_ && cd .. #fast
    cd ./build && /usr/bin/ctest --force-new-ctest-process -C Debug -R tortoise_ && cd .. #slow
    # this one requires to uncomment the disabled tests in ./test/CMakeLists.txt
    cd ./build && /usr/bin/ctest --force-new-ctest-process -C Debug -R disabled_ && cd ..

Extra: Get JHS Web IDE

./build/jsrc/Debug/jconsole ./jlibrary/addons/ide/jhs/config/jhs.cfg