waxeye-org / waxeye

Waxeye is a parser generator based on parsing expression grammars (PEGs). It supports C, Java, JavaScript, Python, Racket, and Ruby.
https://waxeye-org.github.io/waxeye/index.html
Other
235 stars 38 forks source link

Support compiling to all architectures necessary for iOS support. #17

Closed JoshuaGross closed 9 years ago

JoshuaGross commented 9 years ago

Hey Orlando, love the project. Let me know if you're interested in this change and want me to clean it up / restructure it / reformat it in any way.

orlandohill commented 9 years ago

Hey Joshua, Thanks for taking the time to do this. It looks great! Would it be possible to rearrange things so that the 'lib' target stays the same, and a target of another name is used to cross-compile for iOS?

orlandohill commented 9 years ago

One other thought. Could the list of source files be refactored into a variable?

JoshuaGross commented 9 years ago

Done - now make behaviour is unchanged, make ios will build the iOS lib. I also am now using the LIB_FILES variable.

Would it be helpful to change documentation somewhere to indicate that the make ios option is available? Not sure where the best place to document that is.

orlandohill commented 9 years ago

Looks great!

Are you able to edit the source for the manual, docs/book/book lines 624-648, to include mention of building/installing for iOS?

Is it possible to make the target names consistent with the original file? Lowercase, optionally with a dash, seems to be the GNU Make convention. http://www.gnu.org/software/make/manual/html_node/Standard-Targets.html

Is the 'ios' target needed? It looks like invoking lib-ios would have the same effect. Not sure whether it makes sense to have the shorter alias.

JoshuaGross commented 9 years ago

Thanks for your thorough comments! Let me know if I've missed anything and if the documentation looks good.

orlandohill commented 9 years ago

Looks perfect! Thanks for taking the time to contribute!