snapcraft.yaml.in 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. name: o3de
  2. version: '${CPACK_PACKAGE_VERSION}'
  3. summary: O3DE Engine
  4. description: |
  5. Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
  6. license: Apache-2.0
  7. confinement: classic
  8. base: core22
  9. parts:
  10. o3de:
  11. plugin: dump
  12. source: ./${CPACK_PACKAGE_NAME}
  13. source-type: local
  14. build-attributes:
  15. - enable-patchelf
  16. stage-packages:
  17. - clang
  18. - libatomic1
  19. - libcurl4
  20. - libdbus-1-3
  21. - libfontconfig1
  22. - libgl1-mesa-glx
  23. - libglu1-mesa
  24. - libopengl0
  25. - libpcre2-16-0
  26. - libpng16-16
  27. - libsm6
  28. - libssl3
  29. - libtcl8.6
  30. - libtk8.6
  31. - libunwind-dev
  32. - libxcb-icccm4
  33. - libxcb-image0
  34. - libxcb-keysyms1
  35. - libxcb-randr0
  36. - libxcb-render-util0
  37. - libxcb-shape0
  38. - libxcb-xfixes0
  39. - libxcb-xinerama0
  40. - libxcb-xinput0
  41. - libxcb-xkb1
  42. - libxkbcommon0
  43. - libxkbcommon-x11-0
  44. - libzstd1
  45. - llvm-runtime
  46. - pkg-config
  47. - zlib1g
  48. stage:
  49. # The libraries in .../dri need no-patchelf, so they must come from the mesa-unpatched part
  50. - -usr/lib/x86_64-linux-gnu/dri
  51. mesa-no-patchelf:
  52. plugin: nil
  53. after: [o3de]
  54. build-attributes:
  55. - no-patchelf # Otherwise snapcraft may strip the build ID and cause the driver to crash
  56. stage-packages:
  57. - libdrm-common
  58. - libgl1-mesa-dri
  59. - mesa-vulkan-drivers
  60. stage:
  61. # Only the libraries in .../dri need to not be patched, the rest come from the mesa part
  62. - usr/lib/x86_64-linux-gnu/dri
  63. apps:
  64. o3de:
  65. command: ${CPACK_PACKAGE_VERSION}/bin/Linux/profile/Default/o3de
  66. environment:
  67. O3DE_SNAP: 1
  68. SNAP_BUILD: ${CPACK_PACKAGE_VERSION}
  69. PKG_CONFIG: $SNAP/usr/bin/pkg-config --define-variable=libdir=$SNAP/usr/lib/x86_64-linux-gnu
  70. DISABLE_WAYLAND: 1
  71. editor:
  72. command: ${CPACK_PACKAGE_VERSION}/bin/Linux/profile/Default/Editor
  73. environment:
  74. O3DE_SNAP: 1
  75. SNAP_BUILD: ${CPACK_PACKAGE_VERSION}
  76. DISABLE_WAYLAND: 1
  77. assetprocessor:
  78. command: ${CPACK_PACKAGE_VERSION}/bin/Linux/profile/Default/AssetProcessor
  79. environment:
  80. O3DE_SNAP: 1
  81. SNAP_BUILD: ${CPACK_PACKAGE_VERSION}
  82. DISABLE_WAYLAND: 1