Skip to content

Commit

Permalink
Set scripting define symbols for each build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaser324 committed Apr 10, 2017
1 parent 59260df commit 451fdbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Editor/Build/BuildProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 451fdbe

Please sign in to comment.