Skip to content

Commit c2b7f05

Browse files
committed
Updated README and premake5 script
1 parent 162a1c9 commit c2b7f05

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

premake5.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
PROJECT_GENERATOR_VERSION = 2
2+
13
newoption({
24
trigger = "gmcommon",
35
description = "Sets the path to the garrysmod_common (https://github.com/danielga/garrysmod_common) directory",
@@ -6,7 +8,7 @@ newoption({
68

79
local gmcommon = assert(_OPTIONS.gmcommon or os.getenv("GARRYSMOD_COMMON"),
810
"you didn't provide a path to your garrysmod_common (https://github.com/danielga/garrysmod_common) directory")
9-
include(gmcommon .. "/generator.v2.lua")
11+
include(gmcommon)
1012

1113
CreateWorkspace({name = "sourcenet", abi_compatible = true})
1214
CreateProject({serverside = true})

readme.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# gm\_sourcenet
22

3-
[![Build Status](https://metamann.visualstudio.com/GitHub%20danielga/_apis/build/status/danielga.gm_sourcenet?branchName=master)](https://metamann.visualstudio.com/GitHub%20danielga/_build/latest?definitionId=8&branchName=master)
4-
A module for Garry's Mod that provides interfaces to many systems of VALVe's engine, based on [gm\_sourcenet3][1], created by Chrisaster.
3+
[![Build Status](https://metamann.visualstudio.com/GitHub%20danielga/_apis/build/status/danielga.gm_sourcenet?branchName=master)](https://metamann.visualstudio.com/GitHub%20danielga/_build/latest?definitionId=8&branchName=master)
4+
5+
A module for Garry's Mod that provides interfaces to many systems of VALVe's engine, based on [gm\_sourcenet3][1], created by Chrisaster.
56

67
## Compiling
78

8-
The only supported compilation platforms for this project on Windows are **Visual Studio 2015**, **Visual Studio 2017** and **Visual Studio 2019** on **release** mode.
9-
On Linux, everything should work fine as is, on **release** mode.
10-
For Mac OSX, any **Xcode version (using the GCC compiler)** *MIGHT* work as long as the **Mac OSX 10.7 SDK** is used, on **release** mode.
11-
These restrictions are not random; they exist because of ABI compatibility reasons.
12-
If stuff starts erroring or fails to work, be sure to check the correct line endings (`\n` and such) are present in the files for each OS.
9+
The only supported compilation platform for this project on Windows is **Visual Studio 2017** on **release** mode. However, it's possible it'll work with *Visual Studio 2015* and *Visual Studio 2019* because of the unified runtime.
10+
11+
On Linux, everything should work fine as is, on **release** mode.
12+
13+
For macOS, any **Xcode (using the GCC compiler)** version *MIGHT* work as long as the **Mac OSX 10.7 SDK** is used, on **release** mode.
14+
15+
These restrictions are not random; they exist because of ABI compatibility reasons.
16+
17+
If stuff starts erroring or fails to work, be sure to check the correct line endings (\n and such) are present in the files for each OS.
1318

1419
## Requirements
1520

16-
This project requires [garrysmod_common][2], a framework to facilitate the creation of compilations files (Visual Studio, make, XCode, etc). Simply set the environment variable `GARRYSMOD_COMMON` or the premake option `--gmcommon=path` to the path of your local copy of [garrysmod_common][2].
17-
We also use [SourceSDK2013][3]. The previous links to [SourceSDK2013][3] point to my own fork of VALVe's repo and for good reason: Garry's Mod has lots of backwards incompatible changes to interfaces and it's much smaller, being perfect for automated build systems like Azure Pipelines (which is used for this project).
21+
This project requires [garrysmod_common][2], a framework to facilitate the creation of compilations files (Visual Studio, make, XCode, etc). Simply set the environment variable '**GARRYSMOD\_COMMON**' or the premake option '**gmcommon**' to the path of your local copy of [garrysmod_common][2].
22+
23+
We also use [SourceSDK2013][3]. The links to [SourceSDK2013][3] point to my own fork of VALVe's repo and for good reason: Garry's Mod has lots of backwards incompatible changes to interfaces and it's much smaller, being perfect for automated build systems like Azure Pipelines (which is used for this project).
1824

1925
[1]: https://github.com/AlexSwift/GMod13-Modules/tree/master/gm_sourcenet3
2026
[2]: https://github.com/danielga/garrysmod_common

0 commit comments

Comments
 (0)