Move the copy of six.py, lldb.py and macosx/heap
I'm not sure if I like the usage of POST_BUILD stuff (it provides less control than separate targets) but overall this seems a good change. Replacing ~250 lines of reinventing the wheel with ~20 lines.
I believe the goal is to delete the custom python script completely and rely on cmake to do this instead. Now that we no longer have two build systems to worry about, I think this is a very good idea and it simplifies the code a lot. I believe that at least @JDevlieghere was also in favour of this direction.
Agreed. After I move all the things to cmake, it will be a good idea to refactor POST_BUILD to separate targets. And make sure all file dependencies are correct. For now I want to keep the same semantic.
Besides that, I want to make sure cross compiling is correct. In the old python script, we only detect the build platform, and make decision based on that. That's obviously wrong for cross compiling...