From 5ee0b283249736d7ebd0ba1e13c88893bd9d7351 Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Thu, 5 Jun 2025 11:27:12 +0800 Subject: [PATCH] add o3de --- Cloud/image-list.yml | 1 + Cloud/o3de/2409.2/24.03-lts-sp1/Dockerfile | 23 ++++++++++++++++++++++ Cloud/o3de/2409.2/24.03-lts-sp1/GCC.patch | 18 +++++++++++++++++ Cloud/o3de/meta.yml | 2 ++ 4 files changed, 44 insertions(+) create mode 100644 Cloud/o3de/2409.2/24.03-lts-sp1/Dockerfile create mode 100644 Cloud/o3de/2409.2/24.03-lts-sp1/GCC.patch create mode 100644 Cloud/o3de/meta.yml diff --git a/Cloud/image-list.yml b/Cloud/image-list.yml index 3d5151dc..fbb50537 100644 --- a/Cloud/image-list.yml +++ b/Cloud/image-list.yml @@ -29,3 +29,4 @@ images: coredns: coredns strongswan: strongswan qemu: qemu + o3de: o3de diff --git a/Cloud/o3de/2409.2/24.03-lts-sp1/Dockerfile b/Cloud/o3de/2409.2/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..2fa35286 --- /dev/null +++ b/Cloud/o3de/2409.2/24.03-lts-sp1/Dockerfile @@ -0,0 +1,23 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM $BASE + +ARG VERSION=2409.2 +ARG TARGETARCH + +RUN yum install -y git cmake gcc g++ autoconf automake ninja-build \ + libunwind-devel zstd-devel mesa-libGL-devel fontconfig-devel \ + libxkbcommon-devel libX11-devel libxkbcommon-x11-devel \ + xorg-x11-server-devel libatomic && \ + yum clean all + +RUN git clone -b ${VERSION} https://github.com/o3de/o3de.git + +COPY ./GCC.patch /o3de/ +WORKDIR /o3de +RUN git apply GCC.patch && \ + python/get_python.sh && \ + mkdir -p /opt/o3de-packages && \ + cmake -B build/linux -S . -G "Ninja Multi-Config" -DLY_3RDPARTY_PATH=/opt/o3de-packages && \ + if [ "$TARGETARCH" = "amd64" ]; then \ + cmake --build build/linux --target Editor --config release -j2; \ + fi; \ No newline at end of file diff --git a/Cloud/o3de/2409.2/24.03-lts-sp1/GCC.patch b/Cloud/o3de/2409.2/24.03-lts-sp1/GCC.patch new file mode 100644 index 00000000..d676c959 --- /dev/null +++ b/Cloud/o3de/2409.2/24.03-lts-sp1/GCC.patch @@ -0,0 +1,18 @@ +diff --git a/cmake/Platform/Common/GCC/Configurations_gcc.cmake b/cmake/Platform/Common/GCC/Configurations_gcc.cmake +index 4718895295..cd507d4e2a 100644 +--- a/cmake/Platform/Common/GCC/Configurations_gcc.cmake ++++ b/cmake/Platform/Common/GCC/Configurations_gcc.cmake +@@ -73,6 +73,13 @@ ly_append_configurations_options( + -Wno-switch + -Wno-uninitialized + -Wno-unused-result ++ -Wno-dangling-pointer ++ -Wno-nonnull ++ -Wno-unused-variable ++ -Wno-unused-but-set-variable ++ -Wno-use-after-free ++ -Wno-pragmas ++ -Wno-return-local-addr + + COMPILATION_DEBUG + -O0 # No optimization \ No newline at end of file diff --git a/Cloud/o3de/meta.yml b/Cloud/o3de/meta.yml new file mode 100644 index 00000000..505aefdc --- /dev/null +++ b/Cloud/o3de/meta.yml @@ -0,0 +1,2 @@ +2409.2-oe2403sp1: + path: 2409.2/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee