Questions tagged [scons]

SCons is a cross platform, open source build tool and an alternative to the classic "Make". It works based on a declarative description of a build, using the Python programming language.

SCONS

SCons is a cross-platform, open source build tool and an alternative to the classic "Make". It works basing on a declarative description of a build, using the Python programming language. This gives SCons a great deal of flexibility and power, for example: its capabilities can be easily extended with custom builders and emitters.

1293 questions
0
votes
1 answer

Cannot find glm.hpp when compiling with SCons

I'm trying to compile a project, but SCons can't find glm/glm.hpp... This is my SConstruct: VariantDir('build', '.') env=Environment(CPPPATH=['.'], CPPDEFINES=[], LIBS=[], CXXFLAGS="-std=c++0x") env.Program(target='exec_test',…
Qualphey
  • 1,244
  • 1
  • 19
  • 44
0
votes
1 answer

Building .proto and move .h

I am trying to generate the C files from my .proto. I was able to do it but they are generated in the same folder. After this i need to move the .h file into my include directory. At this moment i am using the ProtoC Builder but there is no option…
jpereira
  • 251
  • 2
  • 11
0
votes
0 answers

Handling single .ads files when building Ada with SCons

How do I adapt the scons-gnat and scons-ada builder to work with ads-files that don't have a corresponding .adb file? I ask because gnatbind asks for ali-files corresponding to .ads files when no corresponding .adb is present. I need this because in…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
2 answers

which version of g++ does Scons pick | unrecognized command line option "-std=c++11"

I am experiencing a problem when using Scons 2.3.0 in OpenSUSE: When I added "-std=c++11" option, I saw the error cc1plus: error: unrecognized command line option "-std=c++11" I realized that it is because my g++ version was too old (4.1). So I…
user2800938
  • 23
  • 1
  • 3
0
votes
2 answers

Expressing an SConscript's Own Dependencies

I have an SCons project set up as follows: Project/ SConstruct # "SConscript('stuff/SConscript', variant_dir = 'build') stuff/ SConscript # "import configuration" configuration/ __init__.py …
Andres Jaan Tack
  • 22,566
  • 11
  • 59
  • 78
0
votes
1 answer

How to produce lighter mongodb c++ driver

I'm compiling mongoclient with MSVC 2012 and boost 1.54 and the generated lib size is about 117 mb ! I am doing something wrong ? I'm using this command: scons --extrapath=c:\dev\boost_1_54_0 --release --32 mongoclient
user2838024
0
votes
1 answer

scons surrounds option with double quotes

I use scons (V1.1.0) for a project that contains a build step that involves the flex tool. The definition for the flex command in the scons default rules is: env["LEX"] = env.Detect("flex") or "lex" env["LEXFLAGS"] =…
Andreas Maier
  • 2,724
  • 1
  • 26
  • 30
0
votes
0 answers

unable not displaying warnings using scons with VC10 in windows XP

Am using Scons with VC10. I found one problem while compiling my source code in windowsXP environment. Scons is not able to displaying warnings while compiling. But the warnings are displayed in windows7 environment with the same code. Is there any…
Srinivas Reddy
  • 311
  • 5
  • 13
0
votes
1 answer

Calling CheckLib from SConscript file

I'm attempting to check for the existence of a library from inside my SConscript file, as follows: # Not sure if this bit is relevant: Import('env') env = env.Clone() # This is what I'm trying to do: conf = env.Configure() if…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
0
votes
1 answer

SCONS Timestamp mechanism

I was looking at Scons source code but cant seem to pinpoint where it is calculating for timestamp (didnt have trouble finding MD5 calculation). And the manual page just refers as timestamp and does not go in depth of what it actual is. Maybe it…
ealeon
  • 12,074
  • 24
  • 92
  • 173
0
votes
1 answer

SCons: mark target as built

I have a build script which I can’t control that builds everything (shell command that generates lot’s of files), but most of the time it’s sufficient to build just a few files, instead of running the whole script. My SConstruct file looks like…
Dan
  • 1
  • 1
0
votes
2 answers

Scons Jenkins plugin does not read SConstruct

I am trying to build my C++ project using scons on jenkins which is running on an ubuntu box (running only a master). I have installed scons from command-line using apt-get and have installed the Jenkins Scons plugin: In the master configuration I…
u123
  • 15,603
  • 58
  • 186
  • 303
0
votes
1 answer

Debugging EXE files built with Scons in Eclipse CDT

I am using Scons based custom command to build C++ files. It creates separate directory of the build that contains .EXE file. I want to know: how to debug that .exe file in Eclipse CDT?
0
votes
1 answer

makefile define equivalent in Scons

In a gcc makefile, you can use the -D flag to specify a define in the compiled program. For example, instead of putting #define SOMETHING, you can specify -DSOMETHING in the makefile. What is the equivalent of this in SCons?
MetallicPriest
  • 29,191
  • 52
  • 200
  • 356
0
votes
2 answers

How to uninstall scons?

I'm downloaded scons 2.3.0 with official site and install it command: python setup.py install --standard-lib And i have question how to uninstall scons? MacOS X 10.8.4
user2417329
  • 294
  • 1
  • 4
  • 11