VDrift / vdrift-mac

VDrift Mac OS X build dependencies
Other
6 stars 2 forks source link

Build optimization #27

Closed antoniovazquezblanco closed 12 years ago

antoniovazquezblanco commented 12 years ago

Copying data every time the project is built is very inefficient. I suggest deleting data every build and if it is a debug build creating an alias to the data folder (takes less than 1 second) and if it is a release build copying data. This should reduce compile time a lot.

Thanks

Timo6 commented 12 years ago

Ok, I'll have a look. I can't remember why I didn't do that before.

Timo6 commented 12 years ago

Using an alias (ln -sf "$SRCROOT"/../data VDrift.app/Contents/Resources/data) breaks code signing - VDrift won't run. I'll take another look on Monday, I'm going away for the weekend. Crash log: http://pastebin.com/W05eDF54 log.txt: http://pastebin.com/61j7tGaS

antoniovazquezblanco commented 12 years ago

It happened the same to me when using ln but not when right clicking on the data folder and creating an alias.

Timo6 commented 12 years ago

Ok, but we need an automated way of doing it. Is there a command line equivalent for the right click method?

antoniovazquezblanco commented 12 years ago

I'm not sure about it. I'm sorry.

Timo6 commented 12 years ago

Right, the problem is with the sandbox. I'm looking into ways to fix the problem.

Timo6 commented 12 years ago

Right, I'm about to commit a workaround, with a few bonuses, to close this issue. I'll open a new one for a fix, as we need to be able to quick test sandboxing. Atm you can only do one of the two at a time.