Skip to content

Commit

Permalink
Remove gradle & cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Apr 7, 2021
1 parent ccd36e7 commit c893651
Show file tree
Hide file tree
Showing 114 changed files with 90 additions and 6,600 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
**/build
**/.gradle
.idea
*.iml
*.bat
*.log
Expand All @@ -21,6 +19,3 @@
**/msvc/ipch

rehlds/version/appversion.h
rehlds/_rehldsTestImg
rehlds/_dev
publish
79 changes: 37 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ Archive's bin directory contains 2 subdirectories, 'bugfixed' and 'pure'

## Configuring
Bugfixed version of rehlds contains an additional cvars:

<details>
<summary>Click to expand</summary>

<ul>
<li>listipcfgfile <filename> // File for permanent ip bans. Default: listip.cfg
<li>syserror_logfile <filename> // File for the system error log. Default: sys_error.log
Expand All @@ -57,64 +61,55 @@ Bugfixed version of rehlds contains an additional cvars:
<li>sv_use_entity_file // Use custom entity file for a map. Path to an entity file will be "maps/[map name].ent". 0 - use original entities. 1 - use .ent files from maps directory. 2 - use .ent files from maps directory and create new .ent file if not exist.
</ul>

</details>

## Commands
Bugfixed version of rehlds contains an additional commands:
Bugfixed version of rehlds contains an additional commands
<ul>
<li>rescount // Prints the total count of precached resources in the server console
<li>reslist &lt;sound | model | decal | generic | event&gt; // Separately prints the details of the precached resources for sounds, models, decals, generic and events in server console. Useful for managing resources and dealing with the goldsource precache limits.
</ul>

## Build instructions
### Checking requirements
There are several software requirements for building rehlds:
<ol>
<li>Java Development Kit (JDK) 7+ (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)</li>
<li>For Windows: Visual Studio 2013 and later</li>
<li>For Linux: Intel C++ Compiler 13 and later or GCC 4.9.2 or later (some earlier versions might work too)</li>
</ol>

### Checking requirements
#### JDK version
Windows<pre>&gt; %JAVA_HOME%\bin\javac -version
javac 1.8.0_25
#### Windows
<pre>
Visual Studio 2013 and later
</pre>

Linux
<pre>$ javac -version
javac 1.7.0_65
#### Linux
<pre>
cmake >= 3.10
GCC >= 4.9.2 (Optional)
ICC >= 15.0.1 20141023 (Optional)
LLVM (Clang) >= 6.0 (Optional)
</pre>

#### Visual Studio
Help -> About
### Building

#### ICC
<pre>$ icc --version
icc (ICC) 15.0.1 20141023
</pre>
#### Windows
Use `Visual Studio` to build, open `msvc/ReHLDS.sln` and just select from the solution configurations list `Release Swds` or `Debug Swds`

#### GCC
<pre>$ gcc --version
gcc (Debian 4.9.2-10) 4.9.2
</pre>
#### Linux

### Building
On Windows:
<pre>gradlew --max-workers=1 clean buildRelease</pre>
* For faster building without unit tests use this:exclamation:
<pre>gradlew --max-workers=1 clean buildFixes</pre>
<b>NOTE:</b> You can also use `Visual Studio` to build, just select from the solution configurations list `Release Swds` or `Debug Swds`<br />

On Linux (ICC):
<pre>./gradlew --max-workers=1 clean buildRelease</pre>
* For faster building without unit tests use this:exclamation:
<pre>./gradlew --max-workers=1 clean buildFixes</pre>

On Linux (GCC):
<pre>./gradlew --max-workers=1 -PuseGcc clean buildRelease</pre>
* For faster building without unit tests use this:exclamation:
<pre>./gradlew --max-workers=1 -PuseGcc clean buildFixes</pre>

Also there is a task `buildEngine`, it builds only engine, without other parts of the project.<br />
Compiled binaries will be placed in the rehlds/build/binaries/ directory
<ul>
<li>
ICC:
<pre>./build.sh --compiler=intel</pre>
</li>

<li>
LLVM (Clang):
<pre>./build.sh --compiler=clang</pre>
</li>

<li>
GCC:
<pre>./build.sh --compiler=gcc</pre>
</li>
</ul>

## How can I help the project?
Just install it on your game server and report problems you faced.
Expand Down
55 changes: 0 additions & 55 deletions build.gradle

This file was deleted.

39 changes: 39 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

CC=gcc
CXX=g++

n=0
args=()
for i in "$@"
do
case $i in
-j=*|--jobs=*)
jobs="${i#*=}"
shift
;;
-c=*|--compiler=*)
C="${i#*=}"
shift
;;
*)
args[$n]="$i"
((++n))
;;
esac
done

case "$C" in
("intel"|"icc") CC=icc CXX=icpc ;;
("gcc") CC=gcc CXX=g++ ;;
("clang") CC=clang CXX=clang++ ;;
*)
;;
esac

rm -rf build
mkdir build
pushd build
CC=$CC CXX=$CXX cmake ${args[@]} ..
make -j${jobs}
popd
27 changes: 0 additions & 27 deletions buildSrc/build.gradle

This file was deleted.

This file was deleted.

60 changes: 0 additions & 60 deletions buildSrc/src/main/groovy/dirsync/builder/FileTreeMerger.groovy

This file was deleted.

22 changes: 0 additions & 22 deletions buildSrc/src/main/groovy/dirsync/builder/PostBuildPass.groovy

This file was deleted.

Loading

0 comments on commit c893651

Please sign in to comment.