This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 155113 - [80cat] Support for Scons
Summary: [80cat] Support for Scons
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P2 blocker with 15 votes (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on: 247758
Blocks:
  Show dependency tree
 
Reported: 2008-12-10 10:57 UTC by Peter Nabbefeld
Modified: 2015-09-03 20:18 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2008-12-10 10:57:10 UTC
Please, add support for the SCons build system (http://www.scons.org/).
Comment 1 Peter Nabbefeld 2008-12-12 07:51:34 UTC
I've noticed there's much work planned/done for maven integration into 7.0. I'd suggest to create some generic build
system api (which would be applicable to Ant, Maven, Make, SCons and others). The build system (BS) could be provided
with property and build files (while usually working with default values, like Ant projects use build.xml,
nbproject/build-impl.xml, nbproject/project.properties etc.), with source and destination paths (while usually found in
project.properties). The BS itself would provide actions for clean, build etc. like this:
[0] = MyBuildAction.instance
[1] = null   # separator
[2] = MyOtherAction.instance
These actions would be placed into the popup menu after the editor actions.

What do You think about it? Any chance for 7.0?
Comment 2 another_bad_hair_day 2009-06-28 14:58:03 UTC
Note that the same request has been made for bjam in #161569 (assigned to cnd/projects)

It would be possible to get a lot more from SCons, since it's possible
to extract the include path/defines from the SCons{truct,cript} files

I took a quick look into the cnd.makeproject module, where it seems
all the C++ build systems are handled - there is no "extension point"
that would allow us to plug our code there.
Comment 3 th3flyboy 2009-07-31 05:01:21 UTC
I support this as it would allow for me to develop a certain open source project in netbeans that uses SCONS. (right now i have to use Eclipse or
Visual Studio, and I don't like ether of them as much as netbeans...)
Comment 4 siassei 2009-08-14 19:16:32 UTC
SCons is a powerful build system and many open source projects use that. I need SCons for all projects and use SCons for
own projects.

However, SCons promote the popularity and distribtution. I hope, the next Netbeans version includes a SCons support.
Comment 5 wenzel 2011-02-17 04:05:06 UTC
Really hope that netbeans will add support for scons since I we are using scons toe develop our software
Comment 6 daniele.niero 2011-03-03 00:46:31 UTC
NetBeans without Scons is unfortunately useless for many users. At least a less restrictive C/C++ environment that don't force us to use Makefile (or whatsoever) would be really appreciated.
Comment 7 Vladimir Voskresensky 2012-11-29 20:54:21 UTC
C/C++ has Project From Existing sources template. 
There you can specify anything_you_type_in_shell as your "clean" and "build" commands => either wrap scons in script or type scons commands directly in "build".
Comment 8 Vladimir Voskresensky 2013-12-18 16:22:22 UTC
Dear Users.
As I've wrote in my last comment. Scons is natively supported by our project system. In clean&build you just should specify corresponding commands you use in command line to build and clean your sources.
Comment 9 Q-BiC 2014-06-18 12:14:09 UTC
Vladimir, that doesn't work over here (7.4p3).

The C++ project with existing sources wizard does not allow you to continue without specifying a makefile or configure script...
Comment 10 RusselWinder 2014-09-04 09:50:11 UTC
Is it certain that there is no way of using SCons as the build specification? I too find the dialogue requiring a Make file (manual, configure or CMake) cannot be got past and so Netbeans is mandating use of Makefiles for C++/D/Rust builds.
Comment 11 cabeaulac 2014-09-04 15:50:48 UTC
I use the SCons build system with Netbeans 8 for all my C and C++ projects now. Just specify /usr/local/bin/scons as your make target. After your project is created change the build and clean targets from "make /usr/local/bin/scons" to /usr/local/bin/scons and /usr/local/bin/scons -c
Comment 12 Vladimir Voskresensky 2014-09-05 11:52:50 UTC
(In reply to RusselWinder from comment #10)
> Is it certain that there is no way of using SCons as the build
> specification? I too find the dialogue requiring a Make file (manual,
> configure or CMake) cannot be got past and so Netbeans is mandating use of
> Makefiles for C++/D/Rust builds.
Russel, let me confirm, that current workaround is:
- specify "any" existing file as your Makefile, then Next is enabled
- on the Next step specify your clean and build commands (as you do it with scons in command line)
that's it. Project is ready
Comment 13 Vladimir Voskresensky 2014-09-24 14:46:29 UTC
I think we should change Wizard to prevent the current confusion.
Comment 14 gtomasini 2015-09-03 09:47:52 UTC
Today, all our projects are using scons, so without this feature netbeans is 99% useless :-(
Comment 15 Alexander Simon 2015-09-03 09:55:10 UTC
fixed as a part of bug #247758