GithubHelp home page GithubHelp logo

Comments (8)

danoli3 avatar danoli3 commented on September 10, 2024

For example I have an addon that has about 30,000 headers. I tried to add the the directory to the ADDON_INCLUDES =, however I noticed it was adding them all to the project (with projectGenerator -v)

So usually this would just be a single folder directory in the HEADER_SEARCH_PATHS and keep it all out of the project.

from projectgenerator.

ofZach avatar ofZach commented on September 10, 2024

I don't think we have header search paths as part of addon_config.mk.

this is what we do parse:

https://github.com/openframeworks/projectGenerator/blob/master/ofxProjectGenerator/src/addons/ofAddon.cpp#L187-L290

we do most things primarily via file system, addon_config.mk augments that by allowing you to specifiy exactly the order / exclude things, etc.

from projectgenerator.

danoli3 avatar danoli3 commented on September 10, 2024

projectGenerator still going 2 hours later.... lol!

screen shot 2015-10-19 at 1 51 36 pm

I might add that command if that is okay

from projectgenerator.

ofZach avatar ofZach commented on September 10, 2024

ha that's pretty insane.

I think it's possible to do this, but adding a new feature across all project types can take some time to get right. happy to walk you through it and explain what to look at.

from projectgenerator.

arturoc avatar arturoc commented on September 10, 2024

HEADER_SEARCH_PATHS is ADDON_INCLUDES in addons_config.mk

the way it works is by parsing the filesystem first. then you can overwrite that values with:

ADDON_INCLUDES = some_path
ADDON_INCLUDES += som_otherPath
...

or add some path to the parsed from the filesystem:

ADDON_INCLUDES += some_otherPath

so the = overwrites even the filesystem parsed paths and the += adds new values

from projectgenerator.

arturoc avatar arturoc commented on September 10, 2024

also if you are refering to the header files rather than the search paths that's in ADDONS_SOURCES, it works the same it parses the filesystem and then you can overwrite. so if you only want to add libs/boost/include/boost.hpp:

ADDON_SOURCES = libs/boost/include/boost.hpp

if you had some source in src you'll need to readd it manually with ADDON_SOURCES

from projectgenerator.

ofZach avatar ofZach commented on September 10, 2024

(sorry for the misinformation !)

from projectgenerator.

arturoc avatar arturoc commented on September 10, 2024

:)

from projectgenerator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.