Platform Specific data
Monkey Forums/Monkey Programming/Platform Specific data
| ||
Hi I'm trying to make it so i can have different resources for different platforms and only include the specific resources within the specific target. I found this post on it: http://www.monkey-x.com/Community/posts.php?topic=4784 Unfortunately it doesn't work because monkey turns the #IMAGE_FILES="/All/*.png|/${TARGET}/*.png|*.jpg" into #define CFG_IMAGE_FILES /All/*.png|/glfw/*.png|*.jpg which the /* gets interpreted as a comment beginning. Is there some way i can escape it? Or some other work around? Thanks, Andrew |
| ||
Ok, I kind of solved it... I hacked transcc to not put those define lines in the cpp file. I couldn't find anywhere that referenced it, and I don't seem to have any negative repercussions, at least in the glfw target. This is my changed config method in the glfw targetMethod Config:String() Local config:=New StringStack For Local kv:=Eachin GetConfigVars() If kv.Key <> "IMAGE_FILES" And kv.Key <> "TEXT_FILES" And kv.Key <> "SOUND_FILES" And kv.Key <> "MUSIC_FILES" And kv.Key <> "BINARY_FILES" Then config.Push "#define CFG_"+kv.Key+" "+kv.Value Endif Next Return config.Join( "~n" ) End |