weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

target_xyz isn't set for mac? #235

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
use the attached zip.
"make android" and the #ifs say it is android. (good)
"make html5" and the #ifs say it is html5. (good)
"make mac" and the #ifs say it is NOT mac. (bad)

Original issue reported on code.google.com by rao...@gmail.com on 16 May 2012 at 10:00

Attachments:

GoogleCodeExporter commented 8 years ago
i put a trace into the installer tool and it looks like:

if i target "mac" it actually internally has target "cpp".
if i target "windows" (presumably being on a mac forces this) internally is 
"neko".

anyway i wanted to know i'm on a mac to work around
https://code.google.com/p/nekonme/issues/detail?id=232

and i could dream up other use cases where it would be good to know the target 
"os" not just the "cpp" or "neko" aspect. can there be an extended_target set 
maybe? 

Original comment by rao...@gmail.com on 25 May 2012 at 10:55

GoogleCodeExporter commented 8 years ago
in fact, issue 232 happens for both "mac cpp" and "mac neko".

anyway, right now i'm manually passing in my own flags all the way along to 
account for it all.

Original comment by rao...@gmail.com on 25 May 2012 at 11:06

GoogleCodeExporter commented 8 years ago
Added on SVN. Good idea.

You should be able to use "windows", "mac" and "linux" in preprocessor 
directives for your Haxe code :)

Original comment by joshuagr...@gmail.com on 4 Jun 2012 at 9:15