(Change ZLIB_SOURCE, ZLIB_INCLUDE and ZLIB_LIBPATH to your zlib path.)
Building LuaJIT
Open Visual Studio command prompt (Available from the menu bar under "Tools -> Visual Studio Command Prompt")
Go to %PROGRAMFILES(X86)%/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build (or the equivalent directory for your Visual Studio version)
Run vcvarsall.bat x64
Go to Pragma/third_party_libs/luajit/src
Run msvcbuild.bat
Run configure with CMake in the Pragma root directory
Set the following variables:
DEPENDENCY_BOOST_INCLUDE: Boost include directory
DEPENDENCY_GEOMETRIC_TOOLS_INCLUDE: GTE include directory
DEPENDENCY_BOOST_CHRONO_LIBRARY: Path to boost chrono library (boost_chrono-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_DATE_TIME_LIBRARY: Path to boost date-time library (boost_date_time-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_FILESYSTEM_LIBRARY: Path to boost filesystem library (boost_filesystem-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_IOSTREAMS_LIBRARY: Path to boost iostreams library (boost_iostreams-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_REGEX_LIBRARY: Path to boost regex library (boost_regex-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_SYSTEM_LIBRARY: Path to boost system library (boost_system-vc142-mt-x64-1_72.lib)
DEPENDENCY_BOOST_THREAD_LIBRARY: Path to boost thread library (boost_thread-vc142-mt-x64-1_72.lib)
Run configure again, then generate and open the solution
Build Pragma
The first time you should build Pragma using the core/pragma-install-full target, which is equal to core/pragma-install, but also copies all of the base assets required to run Pragma to the install directory (default is install).
For all subsequent builds, you can use core/pragma-install instead, which includes all of the core libraries, required dependencies and the OpenGL module for Pragma. All available module builds will automatically get installed every time you use the core/pragma-install target.
Pragma uses OpenGL by default if the Vulkan module has not been built, however Pragma is optimized for Vulkan. To use the Vulkan renderer:
Make sure the VulkanSDK is installed
Build modules/pr_prosper_vulkan
Build core/pragma-install
Vulkan will automatically be used by default if available. You can also force a particular renderer by adding -graphics_api opengl or -graphics_api vulkan to the launch options respectively.
Build Instructions (Linux)
TODO
Modules
There are various optional modules available for Pragma, some of which are already included with this repository, and some of which can be found online:
To install a module, check it out into Pragma/modules, re-configure and re-generate the solution using CMake, then build the module and then build core/pragma-install to install it.
请发表评论