The Build process can be broken down into two phases:
Phase 1 : Dependency Configuration
This phase includes dependency configuration scripts in the form of batch files (.bat for Windows) and (.sh for Linux/Macintosh). If new dependencies are necessary these or existing dependencies need to be removed these scripts would be the place to make those changes.
The scripts can be found in the gmatroot/depends/ directory.
Phase 2 : Automatic Build Script Generation & Compilation
This phase makes use of CMake, the cross-platform, open-source build system. (CMake is a family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice.)
- Rerun Build.bat located in gmatroot/build/ directory or
- Rebuild with Visual Studio IDE (Upon a rebuild the CMake Cache will be auto updated and the new source files and include files will appear in Visual Studio).
- Rerun Build.bat located in gmatroot/build/ directory.
GMAT Binaries and dependencies will be built to the gmatroot/application/bin directory. Intermediate builds will go to the gmatroot/build/src/<configuration>/<project_name>.dir/ folder. The auto generated Visual studio solution files and make files will go to the gmatroot/build/<os>/ folder.
- wxWidgets need preconfigured setup.h file copied over to its Operating System specific folder before build. This preconfigured file is located in gmatroot/depends/bin/wx/setup.h. This file is automatically copied by configure.bat/configure.sh script. This will only be necessary if creating dependencies manually.