Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,23 @@ SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: true
SpacesInSquareBrackets: false
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
Standard: Cpp11
=======
Standard: Cpp17
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
>>>>>>> template/carbonengine/resources-updates
TabWidth: 4
UseTab: ForContinuationAndIndentation
---
Expand Down Expand Up @@ -146,7 +162,35 @@ SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: true
SpacesInSquareBrackets: false
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
Standard: Cpp11
TabWidth: 4
UseTab: ForContinuationAndIndentation
...
=======
Standard: Cpp17
TabWidth: 4
UseTab: ForContinuationAndIndentation
...
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
TabWidth: 4
UseTab: ForContinuationAndIndentation
...
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
TabWidth: 4
UseTab: ForContinuationAndIndentation
...
>>>>>>> template/carbonengine/resources-updates
=======
Standard: Cpp17
TabWidth: 4
UseTab: ForContinuationAndIndentation
...
>>>>>>> template/carbonengine/resources-updates
57 changes: 57 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
[*]
charset = utf-8
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
end_of_line = crlf
=======
end_of_line = lf
>>>>>>> template/carbonengine/resources-updates
=======
end_of_line = lf
>>>>>>> template/carbonengine/resources-updates
=======
end_of_line = lf
>>>>>>> template/carbonengine/resources-updates
=======
end_of_line = lf
>>>>>>> template/carbonengine/resources-updates
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 4
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
Expand Down Expand Up @@ -946,3 +966,40 @@ ij_python_wrap_long_lines = false

[{*.toml,Cargo.lock,Cargo.toml.orig,Gopkg.lock,Pipfile,poetry.lock}]
ij_toml_keep_indents_on_empty_lines = false
=======
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
trim_trailing_whitespace = true

[{*.yaml,*.yml,.clang-format,.clang-tidy,_clang-format}]
# In yaml, a two-space indent is used by default in many of the solutions we integrate with.
# Examples are GitHub Actions and Kubernetes
indent_size = 2

[{*.h,*.hpp,*.hxx,*.c,*.cpp,*.cxx}]
# .clang-format should take precedence, but for editors which do not do that we're adding those settings here, too.
indent_style = tab

[*.red]
# Those are yaml files, but do use a 4 space indent
indent_size = 4

[{*.markdown,*.md}]
# In markdown a [double whitespace at the end of a line acts as a line break](https://www.markdownguide.org/basic-syntax/#line-breaks).
# Even though it's controversial to use it for that purpose (there are alternatives like using the `<br />` html tag),
# let's not break it accidentally in files that already use the double whitespace.
trim_trailing_whitespace = false
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@
*.pch

# Compiled Dynamic libraries
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
binaryCache/
>>>>>>> template/carbonengine/resources-updates
=======
binaryCache/
>>>>>>> template/carbonengine/resources-updates
=======
binaryCache/
>>>>>>> template/carbonengine/resources-updates
=======
binaryCache/
>>>>>>> template/carbonengine/resources-updates
*.so
*.dylib
*.dll
Expand All @@ -29,6 +45,10 @@ __pycache__/
# User generated local cmake configuration
CMakeUserPresets.json

<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD

### IDE ###
# User generated local IDE configuration
Expand All @@ -37,3 +57,19 @@ CMakeUserPresets.json
### VCPKG ###
# Temporary measure which fixes build agent issue
vcpkg_registry_cache/
=======
.cmake-build*
cmake-build*
>>>>>>> template/carbonengine/resources-updates
=======
.cmake-build*
cmake-build*
>>>>>>> template/carbonengine/resources-updates
=======
.cmake-build*
cmake-build*
>>>>>>> template/carbonengine/resources-updates
=======
.cmake-build*
cmake-build*
>>>>>>> template/carbonengine/resources-updates
32 changes: 32 additions & 0 deletions .teamcity/MacOS/Project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@ class CarbonBuildMacOS(buildName: String, configType: String, preset: String, ag
id(buildName.toId())
name = buildName

<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
artifactRules = "%env.CMAKE_INSTALL_PREFIX%"
=======
artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates
=======
artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates
=======
artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates

params {
param("env.SENTRY_CLI_DEBUG_SYMBOL_TYPE", "dsym")
Expand All @@ -73,7 +85,23 @@ class CarbonBuildMacOS(buildName: String, configType: String, preset: String, ag
param("env.VCPKG_BINARY_SOURCES", "clear;x-aws,s3://vcpkg-binary-cache-static/cache/,readwrite")
param("env.X_VCPKG_REGISTRIES_CACHE", "%teamcity.build.checkoutDir%/%github_checkout_folder%/regcache")
param("env.CMAKE_BUILD_PARALLEL_LEVEL", "8")
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
param("env.CTEST_PARALLEL_LEVEL", "1")
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
}


Expand Down Expand Up @@ -104,7 +132,11 @@ class CarbonBuildMacOS(buildName: String, configType: String, preset: String, ag
exec {
name = "Configure"
path = "cmake"
<<<<<<< HEAD
arguments = "--preset %env.CMAKE_PRESET% -S %teamcity.build.checkoutDir%/%github_checkout_folder% -B %env.CMAKE_BUILD_FOLDER% -DINSTALL_TO_MONOLITH=ON -DBUILD_CLI=ON -DBUILD_TESTING=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=%env.CMAKE_INSTALL_PREFIX% -DVCPKG_INSTALL_OPTIONS=--x-buildtrees-root=%teamcity.build.checkoutDir%/%github_checkout_folder%/buildtrees"
=======
arguments = "--preset %env.CMAKE_PRESET% -S %teamcity.build.checkoutDir%/%github_checkout_folder% -B %env.CMAKE_BUILD_FOLDER% -DINSTALL_TO_MONOLITH=ON -DCMAKE_INSTALL_PREFIX=%env.CMAKE_INSTALL_PREFIX% -DVCPKG_INSTALL_OPTIONS=--x-buildtrees-root=%teamcity.build.checkoutDir%/%github_checkout_folder%/buildtrees"
>>>>>>> template/carbonengine/resources-updates
}
exec {
name = "Build"
Expand Down
64 changes: 64 additions & 0 deletions .teamcity/Windows/Project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,19 @@ import jetbrains.buildServer.configs.kotlin.triggers.vcs
import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot
import jetbrains.buildServer.configs.kotlin.buildFeatures.provideAwsCredentials

<<<<<<< HEAD
val BuildParameters = "-arch=x64 -vcvars_ver=14.51"
val Debug = CarbonBuildWindows("Debug Windows", "Debug", "x64-windows-debug",BuildParameters)
val Internal = CarbonBuildWindows("Internal Windows", "Internal", "x64-windows-internal",BuildParameters)
val TrinityDev = CarbonBuildWindows("TrinityDev Windows", "TrinityDev", "x64-windows-trinitydev",BuildParameters)
val Release = CarbonBuildWindows("Release Windows", "Release", "x64-windows-release",BuildParameters)
val ReleaseDevFeatures = CarbonBuildWindows("Release Windows with Dev Features", "Release", "x64-windows-release-with-dev-features",BuildParameters)
=======
val Debug = CarbonBuildWindows("Debug Windows", "Debug", "x64-windows-debug")
val Internal = CarbonBuildWindows("Internal Windows", "Internal", "x64-windows-internal")
val TrinityDev = CarbonBuildWindows("TrinityDev Windows", "TrinityDev", "x64-windows-trinitydev")
val Release = CarbonBuildWindows("Release Windows", "Release", "x64-windows-release")
>>>>>>> template/carbonengine/resources-updates

object Project : Project({
id("Windows")
Expand All @@ -35,21 +42,54 @@ object Project : Project({
buildType(Internal)
buildType(TrinityDev)
buildType(Release)
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
buildType(ReleaseDevFeatures)
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
=======
>>>>>>> template/carbonengine/resources-updates
})


class CarbonBuildWindows(buildName: String, configType: String, preset: String, vsDevBatSwitches: String) : BuildType({
id(buildName.toId())
this.name = buildName

<<<<<<< HEAD
<<<<<<< HEAD
artifactRules = "%env.CMAKE_INSTALL_PREFIX%"
=======
artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates
=======
artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates
=======
})


class CarbonBuildWindows(buildName: String, configType: String, preset: String) : BuildType({
id(buildName.toId())
this.name = buildName

artifactRules = "%env.CMAKE_INSTALL_PREFIX% => artifact.zip"
>>>>>>> template/carbonengine/resources-updates

params {
param("env.GIT_TAG_HASH_OVERRIDE", "")
param("github_checkout_folder", "github")
param("env.CTEST_JUNIT_OUTPUT_FILE", "ctest_results.xml")
<<<<<<< HEAD
param("VS_DEV_BAT_SWITCHES", vsDevBatSwitches)
=======
select("env.VISUAL_STUDIO_PLATFORM_TOOLSET", "v141", label = "Visual Studio Platform Toolset", description = "Specify the toolset for the build. e.g. v141 or v143.",
options = listOf("v141 (2017)" to "v141", "v143 (2022)" to "v143"))
>>>>>>> template/carbonengine/resources-updates
param("env.CMAKE_BUILD_TARGETS", "all")
param("env.CMAKE_INSTALL_PREFIX", ".build-artifact")
param("env.CMAKE_CONFIG_TYPE", configType)
Expand All @@ -63,7 +103,23 @@ class CarbonBuildWindows(buildName: String, configType: String, preset: String,
param("env.VCPKG_BINARY_SOURCES", "clear;x-aws,s3://vcpkg-binary-cache-static/cache/,readwrite")
param("env.X_VCPKG_REGISTRIES_CACHE", "%teamcity.build.checkoutDir%/%github_checkout_folder%/regcache")
param("env.CMAKE_BUILD_PARALLEL_LEVEL", "8")
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
param("env.CTEST_PARALLEL_LEVEL", "1")
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
=======
param("env.CTEST_PARALLEL_LEVEL", "8")
>>>>>>> template/carbonengine/resources-updates
}

vcs {
Expand Down Expand Up @@ -91,7 +147,11 @@ class CarbonBuildWindows(buildName: String, configType: String, preset: String,
scriptContent = """
REM unfortunately ninja does not find the VS environment otherwise
REM NB: the exported PATH also contains the location where we installed sentry-cli, e.g. teamcity.agent.work.dir
<<<<<<< HEAD
call "%env.VSDEV_BAT_PATH%" %VS_DEV_BAT_SWITCHES%
=======
call "%env.VSDEV_BAT_PATH%" -arch=x64
>>>>>>> template/carbonengine/resources-updates
echo ##teamcity[setParameter name='env.INCLUDE' value='%%INCLUDE%%']
echo ##teamcity[setParameter name='env.LIB' value='%%LIB%%']
echo ##teamcity[setParameter name='env.LIBPATH' value='%%LIBPATH%%']
Expand All @@ -101,7 +161,11 @@ class CarbonBuildWindows(buildName: String, configType: String, preset: String,
exec {
name = "Configure"
path = "cmake"
<<<<<<< HEAD
arguments = "--preset %env.CMAKE_PRESET% -S %teamcity.build.checkoutDir%/%github_checkout_folder% -B %env.CMAKE_BUILD_FOLDER% -DINSTALL_TO_MONOLITH=ON -DBUILD_CLI=ON -DBUILD_TESTING=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=%env.CMAKE_INSTALL_PREFIX% -DVCPKG_INSTALL_OPTIONS=--x-buildtrees-root=%teamcity.build.checkoutDir%/%github_checkout_folder%/buildtrees"
=======
arguments = "--preset %env.CMAKE_PRESET% -S %teamcity.build.checkoutDir%/%github_checkout_folder% -B %env.CMAKE_BUILD_FOLDER% -DINSTALL_TO_MONOLITH=ON -DCMAKE_INSTALL_PREFIX=%env.CMAKE_INSTALL_PREFIX% -DVCPKG_INSTALL_OPTIONS=--x-buildtrees-root=%teamcity.build.checkoutDir%/%github_checkout_folder%/buildtrees"
>>>>>>> template/carbonengine/resources-updates
}
exec {
name = "Build"
Expand Down
16 changes: 16 additions & 0 deletions .teamcity/_Self.kt/Project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,23 @@ import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot

object Project : Project({

<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
description = "Build / Publish pipeline for https://github.com/carbonengine/resources"
=======
description = "Build / Publish pipeline for https://github.com/ccpgames/carbon-template"
>>>>>>> template/carbonengine/resources-updates
=======
description = "Build / Publish pipeline for https://github.com/ccpgames/carbon-template"
>>>>>>> template/carbonengine/resources-updates
=======
description = "Build / Publish pipeline for https://github.com/ccpgames/carbon-template"
>>>>>>> template/carbonengine/resources-updates
=======
description = "Build / Publish pipeline for https://github.com/ccpgames/carbon-template"
>>>>>>> template/carbonengine/resources-updates

params {
/* before changing carbon_ref, make sure to disable automatic settings synchronization on teamcity */
Expand Down
Loading
Loading