forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CleverRaven/master
Merge
- Loading branch information
Showing
894 changed files
with
100,201 additions
and
65,930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Checks: 'clang-diagnostic-*,-clang-analyzer-security.FloatLoopCounter,-clang-analyzer-core.UndefinedBinaryOperatorResult,-clang-analyzer-core.uninitialized.Assign,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-analyzer-core.CallAndMessage,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.NullDereference' | ||
Checks: 'clang-diagnostic-*,modernize-use-using' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: '.*' | ||
HeaderFilterRegex: '(src|test).*' | ||
FormatStyle: none | ||
|
||
# vim:tw=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,3 +171,8 @@ Xcode/ | |
|
||
# gdb | ||
.gdb_history | ||
|
||
# Flatpak build artifacts | ||
/.flatpak-builder/ | ||
/repo/ | ||
/build-dir/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Compilation guide for 64 bit Windows (using CYGWIN) | ||
|
||
This guide contains steps required to allow compilation of Cataclysm-DDA on Windows under CYGWIN. | ||
|
||
Steps from current guide were tested on Windows 10 (64 bit) and CYGWIN (64 bit), but should work for other versions of Windows and also CYGWIN (32 bit) if you download 32 bit version of all files. | ||
|
||
## Prerequisites: | ||
|
||
* Computer with 64 bit version of modern Windows operating system installed (Windows 10, Windows 8.1 or Windows 7); | ||
* NTFS partition with ~10 Gb free space (~2 Gb for CYGWIN installation, ~3 Gb for repository and ~5 Gb for ccache); | ||
* 64 bit version of CYGWIN (installer can be downloaded from [CYGWIN homepage](https://cygwin.com/)); | ||
|
||
## Installation: | ||
|
||
1. Go to [CYGWIN homepage](https://cygwin.com/) and download 64 bit installer (e.g. [setup-x86_64.exe](https://cygwin.com/setup-x86_64.exe). | ||
|
||
2. Run downloaded file and install CYGWIN (click `Next` button, select instalation source (e.g. `Install from Internet`), click `Next` button, specify directory where CYGWIN 64 bit will be installed (e.g. `C:\cygwin64`), select whether to install for all users or just you, click `Next` button again, select local package directory (e.g. `C:\Distr\Cygwin`), click `Next` button, select Internet connection settings, click `Next` button again, choose a download site from the list of available download sites, click `Next` button again). | ||
|
||
3. After CYGWIN installation is complete select following packages and press `Next` button to download and install them: | ||
|
||
* `wget`. | ||
|
||
4. System will tell you it will install following packages (you will install everything else later): | ||
|
||
``` | ||
... | ||
``` | ||
|
||
5. Check boxes to add shortcuts to Start Menu and/or Desktop, then press `Finish` button. | ||
|
||
## Configuration: | ||
|
||
1. Install `apt-cyg` for easier package installation with: | ||
|
||
```bash | ||
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg -O /bin/apt-cyg | ||
chmod 755 /bin/apt-cyg | ||
``` | ||
|
||
2. Install packages required for compilation with: | ||
|
||
```bash | ||
apt-cyg install git make astyle gcc-g++ libintl-devel libiconv-devel libSDL2_image-devel libSDL2_ttf-devel libSDL2_mixer-devel libncurses-devel xinit | ||
``` | ||
|
||
## Cloning and compilation: | ||
|
||
1. Clone Cataclysm-DDA repository with following command line: | ||
|
||
**Note:** This will download whole CDDA repository. If you're just testing you should probably add `--depth=1`. | ||
|
||
```bash | ||
git clone https://github.com/CleverRaven/Cataclysm-DDA.git | ||
cd Cataclysm-DDA | ||
``` | ||
|
||
2. Compile with following command line: | ||
|
||
```bash | ||
make CCACHE=1 RELEASE=1 CYGWIN=1 DYNAMIC_LINKING=1 SDL=1 TILES=1 SOUND=1 LOCALIZE=1 LANGUAGES=all LINTJSON=0 ASTYLE=0 RUNTESTS=0 | ||
``` | ||
|
||
**Note**: This will compile release version with Sound and Tiles support and all localization languages, skipping checks and tests and using ccache for faster build. You can use other switches, but `CYGWIN=1`, `DYNAMIC_LINKING=1` and probably `RELEASE=1` are required to compile without issues. | ||
|
||
## Running: | ||
|
||
1. Run from within CYGWIN XWin Server (found in Start Menu) with following command line: | ||
|
||
```bash | ||
./cataclysm-tiles | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Compiling Guide for Linux (Flatpak) | ||
|
||
## Prerequisites | ||
|
||
- Install `flatpak` and `flatpak-builder` from your distribution's package manager. | ||
- Install `freedesktop-platform` & `freedesktop-sdk` using `flatpak install flathub org.freedesktop.Platform//18.08 org.freedesktop.Sdk//18.08` | ||
|
||
## Build | ||
|
||
Clone the source code and run `flatpak-builder --repo=repo --ccache --force-clean build-dir org.Cataclysm.DDA.json` or `flatpak-builder --repo=repo --ccache --force-clean build-dir org.Cataclysm.DDA.Tiles.json` to build the ncurses or tiles version of the application. | ||
|
||
## Installation | ||
|
||
Run `flatpak --user install test-repo org.Cataclysm.DDA` (or) `flatpak --user install test-repo org.Cataclysm.DDA.Tiles` to install the game. | ||
Note: If you are installing the game for first time you will have to set up local repo. Run this `flatpak --user remote-add --no-gpg-verify test-repo repo` | ||
|
||
## Starting the game | ||
|
||
`flatpak run org.Cataclysm.DDA` (or) `flatpak run org.Cataclysm.DDA.Tiles` | ||
**or** | ||
Launch the Game from Applications -> Games -> Cataclysm: Dark Days Ahead (or) Cataclysm: Dark Days Ahead - Tiles. | ||
**Note**: For the ncurses version, terminal will just show a blank screen on launch. Just press any button to start the game. | ||
|
||
## Permissions | ||
|
||
- **Ncurses version** | ||
- Home Directory | ||
- **Tiles Version** | ||
- Home Directory | ||
- Wayland | ||
- Fallback-X11 - (incase Wayland doesn't work) | ||
- IPC - (Required for X11) | ||
- PulseAudio | ||
- DRI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.