adding C/C++ include directory for modules

About Monkey 2 Forums Monkey 2 Development adding C/C++ include directory for modules

This topic contains 1 reply, has 1 voice, and was last updated by  codifies 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4985

    codifies
    Participant

    If you want to wrap a project of a decent size it might not be practical to hack the source especially if you want to update the source tree periodically

    with the addition of (an optional) include directory when modules are compiled headers with lots of #include <aProject/header.h> you can either copy the include structure from the project or even just sym link it in

    This means if you #import in mx2 code the includes will get picked up properly

    in mx2cc’s buildproduct class inside the build method if you add

    then this adds an include path to g++’s options – if the include path is missing then it will not effect the build

    I tried to figure out how to handle “include”:”some-project-src/include” in module.json but couldn’t see an easy way to transmit the setting to buildproduct

    #4986

    codifies
    Participant

    oops this works fine till you do a clean build of a project using the module – the module will compile fine, but not the source using the module…

    I think something in module.json might be the way to go….

    any ideas….

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.