💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. # Antkeeper
  2. Antkeeper is an ant colony simulation game. This repository contains all of the source code to Antkeeper. The game data, however, is proprietary and resides in a closed-source Git submodule.
  3. ## Download
  4. Use Git to download the `antkeeper` repository and its submodules:
  5. git clone --recursive https://github.com/cjhoward/antkeeper.git antkeeper
  6. ## Configuration & Building
  7. CMake is required to configure and build the application. Depending on the target build platform, CMake should be invoked from one of the following directories:
  8. build/linux32 // 32-bit GNU/Linux application
  9. build/linux64 // 64-bit GNU/Linux application
  10. build/win32 // 32-bit Windows application
  11. build/win64 // 64-bit Windows application
  12. The following arguments may be passed to CMake during configuration:
  13. -DCMAKE_BUILD_TYPE // [Debug, Release]
  14. -DPLATFORM // [linux32, linux64, win32, win64]
  15. -DLANGUAGE // [en-us, zh-cn]
  16. -DSTANDALONE // [OFF, ON]
  17. ### GNU/Linux
  18. Building on GNU/Linux requires CMake, GCC, G++, and GNU Make. Open a terminal in the project root directory and run the following commands:
  19. cd build/linux64
  20. cmake ../.. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=...
  21. cmake --build .
  22. ### Windows
  23. Building on Windows requires CMake and Visual Studio 2017. Additionally, [NSIS](http://nsis.sourceforge.net/) is required if you want to build a distributable installer program. In order to correctly build for your target architecture, you must use the `x86 Native Tools Command Prompt` or the `x64 Native Tools Command Prompt` for 32-bit and 64-bit applications, respectively. Then navigate to the project root directory and run the following commands:
  24. cd build/win64
  25. cmake ..\.. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=...
  26. cmake --build .
  27. ## Testing
  28. After building, a standalone version of the application will be located somewhere in the `bin` directory, according to the build type, build platform, and version string. This application can be executed with the following command:
  29. cmake --build . --target run
  30. ## Distribution
  31. The built application can be packaged into a distributable format with the following command:
  32. cmake --build . --target package
  33. The resulting package will be located in the `dist` directory.
  34. ## Contributing
  35. If any changes have been made to the submodules, commit those first. Each submodule can then be updated to their latest commits with the following command:
  36. git submodule update --recursive --remote
  37. ## License
  38. The source code for Antkeeper is licensed under the GNU General Public License, version 3. See [COPYING](./COPYING) for details.