Skip to content

Commit

Permalink
AWS GameKit C++ version v2.0.2
Browse files Browse the repository at this point in the history
- Adding Unreal Engine 5 support
  • Loading branch information
aws-gamekit-pipeline committed Sep 29, 2022
1 parent 35dd8ef commit ab288d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions scripts/Android/refresh_unreal.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from common import copy_libs, REPOSITORY_ROOT

def refresh(type, plugin_path):
destination = pathlib.Path(plugin_path) / "Libraries" / "Android" / type
def add_parser_arguments(parser):
parser.add_argument("--android_architecture", choices=["armv7", "arm64"], default="armv7", help="Architecture of Android libraries. Defaults to armv7")

def refresh(type, plugin_path, android_architecture):
destination = pathlib.Path(plugin_path) / "Libraries" / "Android" / android_architecture / type
bin = pathlib.Path(REPOSITORY_ROOT, "install", type, "bin")
libs = pathlib.Path(REPOSITORY_ROOT, "install", type, "lib")

Expand All @@ -22,6 +25,7 @@ def refresh(type, plugin_path):
parser = argparse.ArgumentParser(description="Copies library files over to the target plugin.")
parser.add_argument("type", choices=["Debug", "Release"], help="Compile type for libs being copied over.")
parser.add_argument("--unreal_plugin_path", required=True, help="Path to AWS GameKit Plugin for Unreal e.g. [unreal_project_path]/Plugins/AwsGameKit")
parser.add_argument("--android_architecture", choices=["armv7", "arm64"], default="armv7", help="Architecture of Android libraries. Defaults to armv7")
args = parser.parse_args()

refresh(args.type, args.unreal_plugin_path)
refresh(args.type, args.unreal_plugin_path, args.android_architecture)
4 changes: 3 additions & 1 deletion scripts/refresh_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def copy_unreal_headers(plugin_path, generate_error_codes=True):

unreal_parser = engine_subparser.add_parser("Unreal")
unreal_parser.add_argument("--unreal_plugin_path", required=True, help="Path to AWS GameKit Plugin for Unreal e.g. [unreal_project_path]/Plugins/AwsGameKit")
if parser.parse_known_args()[0].platform == "Android" and parser.parse_known_args()[0].engine == "Unreal":
android_unreal.add_parser_arguments(unreal_parser)

unity_parser = engine_subparser.add_parser("Unity")
unity_parser.add_argument("--unity_plugin_path", required=True, help="Path to AWS GameKit Plugin for Unity Unity e.g. [unity_repo]/Packages/com.amazonaws.gamekit")
Expand All @@ -95,7 +97,7 @@ def copy_unreal_headers(plugin_path, generate_error_codes=True):
if "Windows" == args.platform:
windows_unreal.refresh(args.type, args.unreal_plugin_path)
if "Android" == args.platform:
android_unreal.refresh(args.type, args.unreal_plugin_path)
android_unreal.refresh(args.type, args.unreal_plugin_path, args.android_architecture)
if "Mac" == args.platform:
mac_unreal.refresh(args.type, args.unreal_plugin_path, args.certificate_name)
if "iOS" == args.platform:
Expand Down

0 comments on commit ab288d1

Please sign in to comment.