Files
UnrealEngineUWP/Engine/Source/Editor/DeviceProfileServices/Public/CheckAndroidDeviceProfileCommandlet.h
allan bentham 32ba39e954 Add a commandlet to simulate android device profile selection from properties stored in a device.json file.
AndroidDeviceProfileSelectorModule is configured with values from a device.json file and used during device profile selection process.
the results are saved out to multiple files.
#rb chris.babcock
[FYI] jack.porter
#preflight 61f16731be0f0e0a62328476

#ROBOMERGE-AUTHOR: allan.bentham
#ROBOMERGE-SOURCE: CL 18736599 via CL 18736612 via CL 18736622 via CL 18736890 via CL 18737367
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18737698 by allan bentham in ue5-main branch]
2022-01-26 12:33:17 -05:00

41 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Commandlets/Commandlet.h"
#include "CheckAndroidDeviceProfileCommandlet.generated.h"
/*
* CheckAndroidDeviceProfile
* Commandlet that runs the rules in [/Script/AndroidDeviceProfileSelector.AndroidDeviceProfileMatchingRules]
* against the supplied parameters and outputs the device profile that will be matched.
* Usage:
* ProjectName -run=DeviceProfileServices.CheckAndroidDeviceProfile DeviceModel
* ProjectName -run=DeviceProfileServices.CheckAndroidDeviceProfile DeviceMake DeviceModel
* ProjectName -run=DeviceProfileServices.CheckAndroidDeviceProfile [-DeviceMake=...] [-DeviceModel=...] [-GPUFamily=...] [-GLVersion=...]
[-VulkanAvailable=True|False] [-VulkanVersion=...] [-AndroidVersion=...] [-DeviceBuildNumber=...] [-UsingHoudini=True|False] [-Hardware=...] [-Chipset=...]
* Running against
* ProjectName -run=DeviceProfileServices.CheckAndroidDeviceProfile
-DeviceSpecsFolder=<directory containing device.json files>
-DeviceSpecsFile=<path to a single device.json file>
-OutDir=<output directory>
[-OverrideDP=<optional DP name to override device profile selection>]
*/
UCLASS()
class UCheckAndroidDeviceProfileCommandlet
: public UCommandlet
{
GENERATED_BODY()
public:
//~ Begin UCommandlet Interface
virtual int32 Main(const FString& Params) override;
//~ End UCommandlet Interface
private:
};