Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the project structure #202

Merged
merged 1 commit into from
Sep 13, 2024
Merged
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ local.properties

# Misc
.DS_Store
/common/src/gen/
/plugin/src/gen/
12 changes: 6 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ opts.Update(env)

# Add common includes
env.Append(CPPPATH=[
"#common/src/main/cpp/include/",
"#plugin/src/main/cpp/include/",
"#thirdparty/openxr/include/",
])

sources = []
sources += Glob("#common/src/main/cpp/*.cpp")
sources += Glob("#common/src/main/cpp/export/*.cpp")
sources += Glob("#common/src/main/cpp/extensions/*.cpp")
sources += Glob("#common/src/main/cpp/classes/*.cpp")
sources += Glob("#plugin/src/main/cpp/*.cpp")
sources += Glob("#plugin/src/main/cpp/export/*.cpp")
sources += Glob("#plugin/src/main/cpp/extensions/*.cpp")
sources += Glob("#plugin/src/main/cpp/classes/*.cpp")

if env["target"] in ["editor", "template_debug"]:
doc_data = env.GodotCPPDocData("#common/src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
doc_data = env.GodotCPPDocData("#plugin/src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
sources.append(doc_data)

binary_path = '#demo/addons/godotopenxrvendors/.bin'
Expand Down
16 changes: 3 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ task clean(type: Delete) {
dependsOn 'cleanAddon'
dependsOn 'cleanBuildFromSamples'

dependsOn ':godotopenxrkhronos:clean'
dependsOn ':godotopenxrlynx:clean'
dependsOn ':godotopenxrmeta:clean'
dependsOn ':godotopenxrpico:clean'
dependsOn ':godotopenxrmagicleap:clean'
dependsOn ':plugin:clean'
}

/**
Expand All @@ -52,13 +48,7 @@ task cleanAddon(type: Delete) {
task buildPlugin {
// Generate the editor gdextension binaries
dependsOn ':buildSconsArtifacts'

dependsOn ":godotopenxrkhronos:build"
dependsOn ":godotopenxrlynx:build"
dependsOn ":godotopenxrmeta:build"
dependsOn ":godotopenxrpico:build"
dependsOn ":godotopenxrmagicleap:build"

dependsOn ":plugin:build"
finalizedBy "copyBuildToSamples"
}

Expand Down Expand Up @@ -158,4 +148,4 @@ task cleanBuildFromSamples {
}
}
}
}
}
24 changes: 12 additions & 12 deletions config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ ext {
libraries = [
godotAndroidLib: "org.godotengine:godot:4.3.0.stable",
]
}

// Parse the release version from the gradle project properties (e.g: -Prelease_version=<version>)
ext.getReleaseVersion = { ->
final String defaultVersion = "3.1.0-dev-SNAPSHOT"
// Parse the release version from the gradle project properties (e.g: -Prelease_version=<version>)
getReleaseVersion = { ->
final String defaultVersion = "3.1.0-dev-SNAPSHOT"

String releaseVersion = project.hasProperty("release_version") ? project.property("release_version") : defaultVersion
if (releaseVersion == null || releaseVersion.isEmpty()) {
releaseVersion = defaultVersion
}
String releaseVersion = project.hasProperty("release_version") ? project.property("release_version") : defaultVersion
if (releaseVersion == null || releaseVersion.isEmpty()) {
releaseVersion = defaultVersion
}

if (!releaseVersion.endsWithIgnoreCase("-stable") && !releaseVersion.endsWithIgnoreCase("-snapshot")) {
releaseVersion += "-SNAPSHOT"
}
if (!releaseVersion.endsWithIgnoreCase("-stable") && !releaseVersion.endsWithIgnoreCase("-snapshot")) {
releaseVersion += "-SNAPSHOT"
}

return releaseVersion
return releaseVersion
}
}
42 changes: 0 additions & 42 deletions godotopenxrkhronos/CMakeLists.txt

This file was deleted.

106 changes: 0 additions & 106 deletions godotopenxrkhronos/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion godotopenxrlynx/.gitignore

This file was deleted.

47 changes: 0 additions & 47 deletions godotopenxrlynx/CMakeLists.txt

This file was deleted.

Loading
Loading