To build Athena, you can run the BUILD.bat
(for Windows) or BUILD.sh
(for Unix-based systems). These scripts simply execute the build.py
Python script for convenience.
For additional options, you can run:
python build.py --help
Here are the options you can use with the build.py
script:
-
--force-premake
Install Premake without asking for permission.
Use this option if you want to force the installation of Premake, bypassing any prompts. -
--force-python
Install Python packages without asking for permission.
This option forces the installation of required Python packages without user confirmation. -
--enable-WSL
Enable Windows Subsystem for Linux (WSL) for building Athena.
Use this if you prefer to build Athena using WSL on a Windows system. -
--api-type
Choose an API type.
This option allows you to specify the type of API to be used. The choices are:C-API
orC
CPP-API
orCPP
COMBINED
NONE
ornone
(Default)
-
--lib-type
Choose a library type.
Specify the type of library to be built. The choices are:SharedLib
orShared
StaticLib
orStatic
(Default)
These options provide flexibility in configuring the build process according to your specific needs.
to use the libary in another project using premake5
you just need to do 2 things:
-
add an
include directive
to your own premake5.lua script -
add a
link
to the library. -
(optional) add the athena folder to your
includedirs
.
all the build.py build options
except for --force-premake & --force-python can be used when running premake5 to