/Engine/Source/Developer/DeveloperToolSettings/Classes/Settings/ProjectPackagingSettings.h
Determines whether to build the executable when packaging. Note the equivalence between these settings and EPlayOnBuildMode.
enum EProjectPackagingBuild { Always, Never, IfProjectHasCode, IfEditorWasBuiltLocally, }