Build Systems
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
It depends on how complex your build process is Make is incredibly powerful, and usable for pretty much any automated task, if you put your mind to it, but with that power you get a system that can drive most people insane trying to make the syntax work It's basically a set of rules that say "source file *.c turns into *.obj using the following command line" "A.obj B.obj C.obj turn into MyApp.exe using the following command line" etc So if you've got tools that take one file as input, and output another, you can chain them together. It works backwards, looking at what's changed, and only performs the necessary steps (in theory, assuming you've set up your script right) Whilst you could do the same with a .bat file, it'd be far more complex to keep up to date every time you add a new source file, since Make is happy to work with wildcards
-- Help me! I'm turning into a grapefruit! Buzzwords!
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Build: CuriseControl NAnt Although the following aren't build tools per se, we use* them in our automated build: NUnit FxCop NDoc Simian * Euphemism. People don't really care what errors FxCop throws, or what doc NDoc produces; but hey, it's part of the process so we say we use it. :-D
Cheers, Vikram.
"Life isn't fair, and the world is full of unscrupulous characters. There are things worth fighting for, killing for and dying for, but it's a really small list. Chalk it up to experience, let it go, and move on to the next positive experience in your life." - Christopher Duncan.
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
A lot of the stuff I do is currently oriented around Visual Studio projects and workspaces/solutions. Particularly for Windows CE/Windows Mobile projects, it's really hard to set up a command line environment where you can actually use
nmake
effectively. So my technique is to just get VS/eVC to do the build. All versions of Visual Studio support building from the command line. For VC 6:msdev myprj.dsp /make "ALL - RELEASE" /rebuild
eVC:
evc myprj.vcp /make "ALL - RELEASE" /CEConfig="Pocket PC 2003" /rebuild
VS 2003, 2005:
devenv solution.sln /rebuild Release
I put the appropriate sequence of commands into a batch file. Tools like nmake, NAnt, MSBuild etc really only offer additional dependency management. For a testing or final release build I normally rebuild everything anyway, which nullifies the benefit of dependency management (that is, only rebuilding things that have changed). They're helpful on a developer's workstation for tools that don't have their own dependency management, but VS does (admittedly, sometimes it doesn't get it right). To assist with eVC builds I wrote a program which looks at the workspace to determine the right version of eVC to use (3.0 or 4.0), then looks in the registry to work out where eVC was installed to, so I don't need eVC in my path or installed to a fixed location.
Stability. What an interesting concept. -- Chris Maunder
-
It depends on how complex your build process is Make is incredibly powerful, and usable for pretty much any automated task, if you put your mind to it, but with that power you get a system that can drive most people insane trying to make the syntax work It's basically a set of rules that say "source file *.c turns into *.obj using the following command line" "A.obj B.obj C.obj turn into MyApp.exe using the following command line" etc So if you've got tools that take one file as input, and output another, you can chain them together. It works backwards, looking at what's changed, and only performs the necessary steps (in theory, assuming you've set up your script right) Whilst you could do the same with a .bat file, it'd be far more complex to keep up to date every time you add a new source file, since Make is happy to work with wildcards
-- Help me! I'm turning into a grapefruit! Buzzwords!
Can make run external exe's on .obj files? e.g use programme x.exe --someargs A.obj
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
-
Can make run external exe's on .obj files? e.g use programme x.exe --someargs A.obj
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Yup, that's the whole point of Make, you tell it what steps it needs to do, and it handles the rest
-- Help me! I'm turning into a grapefruit! Buzzwords!
-
Yup, that's the whole point of Make, you tell it what steps it needs to do, and it handles the rest
-- Help me! I'm turning into a grapefruit! Buzzwords!
Great. I was looking at Cuisecontrol (mentioned below) that offers different publishing tools. Does make offer any reporting tools?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
RichardS wrote:
Do any of you use builds systems
Yes, make is your friend. The better I have ever seen is the GNU Make, which has incredible functionalities (that come on the top of .bat since you can call .bat or anything inside the make).
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
-
Can make run external exe's on .obj files? e.g use programme x.exe --someargs A.obj
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
RichardS wrote:
Can make run external exe's on .obj files? e.g use programme x.exe --someargs A.obj
If you ask that way don't use make! :|
-
Great. I was looking at Cuisecontrol (mentioned below) that offers different publishing tools. Does make offer any reporting tools?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Make is basically a scripting language, so if you've got an existing reporting tool, you can run it as part of your make process
-- Help me! I'm turning into a grapefruit! Buzzwords!
-
A lot of the stuff I do is currently oriented around Visual Studio projects and workspaces/solutions. Particularly for Windows CE/Windows Mobile projects, it's really hard to set up a command line environment where you can actually use
nmake
effectively. So my technique is to just get VS/eVC to do the build. All versions of Visual Studio support building from the command line. For VC 6:msdev myprj.dsp /make "ALL - RELEASE" /rebuild
eVC:
evc myprj.vcp /make "ALL - RELEASE" /CEConfig="Pocket PC 2003" /rebuild
VS 2003, 2005:
devenv solution.sln /rebuild Release
I put the appropriate sequence of commands into a batch file. Tools like nmake, NAnt, MSBuild etc really only offer additional dependency management. For a testing or final release build I normally rebuild everything anyway, which nullifies the benefit of dependency management (that is, only rebuilding things that have changed). They're helpful on a developer's workstation for tools that don't have their own dependency management, but VS does (admittedly, sometimes it doesn't get it right). To assist with eVC builds I wrote a program which looks at the workspace to determine the right version of eVC to use (3.0 or 4.0), then looks in the registry to work out where eVC was installed to, so I don't need eVC in my path or installed to a fixed location.
Stability. What an interesting concept. -- Chris Maunder
Mike Dimmick wrote:
A lot of the stuff I do is currently oriented around Visual Studio projects and workspaces/solutions. Particularly for Windows CE/Windows Mobile projects, it's really hard to set up a command line environment where you can actually use nmake effectively. So my technique is to just get VS/eVC to do the build. All versions of Visual Studio support building from the command line. For VC 6: msdev myprj.dsp /make "ALL - RELEASE" /rebuild
I did the same some time ago in a VC++ 6.0 project. BTW, how can you use VC 8.0 from the command line? -- modified at 8:08 Monday 30th October, 2006 Got it:
Command line builds:
devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:/Edit Opens the specified files in a running instance of this
application. If there are no running instances, it will
start a new instance with a simplified window layout.
/Log Logs IDE activity to the specified file for troubleshooting.
/ResetSettings Restores the IDE's default settings, optionally resets to
the specified VSSettings file.
/SafeMode Launches the IDE in safe mode loading minimal windows.devenv.exe
is not included in VCExpress. -
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
-
Build: CuriseControl NAnt Although the following aren't build tools per se, we use* them in our automated build: NUnit FxCop NDoc Simian * Euphemism. People don't really care what errors FxCop throws, or what doc NDoc produces; but hey, it's part of the process so we say we use it. :-D
Cheers, Vikram.
"Life isn't fair, and the world is full of unscrupulous characters. There are things worth fighting for, killing for and dying for, but it's a really small list. Chalk it up to experience, let it go, and move on to the next positive experience in your life." - Christopher Duncan.
Vikram A Punathambekar wrote:
CuriseControl
You sure that wasn't Curse Control? ;P Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith -
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
I recently converted my batch build file to MS PowerShell (formerly known as Monad). It is quirky and weird and takes some trickery to get started and some time to get used to - but boy you can do all these things! * push the stdout of a program in a string, and search for tokens, e.g. to display "(N) errors" summary * search & replace in a plain text file * access & modify XML files * Use all the .NET goodies * Access COM / Automation interfaces * Error Handling is way better than in batch files (though it could still improve) * Functions! Howly cow! It has functions! With Name! And Parameters! (this bulleted list was specifically designed for Shog9oth' pleasure) Dedicated build systems might be better for a particular task (e.g. nant for .NET stuff), but I have no experience with them. -- modified at 8:15 Monday 30th October, 2006
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify! || Fold With Us! || sighist -
Vikram A Punathambekar wrote:
CuriseControl
You sure that wasn't Curse Control? ;P Marc
People are just notoriously impossible. --DavidCrow
There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer
People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh SmithMarc Clifton wrote:
Curse Control
You are not by chance talking about the COM interface for InstallShield? :rolleyes:
We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
Linkify! || Fold With Us! || sighist -
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Make, planning to indtroduce auto dependancy which was used at my last place.
-
Hi All, I am evaluating different build mechanisms as our products require an number of programmes to be run. Do any of you use builds systems like Ant, Bake, Jam, make, etc.? Are they better than a simple .bat file? Which ones would you recommend? thanks, Rich
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Try x-script generator. It can be used to generator NAnt scripts using GUI, which allows you to invoke all exiting build tools (like compiler, linker, etc.). In addition, if there is a need to have more control over the build process that is not *standard*, like code insertion, code protection, code image manipulation (e.g. code protection, ...), etc. You can write your own extension assemblies or use other existing ones that can easily be plugged into the x-script generator system (and NAnt extension ports) and to have it run at a particular step you want in the build process. The user side of the "learning" curve for it is very smooth and the script generation is half automated so that its very easy.
-
Make, planning to indtroduce auto dependancy which was used at my last place.
-
Mike Dimmick wrote:
A lot of the stuff I do is currently oriented around Visual Studio projects and workspaces/solutions. Particularly for Windows CE/Windows Mobile projects, it's really hard to set up a command line environment where you can actually use nmake effectively. So my technique is to just get VS/eVC to do the build. All versions of Visual Studio support building from the command line. For VC 6: msdev myprj.dsp /make "ALL - RELEASE" /rebuild
I did the same some time ago in a VC++ 6.0 project. BTW, how can you use VC 8.0 from the command line? -- modified at 8:08 Monday 30th October, 2006 Got it:
Command line builds:
devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:/Edit Opens the specified files in a running instance of this
application. If there are no running instances, it will
start a new instance with a simplified window layout.
/Log Logs IDE activity to the specified file for troubleshooting.
/ResetSettings Restores the IDE's default settings, optionally resets to
the specified VSSettings file.
/SafeMode Launches the IDE in safe mode loading minimal windows.devenv.exe
is not included in VCExpress.You can build VS 2005 solutions on the command line using msbuild.exe (installed with the framework, not even the SDK is required).
-
You can build VS 2005 solutions on the command line using msbuild.exe (installed with the framework, not even the SDK is required).
Not C++...
every night, i kneel at the foot of my bed and thank the Great Overseeing Politicians for protecting my freedoms by reducing their number, as if they were deer in a state park. -- Chris Losinger, Online Poker Players?