-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add godot-coroutine-library to project
- Loading branch information
Showing
9 changed files
with
129 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,47 @@ | ||
--- | ||
Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,cppcoreguidelines-pro-type-member-init,modernize-redundant-void-arg,modernize-use-bool-literals,modernize-use-default-member-init,modernize-use-nullptr,readability-braces-around-statements,readability-redundant-member-init' | ||
WarningsAsErrors: '' | ||
HeaderFilterRegex: '' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: none | ||
CheckOptions: | ||
- key: cert-dcl16-c.NewSuffixes | ||
value: 'L;LL;LU;LLU' | ||
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField | ||
value: '0' | ||
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors | ||
value: '1' | ||
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic | ||
value: '1' | ||
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays | ||
value: '1' | ||
- key: cppcoreguidelines-pro-type-member-init.UseAssignment | ||
value: '1' | ||
- key: google-readability-function-size.StatementThreshold | ||
value: '800' | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: '10' | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: '2' | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: '16' | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: llvm | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: llvm | ||
- key: modernize-use-bool-literals.IgnoreMacros | ||
value: '0' | ||
- key: modernize-use-default-member-init.IgnoreMacros | ||
value: '0' | ||
- key: modernize-use-default-member-init.UseAssignment | ||
value: '1' | ||
- key: modernize-use-nullptr.NullMacros | ||
value: 'NULL' | ||
- key: readability-braces-around-statements.ShortStatementLines | ||
value: '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
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,53 @@ | ||
import versioninfo.fullGodotKotlinJvmVersion | ||
|
||
plugins { | ||
alias(libs.plugins.kotlin.jvm) | ||
id("com.utopia-rise.godot-publish") | ||
id("com.utopia-rise.versioninfo") | ||
alias(libs.plugins.kotlinPreProcessors) | ||
} | ||
|
||
val isRelease = project.hasProperty("release") | ||
|
||
kotlinDefinitions { | ||
definitionsObjectName.set("GodotJvmBuildConfig") | ||
|
||
define("DEBUG", !isRelease) | ||
} | ||
|
||
|
||
kotlin { | ||
jvmToolchain(11) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
dependencies { | ||
// added here as a transitive dependency so the user can use reflection | ||
// we need to add it here so reflection is available where the code is loaded (Bootstrap.kt) otherwise it will not work | ||
api(kotlin("reflect", version = libs.versions.kotlin.get())) | ||
implementation("com.utopia-rise:tools-common:$fullGodotKotlinJvmVersion") | ||
testImplementation("junit", "junit", "4.12") | ||
} | ||
|
||
val targetSuffix = if (isRelease) "release" else "debug" | ||
|
||
publishing { | ||
publications { | ||
@Suppress("UNUSED_VARIABLE") | ||
val godotCoroutineLibraryPublication by creating(MavenPublication::class) { | ||
pom { | ||
name.set("${project.name}-$targetSuffix") | ||
description.set("Godot library extension allowing the use of coroutines in a Godot context.") | ||
} | ||
artifactId = "godot-coroutine-library-$targetSuffix" | ||
description = "Godot library extension allowing the use of coroutines in a Godot context." | ||
artifact(tasks.jar) | ||
artifact(tasks.getByName("sourcesJar")) | ||
artifact(tasks.getByName("javadocJar")) | ||
} | ||
} | ||
} |
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