diff --git a/Cloud/image-list.yml b/Cloud/image-list.yml index 3d5151dcbdcd901a421214e1380634a55161aa93..fbb5053781ba4d3093e1d066cef4fc1474b82e38 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 0000000000000000000000000000000000000000..2fa35286ed34346ab02b656ca6336621c1da025b --- /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 0000000000000000000000000000000000000000..d676c9595e18f6591dece3eb132e91d79e88efe5 --- /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 0000000000000000000000000000000000000000..505aefdce72f9d03d116a33f646c4c6779e49c4d --- /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