improve build scripts
This commit is contained in:
@@ -29,7 +29,8 @@ public class AndroidPostProcess : IPostGenerateGradleAndroidProject
|
||||
|
||||
// 4. Prepare the command
|
||||
string commandName = "my_plugin_build";
|
||||
string lineToAdd = $"\nadd_subdirectory(\"{relativePathToMyCpp}\" \"{commandName}\")\n";
|
||||
string unityRoot = EditorApplication.applicationContentsPath;
|
||||
string lineToAdd = $"\nset(UNITY_ROOT \"{unityRoot}\")\nadd_subdirectory(\"{relativePathToMyCpp}\" \"{commandName}\")\n";
|
||||
|
||||
// 5. Prevent multiple additions
|
||||
string currentContent = File.ReadAllText(targetCmakeFile);
|
||||
|
||||
Reference in New Issue
Block a user