build-process

How do I specify target dependant prerequisits with GNUMake?

这一生的挚爱 提交于 2019-12-12 00:42:23
问题 Say I have a list of source files like this: SOURCE=aaa.src bbb.src ccc.src I want to create a rule to build each corresponding target in its own folder, the name of which depends on the soruce file. Sourcefile ----> Corresponding output file / target aaa.src -------------------> aaa/aaa.out bbb.src -------------------> bbb/bbb.out ccc.src -------------------> ccc/ccc.out How do I write a rule for this using GNUMake? My best effort was the following Makefile: .PHONY: all clean CC=somecompiler

Build script to copy files from various source folder to various destination folder

浪子不回头ぞ 提交于 2019-12-11 22:13:53
问题 The basic requirement is to copy the various files and folders from different solution/project directories to the single build_output folder(/subfolders). Currently, I am doing this operation using the Robocopy commands. The only issue is my script is too long just using multiple Robocopy commands. <Copy SourceFiles="$(Docs)\Manual.pdf" DestinationFolder="$(BuildPath)\Help"/> <RoboCopy Source="$(Web1)" Destination="$(BuildPath)" Files="*.aspx" Options="/E"/> <RoboCopy Source="$(Web1)\Images"

Sencha Touch 2.3 - Sass @mixin Breaks sencha app build

南楼画角 提交于 2019-12-11 21:41:50
问题 Just upgraded to Sencha Touch 2.3 - everything is great until I added my Sass mixins, and tried "sencha app build"... update / note: "sencha app watch" also causes the same error. (Sencha CMD 4.0.1.45) My mixin: @mixin MQ($canvas) { @if $canvas == small { @media only screen and (max-width: 20em) { @content; } //320px } @else if $canvas == 'XS' { @media only screen and (max-width: 30em) { @content; } //480px } @else if $canvas == S { @media only screen and (max-width: 37.5em) { @content; } /

Linking with a different .so file in linux

泄露秘密 提交于 2019-12-11 19:02:53
问题 I'm trying to compile a piece of software which has the standard build process e.g. configure make make install The software requires a library e.g. libreq.so which is installed in /usr/local/lib. However, my problem is I'd like to build the software and link it with a different version of the same library (i have the source for the library as well) that I've installed in /home/user/mylibs. My question is, how do I compile and link the software against the library in /home/user/mylibs rather

Developers with VS 2005 and VS 2008 working on the same project(s)

为君一笑 提交于 2019-12-11 15:05:12
问题 We have a solution that has a website and a class library. We also have developers working in VS 2005 and VS 2008. The issue is when a user adds a file/removes a file from the class library it doesn't get added to the project file for the user(s) using the other version of VS. Also I had to setup our automated build to use one project file. Is there a way to work around this or do we need to upgrade everyone to 2008? 回答1: Working with two different version of Visual Studio in a team of more

Cmake recompiles everything each time I add a new directory in include_directory()

删除回忆录丶 提交于 2019-12-11 14:48:54
问题 (This question is quite similar to this one I asked but is not related to the GLOB subtleties. So separating the two problems would be clearer I think) Each time I add or remove a folder in include_directory() (even empty) in my CMakeLists.txt, then typing cmake . make triggers the whole project to be recompiled. Why and what can I do about it? My actual CMakeLists.txt (note there is no GLOB): cmake_minimum_required(VERSION 2.8) cmake_policy(VERSION 2.8.12.2) # Project get_filename_component

IS there any way to Create a CI with Sourcesafe

怎甘沉沦 提交于 2019-12-11 14:10:41
问题 I want to create a CI for my company and we are using Sourcesafe as our repository. I want to know is there any way to create a CI Build process with Sourcesafe? I read some CI process with TFS and GIT (svn) but can't find an article for Sourcesafe? What should I do? 回答1: CruiseControl has a VSS plugin also. But seriously... VSS... in 2010... 回答2: Jenkins has a VSS plugin. (Hudson too.) 回答3: I believe you can use TeamCity with SourceSafe. 回答4: Our Parabuild provides Continuous Integration for

Qt .pro file - how to add conditioning on OSX version?

牧云@^-^@ 提交于 2019-12-11 12:27:40
问题 I have a Qt codebase shared between two development machines. One is OSX 10.8.5 and one is OSX 10.9.5. The project won't compile on 10.9.5 unless I include: QMAKE_MAC_SDK = macosx10.9 and thus I have two .pro files, one with/without that line. How can I have the .pro file conditionally include that line depending on the version of Mac OSX detected? 回答1: I recently found some info on that and it appears to be doable (applied once) with: OS_VERSION = $$system(uname -r) # common to Unix contains

404 error when building Git project in TFS2013

别说谁变了你拦得住时间么 提交于 2019-12-11 12:16:22
问题 I'm trying to get a git project to build through TFS 2013 Update 4 - Software Version 12.0.31101.0 (Tfs2013.Update4). We have no issues with building projects under TFSVC with this server, but Git projects are unable to build. I've setup a build definition (using the default GitTemplate.12.xaml template) with the following configurations: This is the log that I get from the build (total time to failure is 1 second): Update build number Run on agent (reserved build agent Chutzpah Controller)

Visual Studio Pre build events and batch set

北战南征 提交于 2019-12-11 12:02:17
问题 I'm trying to create call a batch file which sets a bunch of environment variables prior to building. The batch file looks something like this (it's automatically generated before-hand to detect ATI Stream SDK or NVidia CUDA toolkit): set OCL_LIBS_X86="%ATISTREAMSDKROOT%libs\x86" set OCL_LIBS_X64="%ATISTREAMSDKROOT%libs\x86_64" set OCL_INCLUDE="%ATISTREAMSDKROOT%include" However, the rest of the build doesn't seem to have access to these variables, so when I try to reference $(OCL_INCLUDE) in