TARGET_SUBPLATFORM macros
Posted: Wed Jun 12, 2013 11:30 am
What's the advantage in TARGET_SUBPLATFORM_IPHONE and ANDROID ?
Why not use __ANDROID__ and TARGET_OS_IPHONE ?
Why not use __ANDROID__ and TARGET_OS_IPHONE ?
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
That's fair enough - especially since it gets integrated into other projects and thus requiring it to include the engine's sysdef-type headers would be a pain.OK... I was integrating your libexternal tweaks to get it working on iOS into mergJSON and in that instance it was a bit annoying so in my copy I've replaced them with the usual macros
Good question - I don't think that has ever been defined - it certainly needs to be something other than GPL... Similar story for lcidlc and the code it incorporates into the generated code. I shall ponder and get back to you.BTW what's the license on libexternal?
I'll ponder it - I guess libexternal is essentially frozen (the next change will be when it turns into a shim to talk to the new Extensions API, and that will be the last) so maybe it makes sense. My main resistance is the fact that submodules are a PITA, and I'm reticent to have any more linked to from within the livecode repository.Ah... also, I hesitate to suggest it but libexternal would be a good candidate for a submodule so it can be incorporated into other projects more easily...
Code: Select all
#ifndef TARGET_SUBPLATFORM_IPHONE
#if TARGET_OS_IPHONE
#define TARGET_SUBPLATFORM_IPHONE
#endif
#endif
I think in this instance just using the 'native' macro is fine - apart from anything else, it's only used once after all and that file isn't going to be changing for a while (and then only once more).I guess we could have something like this at the top in this case?
The reason for the three submodules that were there is to stop the main livecode git repository getting bloated with things that can be derived from elsewhere. It's on the list at some point to clean this up - but, on the whole things are working fine for now, the submodules aren't updated all that often and there are bigger fish to fry in the short term.Regarding the submodules I understand... I actually think you could drop the other three submodules. The main reason for submodules I see is incorporating into multiple projects... libexternal is the only thing...
Sure, no problemLet me ponder the libexternal thing - you've actually given me an idea which I need to sit on for a wee while.