From 451fdbeed03a9e0d274df4d92aa38a3be043d7f7 Mon Sep 17 00:00:00 2001 From: Chase Pettit Date: Mon, 10 Apr 2017 16:15:35 -0400 Subject: [PATCH] Set scripting define symbols for each build. --- Editor/Build/BuildProject.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/Build/BuildProject.cs b/Editor/Build/BuildProject.cs index 5a20e3d..265a587 100644 --- a/Editor/Build/BuildProject.cs +++ b/Editor/Build/BuildProject.cs @@ -257,6 +257,10 @@ private static bool BuildPlayer(string notification, BuildReleaseType releaseTyp string buildPath = GenerateBuildPath(BuildSettings.basicSettings.buildPath, releaseType, platform, architecture, distribution, buildTime); string exeName = string.Format(platform.binaryNameFormat, SanitizeFileName(releaseType.productName)); + // Set defines. + string defines = GenerateDefaultDefines(releaseType, platform, architecture, distribution); + PlayerSettings.SetScriptingDefineSymbolsForGroup(platform.targetGroup, defines); + // Pre-build actions. PerformPreBuild(releaseType, platform, architecture, distribution, buildTime, ref options, configKey, buildPath);