scons

What is the file .sconsign.dblite for?

白昼怎懂夜的黑 提交于 2019-12-04 22:27:21
What would happen if I delete it? Should I put it under version control? The .sconsign.dblite file is a temporary database used by SCons to keep file signatures to speed up future builds. If you delete it, SCons will recreate it (and your next build might take slightly longer because of that). It should not be put under version control. 来源: https://stackoverflow.com/questions/12867783/what-is-the-file-sconsign-dblite-for

Scons Hierarchical Builds with Repository directory

浪尽此生 提交于 2019-12-04 21:49:38
I have an SCons project set up as follows: proj/ SConstruct src/ c/ h/ app1/SConscript app2/SConscript ... All source/header files for each application are located in src/c and src/h. At first step I created a SConstruct in app1 which use the Repository function. ... src=Split("main.c first.c second.c") env = Environment(CC='g++', CCFLAGS=['-O0', '-ggdb'], CPPPATH=['.']) env.Program('appone', src) Repository("../src/c", "../src/h") All works fine. scons found all necessary source/header files from repository to build the appone application. But if I try to build appone hierarchical it will not

Do we need sconscript file in every source directory

末鹿安然 提交于 2019-12-04 13:01:46
I am using scons to compile my project. In my project source files are in different directories. Do we need sconscript file in every directory to compile those project source files? I tried to compile all directories with the single sconscript file. But all object files are adding to my source directory only. I am using this function: env.Library('libs',files_list) If files_list contains the only file names then Obj files are generating @ variant directory. If files_list contains the file path names then Obj files are generating @ source directory. Can you tell me how to do this? I prepared an

How to tell scons to use the C++11 standard

半城伤御伤魂 提交于 2019-12-04 04:19:26
I don't manage to find how to tell scons to accept c++11 standard: the SConstruct file: env=Environment(CPPPATH='/usr/include/boost/', CPPDEFINES=[], LIBS=[], SCONS_CXX_STANDARD="c++11" ) env.Program('Hello', Glob('src/*.cpp')) the cpp file: #include <iostream> class A{}; int main() { std::cout << "hello world!" << std::endl; auto test = new A; // testing auto C++11 keyword if( test == nullptr ){std::cout << "hey hey" << std::endl;} // testing nullptr keyword else{std::cout << " the pointer is not null" << std::endl;} return 0; }; error message when calling scons: scons: Reading SConscript

scons : src and include dirs

怎甘沉沦 提交于 2019-12-03 15:31:41
can someone give a scons config file which allows the following structure toplevel/ /src - .cc files /include .h files at top level I want the o and final exe. Here is one example of Sconscript file env=Environment(CPPPATH='/usr/include/glib-2.0/:/usr/lib/glib-2.0/include:inc', CPPDEFINES=[], LIBS=['glib-2.0']) env.Program('runme', Glob('src/*.c')) (The environment line is not really necessary for the example, but I have it to include the non standard glib header path and left it there so you can get the idea how to add extra includes and defines) The source files are in src directory and

Real Hierarchical Builds with SCons?

旧巷老猫 提交于 2019-12-03 11:38:38
So I've read the questions on here about hierarchical builds like: Creating a Hierarchical Build with SCons I want to do real hierarchical construction of two standalone repos that both use scons that I set up as sub-repos using mercurial. Below is the file layout that illustrates what I want to do. Desired Layout: project_root/ (new project that builds bar app using the libfoo built from source) libfoo_subrepo/ (standalone project repo from bitbucket) src/ SConscript libfoo.c libfoo.h test/ SConscript test_foo.c SConstruct barapp_subrepo/ (standalone project repo from bitbucket that uses

Is it possible to automatically generate Xcode projects?

耗尽温柔 提交于 2019-12-03 08:42:31
Simple question. Are there any tools for generating Xcode projects from the command line? We use SCons to build our cross-platform application, but that doesn't support intrinsic Xcode project generation. We'd like to avoid creating the project manually, since this would involve maintaining multiple file lists. I think that your question should be "Is there a way to generate an XCode project from a SCons one?". I suppose, by your asking and by reading the others, that the answer is 'no'. SCons people should know it better. I think they will be happy if you contribute a SCons Xcode project

Scons Hierarchical Builds with Repository directory

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an SCons project set up as follows: proj/ SConstruct src/ c/ h/ app1/SConscript app2/SConscript ... All source/header files for each application are located in src/c and src/h. At first step I created a SConstruct in app1 which use the Repository function. ... src=Split("main.c first.c second.c") env = Environment(CC='g++', CCFLAGS=['-O0', '-ggdb'], CPPPATH=['.']) env.Program('appone', src) Repository("../src/c", "../src/h") All works fine. scons found all necessary source/header files from repository to build the appone application.

ant+cpptasks vs. scons vs. make

你离开我真会死。 提交于 2019-12-03 05:46:58
问题 I'm looking into scons and I just want to make sure I know what the alternatives are, before I invest a chunk of brain cells into something completely different. I've been using GNU make in the past but have never been particularly happy with it. Particularly: why isn't Ant used more often with C / C++ projects? (given that there's ant cpptasks) I read a few posts that say that Ant is more oriented around Java (obviously), but what's the drawback to doing so? And why is scons so much better

How to build SCons projects with Eclipse CDT?

十年热恋 提交于 2019-12-03 03:47:27
问题 We have a fairly large C/C++ project using scons for the building. I'd like to go at an attempt to build this through Eclipse-CDT. Anyone have any experience with this and can tell me the steps to set up scons as a builder. (NOT using the SConsBuilder plugin, it will not work with the Eclipse-CDT from Fedora-11). 回答1: I've tried Waf in Eclipse CDT before now, SCons would be really similar. The solution was to create an empty Makefile project, then simply change "make" to "scons" in the