This project uses cmake
for project building
so it must be installed as well a c++17
(or greater) compliant C++
compiler.
4-bit Full Adder demo:
The latest deployed wasm builds are available on: https://halidodat.github.io/gate/
Cloning the repository must be done recursively to get the dependecies.
git clone --recursive https://www.github.com/HalidOdat/gate.git
Building the project, In the terminal type to configure CMake
cmake . -DCMAKE_BUILD_TYPE=Release -B build
To build you can either open the solution file with visual studio if you are on Windows, Or use the command line to build it on windows and linux with:
cmake --build build --config Release
NOTE: Executing the program must be done in the same place that the assets directory is located.
On Linux:
./build/gate
On Windows:
./build/gate.exe
Open directory where the root CMakeLists.txt
is located with Visual Studio (with the cpp development package installed) on Windows or Visual Studio Code (with the cmake extensions) and build the project.
Use the scripts/build_web.sh
script, which automatically installs emscripten sdk and builds the project:
./scripts/build_web.sh
Before being able to compile to you must have the Emscripten SDK installed and sourced (as described in the link).
emcmake cmake . -B build-web -DCMAKE_BUILD_TYPE=Release
cmake --build build-web --config Release
cp -r web/* build-web
To be able to use the web version you need to start a server.
You can use python
's web server module.
python -m http.server -d build-web
Or upload it to a server.
Name | Surname | Index |
---|---|---|
Haled | Odat | 201516 |