build-system

How do I prevent gulp-notify from breaking gulp-watch in Windows?

╄→尐↘猪︶ㄣ 提交于 2019-12-21 06:23:27
问题 I am using the gulp-notify plugin. This is an example of how I'm implementing it in a gulpfile.js ( You can see I'm using gutil and livereload as well. I don't know if they play any factors, but let me know if they do.) gulp.task('js', function() { return gulp.src('./dev/scripts/*.coffee') .pipe(coffee({bare: true}).on('error', gutil.log)) .pipe( gulp.dest('./build/js')) .pipe(notify('Coffeescript compile successful')) .pipe(livereload(server)); }); This plugin works on OS X and Linux. On

How do I configure the SVN HTTP proxy from the command line?

旧城冷巷雨未停 提交于 2019-12-19 05:24:43
问题 I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit behind a proxy, so I need to configure SVN to use the proxy. Several of the options that come immediately to mind are unpalatable for various reasons: I could edit the ~/.subversion/servers file manually, but I would far rather keep the build process

How to force use of static library over shared?

假装没事ソ 提交于 2019-12-18 19:06:26
问题 In my SConscript I have the following line: Program("xtest", Split("main.cpp"), LIBS="mylib fltk Xft Xinerama Xext X11 m") How do I get scons to use mylib.a instead of mylib.so, while linking dynamically with the other libraries? EDIT: Looking to use as few platform specific hacks as possible. 回答1: Passing the full filepath wrapped in a File node will force static linking. For example: lib = File('/usr/lib/libfoo.a') Program('bar', 'main.c', LIBS = [lib]) Will produce the following linker

Sublime SFTP - Upload compiled css when sass file saved

限于喜欢 提交于 2019-12-18 11:17:17
问题 I'm developing html/css in Sublime. I'm writing my css with sass and using Sublime's build system to generate the css file on file save. It's also configured to upload on save using the SFTP plugin. My problem is that the generated css file doesn't get uploaded as that isn't the file I've directly saved. I've tried to see if there is a way for the SFTP plugin to upload all files that have been modified locally, but it doesn't seem to support that. Is there anything I can do to achieve this?

cmake : Set environment variables from a script

此生再无相见时 提交于 2019-12-18 10:48:18
问题 I have a script that sets all variables needed for the cross-compilation. Here is just part of it : export CONFIG_SITE=~/workspace/eldk-5.4/powerpc/site-config-powerpc-linux export CC="powerpc-linux-gcc -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots/powerpc-linux" export CXX="powerpc-linux-g++ -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots/powerpc-linux" export CPP="powerpc-linux-gcc -E -m32 -mhard-float --sysroot=~/workspace/eldk-5.4/powerpc/sysroots

How to use libraries within my CMake project that need to be installed first?

♀尐吖头ヾ 提交于 2019-12-18 03:35:12
问题 I have a problem with my CMake build system. There are CMakeLists.txt files defining runtimes or libraries or using ExternalProjects_Add() to download and build external code. Because of dependencies, those projects have to find each other. Now I want to have a CMakeLists.txt at the top level that builds all those at once. In order to find a project, is must be installed. But finding projects is already done at configuration time in CMake. repository ├─project │ ├─game (Depends on engine,

Does Visual Studio support adding MSBuild tasks to projects?

前提是你 提交于 2019-12-13 03:39:43
问题 I'm trying to add some simple MSBuild tasks to a Visual Studio project (VS 2012 Express) - specifically, to create a subdirectory then copy some files to a subdirectory of the output directory ready for packaging. I see that VS supports custom build steps, which are command-line invocations. However, since VS is based on MSBuild it should be possible to add these directly as MSBuild tasks like the Copy Task in the AfterBuild pre-defined target. What I can't find is any way to actually add

build system performance impact of gcc linking to unused libraries

坚强是说给别人听的谎言 提交于 2019-12-12 04:53:22
问题 I have a code-base similar to the following: sources: src/a/b/c.cpp and unit-tests (these are actually boost unit-test executables): test/a/b/c_test.cpp The src tree is used in a single executable target. However c.cpp only uses a sub-set of the library dependencies of that target, e.g. -lx , of -lx -ly -lz . Similarly, c_test.cpp compiles to a test executable that links to c.cpp's -lx , c.o and a few more additional libraries for testing. For setting up the build-system, in this case I have

Build2 analog of CMake's find_package

守給你的承諾、 提交于 2019-12-11 17:23:28
问题 Is there are any mechanism in Build2 like CMake's find_package? How to can i include a library that exists only on my system and not in package manager packages? 回答1: To use foo as dependency in your bar project, you need to add a line: cxx.libs += -lfoo in ~/bar/bar/buildfile 来源: https://stackoverflow.com/questions/57296089/build2-analog-of-cmakes-find-package

Sublime Text launch separate command window (C/C++)

一曲冷凌霜 提交于 2019-12-11 08:55:06
问题 I am trying to do all the programs in Programming in C by Stephen G. Kochan as an exercise and to familiarize myself with some of the finer details (I didn't go to school for computer science) of C (on a Windows 8 machine). A lot of the book is simple programs and I'd like to enter the programs with Sublime Text (as opposed to Code::Blocks , which I have been using with openFrameworks). Is there an easy way to launch a separate command window for a program after it is compiled. It's kind of