瀏覽代碼

Script updates for zlib on the linux aarch64 platform (#132)

* Script updates for zlib on the linux aarch64 platform

Co-authored-by: lumberyard-employee-dm <[email protected]>
Signed-off-by: Steve Pham <[email protected]>
Steve Pham 2 年之前
父節點
當前提交
9f76688cb9

+ 2 - 1
package-system/zlib/build_config.json

@@ -58,7 +58,8 @@
                 "custom_install_cmd": [
                 "custom_install_cmd": [
                     "./install_zlib_linux.sh"
                     "./install_zlib_linux.sh"
                 ]
                 ]
-            }
+            },
+	    "Linux-aarch64": "@Linux"
         }
         }
     }
     }
 }
 }

+ 17 - 0
package-system/zlib/build_zlib_linux.sh

@@ -1,3 +1,5 @@
+#!/bin/bash
+
 #
 #
 # Copyright (c) Contributors to the Open 3D Engine Project.
 # Copyright (c) Contributors to the Open 3D Engine Project.
 # For complete copyright and license terms please see the LICENSE at the root of this distribution.
 # For complete copyright and license terms please see the LICENSE at the root of this distribution.
@@ -6,6 +8,21 @@
 #
 #
 #
 #
 
 
+
+# Building zlib on ubuntu requires the following packages
+REQUIRED_DEV_PACKAGES="cmake ninja-build gcc"
+ALL_PACKAGES=$(apt list | grep installed  2>/dev/null)
+for req_package in $REQUIRED_DEV_PACKAGES
+do
+    PACKAGE_COUNT=$(echo $ALL_PACKAGES | grep $req_package | wc -l)
+    if [[ $PACKAGE_COUNT -eq 0 ]]; then
+        echo "Missing required package '${req_package}'. Install this package and try again."
+        exit 1
+    fi
+done
+
+
+
 cmake -S temp/src -B temp/build \
 cmake -S temp/src -B temp/build \
      -G Ninja \
      -G Ninja \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_BUILD_TYPE=Release \

+ 12 - 0
package_build_list_host_linux-aarch64.json

@@ -0,0 +1,12 @@
+{
+    "comment" : "This is the list that applies to linux arm64 hosts",
+    "comment2" : "build_from_source is package name --> build script to call with params",
+    "comment3" : "build_from_folder is package name --> folder containing built image of package",
+    "comment4" : "Note:  Build from source occurs before build_from_folder",
+    "build_from_source": {
+        "zlib-1.2.11-rev5-linux-aarch64": "Scripts/extras/pull_and_build_from_git.py ../../package-system/zlib --platform-name Linux-aarch64 --clean"
+    },
+    "build_from_folder": {
+        "zlib-1.2.11-rev5-linux-aarch64": "package-system/zlib/temp/zlib-linux-aarch64"
+    }
+}