This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("build")
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
include(raylib_drm_kms)
|
||||
|
||||
[settings]
|
||||
os=Linux
|
||||
arch=armv8
|
||||
compiler=gcc
|
||||
compiler.version=12
|
||||
compiler.libcxx=libstdc++11
|
||||
compiler.cppstd=23
|
||||
build_type=Debug
|
||||
|
||||
[conf]
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "aarch64-linux-gnu-gcc", "cpp": "aarch64-linux-gnu-g++"}
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
include(raylib_drm_kms)
|
||||
|
||||
[settings]
|
||||
os=Linux
|
||||
arch=armv8
|
||||
compiler=gcc
|
||||
compiler.version=12
|
||||
compiler.libcxx=libstdc++11
|
||||
compiler.cppstd=23
|
||||
build_type=Release
|
||||
|
||||
[conf]
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "aarch64-linux-gnu-gcc", "cpp": "aarch64-linux-gnu-g++"}
|
||||
@@ -0,0 +1,4 @@
|
||||
[conf]
|
||||
raylib/*:tools.info.package_id:confs=["tools.cmake.cmaketoolchain:enabled_blocks", "tools.cmake.cmaketoolchain:extra_variables"]
|
||||
raylib/*:tools.cmake.cmaketoolchain:enabled_blocks=["user_toolchain", "generic_system", "compilers", "fpic", "arch_flags", "rpath_link_flags", "libcxx", "cppstd", "parallel", "extra_flags", "cmake_flags_init", "extra_variables", "try_compile", "find_paths", "pkg_config", "rpath", "shared", "output_dirs"]
|
||||
raylib/*:tools.cmake.cmaketoolchain:extra_variables={"PLATFORM": {"value": "DRM", "cache": True, "type": "STRING", "force": True}, "USE_EXTERNAL_GLFW": {"value": "OFF", "cache": True, "type": "BOOL", "force": True}, "OPENGL_VERSION": {"value": "ES 2.0", "cache": True, "type": "STRING", "force": True}, "BUILD_EXAMPLES": {"value": "OFF", "cache": True, "type": "BOOL", "force": True}, "WITH_PIC": {"value": "ON", "cache": True, "type": "BOOL", "force": True}, "CUSTOMIZE_BUILD": {"value": "ON", "cache": True, "type": "BOOL", "force": True}, "SUPPORT_MODULE_RAUDIO": {"value": "OFF", "cache": True, "type": "BOOL", "force": True}, "SUPPORT_CUSTOM_FRAME_CONTROL": {"value": "ON", "cache": True, "type": "BOOL", "force": True}, "SUPPORT_CAMERA_SYSTEM": {"value": "OFF", "cache": True, "type": "BOOL", "force": True}, "SUPPORT_GESTURES_SYSTEM": {"value": "ON", "cache": True, "type": "BOOL", "force": True}, "SUPPORT_RPRAND_GENERATOR": {"value": "OFF", "cache": True, "type": "BOOL", "force": True}}
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
include(raylib_drm_kms)
|
||||
|
||||
[settings]
|
||||
os=Linux
|
||||
arch=x86_64
|
||||
compiler=gcc
|
||||
compiler.version=12
|
||||
compiler.libcxx=libstdc++11
|
||||
compiler.cppstd=23
|
||||
build_type=Debug
|
||||
|
||||
[conf]
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "gcc-12", "cpp": "g++-12"}
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
include(raylib_drm_kms)
|
||||
|
||||
[settings]
|
||||
os=Linux
|
||||
arch=x86_64
|
||||
compiler=gcc
|
||||
compiler.version=12
|
||||
compiler.libcxx=libstdc++11
|
||||
compiler.cppstd=23
|
||||
build_type=Release
|
||||
|
||||
[conf]
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
||||
tools.build:compiler_executables={"c": "gcc-12", "cpp": "g++-12"}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("configure")
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN dpkg --add-architecture arm64
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
bash \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
clangd \
|
||||
cmake \
|
||||
curl \
|
||||
g++-12 \
|
||||
g++-aarch64-linux-gnu \
|
||||
gcc-12 \
|
||||
gcc-aarch64-linux-gnu \
|
||||
git \
|
||||
libdrm-dev \
|
||||
libdrm-dev:arm64 \
|
||||
libegl-dev \
|
||||
libegl-dev:arm64 \
|
||||
libgbm-dev \
|
||||
libgbm-dev:arm64 \
|
||||
libgles-dev \
|
||||
libgles-dev:arm64 \
|
||||
libglvnd-dev \
|
||||
libglvnd-dev:arm64 \
|
||||
ninja-build \
|
||||
pkg-config \
|
||||
python3 \
|
||||
python3-venv \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV CC=/usr/bin/gcc-12
|
||||
ENV CXX=/usr/bin/g++-12
|
||||
|
||||
RUN python3 -m venv /opt/modulus-python
|
||||
|
||||
ENV PATH=/opt/modulus-python/bin:${PATH}
|
||||
|
||||
RUN python -m pip install --no-cache-dir \
|
||||
conan==2.26.2
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
RUN mkdir -p /opt && touch /opt/modulus-build-image
|
||||
@@ -0,0 +1 @@
|
||||
DisableFormat: true
|
||||
@@ -0,0 +1,9 @@
|
||||
CompileFlags:
|
||||
CompilationDatabase: build/build_x86_debug
|
||||
Add:
|
||||
- -Wall
|
||||
- -Wextra
|
||||
|
||||
Diagnostics:
|
||||
ClangTidy:
|
||||
Remove: ['*']
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"include": [
|
||||
"modulus.py",
|
||||
"package/conanfile.py",
|
||||
"build/build_tools"
|
||||
],
|
||||
"extraPaths": [
|
||||
"build/build_common/modulus",
|
||||
"."
|
||||
],
|
||||
"typeCheckingMode": "off",
|
||||
"reportMissingImports": false,
|
||||
"reportMissingModuleSource": false
|
||||
}
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("lsp")
|
||||
@@ -0,0 +1,20 @@
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
def repo_root():
|
||||
current = pathlib.Path(__file__).resolve()
|
||||
for candidate in (current.parent, *current.parents):
|
||||
if (candidate / "modulus.json").is_file():
|
||||
return candidate
|
||||
raise SystemExit("could not find modulus.json from Modulus tool wrapper")
|
||||
|
||||
def run(command):
|
||||
root = repo_root()
|
||||
runtime_root = root / "build" / "build_common" / "modulus"
|
||||
source_root = root / "modulus" / "cli.py"
|
||||
if source_root.is_file():
|
||||
sys.path.insert(0, str(root))
|
||||
elif runtime_root.exists():
|
||||
sys.path.insert(0, str(runtime_root))
|
||||
import modulus.cli
|
||||
raise SystemExit(modulus.cli.main(command))
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("package")
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("run")
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import modulus_tool
|
||||
|
||||
if __name__ == "__main__":
|
||||
modulus_tool.run("test")
|
||||
Reference in New Issue
Block a user