-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59bef02
commit c49be64
Showing
16 changed files
with
503 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
BasedOnStyle: Microsoft | ||
|
||
... |
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,20 @@ | ||
find_program(PAGECOMPILER_EXE cpspc HINTS ${PAGECOMPILER_DIR} REQUIRED) | ||
|
||
|
||
|
||
macro(PageCompiler file outfile) | ||
get_filename_component(out ${outfile} DIRECTORY) | ||
|
||
if (WIN32) | ||
set(PC_COMMAND ${PAGECOMPILER_EXE} /output-dir ${out} ${file}) | ||
else () | ||
set(PC_COMMAND ${PAGECOMPILER_EXE} --output-dir ${out} ${file}) | ||
endif () | ||
|
||
add_custom_command( | ||
OUTPUT ${outfile} | ||
COMMENT "Compiling ${file}" | ||
DEPENDS ${file} | ||
COMMAND ${PC_COMMAND} | ||
) | ||
endmacro() |
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,18 +1,34 @@ | ||
import os | ||
from conan import ConanFile | ||
from conan.tools.files import copy | ||
from conan.tools.cmake import CMakeToolchain, CMakeDeps | ||
from conan.tools.files import copy, save | ||
|
||
|
||
class RoRServer(ConanFile): | ||
name = "RoRServer" | ||
settings = "os", "compiler", "build_type", "arch" | ||
generators = "CMakeToolchain", "CMakeDeps" | ||
default_options = { | ||
"poco*:enable_pagecompiler": True, | ||
"poco*:enable_data_mysql": False, | ||
} | ||
|
||
def layout(self): | ||
self.folders.generators = os.path.join(self.folders.build, "generators") | ||
|
||
def requirements(self): | ||
self.requires("angelscript/2.37.0") | ||
self.requires("jsoncpp/1.9.5") | ||
self.requires("poco/1.13.3") | ||
self.requires("openssl/3.3.2", override=True) | ||
self.requires("socketw/3.11.0@anotherfoxguy/stable") | ||
self.requires("socketw/3.11.0@anotherfoxguy/stable") | ||
|
||
def generate(self): | ||
pc_exe = self.dependencies["poco"].cpp_info.bindirs[0].replace("\\", "/") | ||
tc = CMakeToolchain(self) | ||
tc.variables["PAGECOMPILER_DIR"] = pc_exe | ||
tc.generate() | ||
deps = CMakeDeps(self) | ||
deps.generate() | ||
if self.settings.build_type == "Release": | ||
deps.configuration = "RelWithDebInfo" | ||
deps.generate() |
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
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,28 @@ | ||
/* | ||
This file is part of "Rigs of Rods Server" (Relay mode) | ||
Copyright 2007 Pierre-Michel Ricordel | ||
Copyright 2014+ Rigs of Rods Community | ||
"Rigs of Rods Server" is free software: you can redistribute it | ||
and/or modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation, either version 3 | ||
of the License, or (at your option) any later version. | ||
"Rigs of Rods Server" is distributed in the hope that it will | ||
be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
See the GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Foobar. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
|
||
#define BEGIN_HTML_ITERATOR(_BEGIN, _END) for (auto it = _BEGIN; it != _END; it++){ | ||
#define END_HTML_ITERATOR } | ||
|
||
#define BEGIN_HTML_LOOP(_max) for (int i = 0; i < _max; i++){ | ||
#define END_HTML_LOOP } |
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.