Skip to content

Conversation

@vimanyu
Copy link
Contributor

@vimanyu vimanyu commented Apr 5, 2021

Some changes to build Unity SDK on Linux and Mac.

  • Cross platform (and different versions of Unity) supported search for Unity DLLs and tools
  • User specified parameter is now UNITY_ROOT_DIR instead of UNITY_ENGINE_DLL_DIR, makes it easier to locate other items from the root of Unity installation and makes the code easier to follow.
  • C++ ABI specification for Unity CMake Project in sync with C++ project.
  • Disabled multi thread build as "make" was crashing abruptly in some runs.

vimanyu added 9 commits April 2, 2021 02:25
Noticing errors of make crashing without any errors. Repeatedly running
the build command makes it continue from the previous crash point only
to crash at a later point. Some sort of thread race condition is
happening as sometimes the process goes through just fine.
xbuild could be found in Unity directories or at the system
level. If system level is not found, then we want to use
xbuild that ships with Unity.
Using UNITY_ROOT_DIR makes the code more readable for searching files.
Previously, we were using glob "*" for unity version and this was
dangerous as the unity version wasn't deterministic. For example,
UnityEngine.dll could come from Unity 2018 but iOS dll could come from
another version. Using UNITY_ROOT_DIR makes it consistent and more
cross platform.
realpath does not exist on mac. Using Python instead.
@vimanyu vimanyu requested review from a-maurice and cynthiajoan April 5, 2021 17:58
@vimanyu vimanyu self-assigned this Apr 5, 2021
@vimanyu vimanyu merged commit 4ab1ee1 into main Apr 8, 2021
@vimanyu vimanyu deleted the feature/build-on-linux branch April 8, 2021 00:01
@firebase firebase locked and limited conversation to collaborators Jun 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants