Browse Source

Repair AUI build for Linux OS (#8523)

* test omath for osx

* Add glm matrix transform include to IRenderer.h and update patches

* Fix macOS platform condition in on_install function for omath package

* Update IRenderer.h to include matrix_transform

Add include for matrix transformation in IRenderer.h
Saikari 1 month ago
parent
commit
6c1200ca35
2 changed files with 13 additions and 0 deletions
  1. 12 0
      packages/a/aui/patches/v7.1.2/fix-glm.diff
  2. 1 0
      packages/a/aui/xmake.lua

+ 12 - 0
packages/a/aui/patches/v7.1.2/fix-glm.diff

@@ -0,0 +1,12 @@
+diff --git a/aui.views/src/AUI/Render/IRenderer.h b/aui.views/src/AUI/Render/IRenderer.h
+index f7268651..36ee26cc 100644
+--- a/aui.views/src/AUI/Render/IRenderer.h
++++ b/aui.views/src/AUI/Render/IRenderer.h
+@@ -12,6 +12,7 @@
+ #pragma once
+ 
+ #include <glm/glm.hpp>
++#include <glm/gtc/matrix_transform.hpp>
+ #include <AUI/Reflect/AEnumerate.h>
+ #include <AUI/Common/ASide.h>
+ #include <AUI/Common/AColor.h>

+ 1 - 0
packages/a/aui/xmake.lua

@@ -24,6 +24,7 @@ package("aui")
     add_patches("v7.1.2", "patches/v7.1.2/fix-msvc-pretty-function.diff", "268f66f42594f0188fe50d33f5783e66f66024087097ebfdfef60c9768e151fd")
     add_patches("v7.1.2", "patches/v7.1.2/fix-msvc-pretty-function.diff", "268f66f42594f0188fe50d33f5783e66f66024087097ebfdfef60c9768e151fd")
     add_patches("v7.1.2", "patches/v7.1.2/fix-osx-enforce-cpp-template.diff", "599e1e9ec9beec581258db67af8c9fe9dd2351eb169a538890c65422b5052659")
     add_patches("v7.1.2", "patches/v7.1.2/fix-osx-enforce-cpp-template.diff", "599e1e9ec9beec581258db67af8c9fe9dd2351eb169a538890c65422b5052659")
     add_patches("v7.1.2", "patches/v7.1.2/fixup-network.diff", "888c1ed0e96f21bd842de72f8f9fe933261c5f76c99be55cf8e83f424bd1f79e")
     add_patches("v7.1.2", "patches/v7.1.2/fixup-network.diff", "888c1ed0e96f21bd842de72f8f9fe933261c5f76c99be55cf8e83f424bd1f79e")
+    add_patches("v7.1.2", "patches/v7.1.2/fix-glm.diff", "9b0f2e3000ea2cea92d3e3641a9db74274bc746e13ddacf6ffeddebb229e1c6d")
 
 
     add_deps("cmake")
     add_deps("cmake")
     if is_subhost("windows") then
     if is_subhost("windows") then