NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Best way to extend C++ Project Make system

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
davejohnston



Joined: 23 May 2011
Posts: 14

PostPosted: Wed Nov 16, 2011 3:35 pm    Post subject: Best way to extend C++ Project Make system Reply with quote

Hi,

I would like to extend the Make system used by C++ projects in Netbeans to suit my needs.

In addition to the compilation, I want to do two other things

1) copy certain header files, to a directory defined by me (this is for use in a larger build system)
2) run an application on some xml files to generate C++ code

Looking in the Makefile there is extension points i.e. pre-build, post-build etc. My issue is that I want to apply this behaviour to alot of projects.

I was wondering if anyone had done something similar and what approach they used?

Looking at the generated Makefile, I see that there is a OBJECTLIST, and targets have been generated for each file in that list.

I was wondering if it is possible to do something similar, for example if I had defined a HEADERS_TO_EXPORT list in the project Makefile, could I write some code that generates targets in the Debug/Release Mk files for each of those files.
I guess this would involve making changes to the Netbeans codebase itself.

I'd like to see examples if anyone has done something along those lines
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo