option to build without compile?

Monkey Forums/Monkey Programming/option to build without compile?

Skn3(Posted 2013) [#1]
Could we get an option to compile the project without building. e.g. it would simply create the output files.

I am currently debugging some stuff on iOS, and its painfully a painfully slow process.

I am working like this:
- build in mollusk
- wait for that to finish
- press run in xcode

The whole thing takes a long time so if we could just have monkey spit out the project files?


computercoder(Posted 2013) [#2]
Thats actually not a bad idea. That could help a lot.


benmc(Posted 2013) [#3]
In TED you can just click the first little rocket to build-only and then refresh/clean in XCode. (Sorry, I might not be on the right page)


Skn3(Posted 2013) [#4]
benmc,

for iOS at least, it will actually do a much more involved build operation. It doesn't just spit out the project files.

Further to the suggestion, it would be good perhaps if we could build from trans with an option to only update changed files and data?

So instead of having to copy the entire apps worth of data files it would only copy ones that have changed. Or maybe it already does this?


AdamRedwoods(Posted 2013) [#5]
So instead of having to copy the entire apps worth of data files it would only copy ones that have changed. Or maybe it already does this?

+1
it does not do this and this is a great suggestion for all targets.


programmer(Posted 2013) [#6]
@Skn3, use "-update" instead of "-build" or "-run":
transcc -target=iOS_Game -config=release -update mainfile.monkey



Skn3(Posted 2013) [#7]
ohhh cool i'll give this a shot, thanks :D


Shinkiro1(Posted 2013) [#8]
Also Glfw is awfully slow.
I don't know which exact step is the slowsest because compiling & linking are both pretty slow operations in c++ anyway. But I am sure that the whole copying stuff also takes a while.

Has anybody recommendations on how to speed that up?


Skn3(Posted 2013) [#9]
If you compile in glfw in debug it does seem quicker the second time.

programmer, cheers for teh suggestion. I just whipped up an automator script to save all files in mollusk, call for the project to -update, activate the correct xcode window and then click teh run menu.

Much quicker :D


Skn3(Posted 2013) [#10]
for anyone that would like to create something similar

install a cmd line notification app. Run this in terminal
sudo gem install terminal-notifier


now run Automator and create a new application

now add the following three actions, make sure to change the bits required for your project.

Automator step 1 "run apple script"


Automator step 2 "run shell script"


Automator step 3 "run apple script"



computercoder(Posted 2013) [#11]
Sweet! Thanks Skn3! As usual, good work :)


marksibly(Posted 2013) [#12]
Check out the Ted 'build' menu - there's 'Update target project' and 'check source'.


Skn3(Posted 2013) [#13]
Does the update do anything about data.file versioning? To lighten the load of file copying for larger projects?