add targets without re-compiling trans

Monkey Targets Forums/User Targets/add targets without re-compiling trans

AdamRedwoods(Posted 2013) [#1]
FYI--
I just noticed this now, but TransCC will automatically add other targets if the builder is the same as one already existing.

For example, create a new stdcpp target.monkey file in a separate folder under targets:

#TARGET_NAME="my stdcpp target"
#TARGET_SYSTEM="stdcpp"
#TARGET_BUILDER="stdcpp"



"my stdcpp target" will show up without any need for re-compiling TransCC.exe.
this way you can add your own main.h and main.cpp mods quite easily.


computercoder(Posted 2013) [#2]
I noticed this too when I was dinking about with the Community Edition of the OUYA target. I Got tired of recompiling the TransCC each time I updated the monkey release.

The best part is it just knows which target specifically you want and builds it correctly to it :)

It is pretty nifty to have. Mark did this with the Android (OUYA) Game target too :)


SLotman(Posted 2013) [#3]
Yup, I think it started on v7x. My targets are all independent of trans now, so any new monkey release, I just copy the folders and they are working ^_^

Would be nice to get access to TARGET_NAME inside the code, with #IFs - would help to differentiate a custom target from a default one. (Ex: I have a FirefoxOS target - which is basically the HTML5 target with some minor changes)