-
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
-
Checkout the repository:
# --recursive flag is needed to pull in the submodule git clone https://github.com/codereport/jsource.git --recursive
-
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
-
Run jconsole:
- To run the debug build:
./build/jsrc/Debug/jconsole
- To run the release build:
./build/jsrc/Release/jconsole
-
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