mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 08:49:03 +00:00
2.2 KiB
2.2 KiB
Building
Linux (incl. Windows Subsystem for Linux) & MacOS - Makefile
Requirements
makedoxygengraphviz- Terminal access
- Typical GNU compatible development tools (e.g.
clang,g++,c++,aretc) with C++11 support
Using Makefile
make(default) - Compile library & self-test programmake lib- Compile librarymake test_program- Compile self-test programmake clean- Remove all object files, compiled programsmake docs- Generate documentationmake clean_docs- Remove all documentation
Native Win32 - Visual Studio
Requirements
- Visual Studio Community 2015 or 2017 or 2019
- Doxygen
- Graphviz (make sure to download the GUI)
- Add the location of the Graphviz
bindirectory to$(PATH)or create a separate enviroment variable$(DOT_PATH)for it.
- Add the location of the Graphviz
Compiling Library & Self-Test Program
- Open
build/visualstudio/libtoolchain.slnin Visual Studio - Select Target (e.g
Debug|Release&x86|x64) - Navigate to
Build->Build Solution
Including libtoolchain in another VS Solution for static linking
- Clone
libtoolchainas a submodule into your project - Navigate to the
Solution Explorerwindow - Right-click on the Solution Item and select
Add->Existing Project... - In the filesystem popup window open
<libtoolchain location>/build/visualstudio/libtoolchain/libtoolchain.vcxproj - Update each dependant project's
Referencesto include libtoolchain - Update each dependant project's
Property Pagesso that forAll ConfigurationsandAll PlatformstheAddition Include Directorieshas the relative path to<libtoolchain location>/include - Update the
Project Build Orderso libtoolchain is built before any of its dependants - Update the
Project Dependenciesso that each dependant has the box checked for libtoolchain
Generating Doxygen Documentation
- Open
Doxywizard - Under
Step 1specify the directory of libtoolchain as the working directory - This should open the Doxyfile and pre-fill all the configuration
- Under
Step 2navigate toRunand pressRun doxygen