build-process

What Can I Do To Reduce My Executable's Size (Delphi)?

◇◆丶佛笑我妖孽 提交于 2019-11-27 04:30:34
I release a single executable (.EXE) for a desktop program using Delphi 2009. I have no external DLLs or resources that I need for the program to run. I use two components: LMD Innovative's ELPack and Sergey Tkachenko's TRichView that are compiled into my executable. When I build my production version, using the "Release" build configuration, the executable file produced is 13,533 KB. Prior to using Delphi 2009, I was using Delphi 4. The executable it produced was only 2,671 KB while incorporating the same two components and basically having the same code as my current version. I do understand

Visual Studio 2010: How to enforce build order of projects in a solution?

人盡茶涼 提交于 2019-11-27 03:54:54
I had no problem with this in Visual Studio 2008 but it seems that VS 2010 is having an issue, and I'm betting it's probably me. I have a solution with an ASP.NET Web Site Project and a few C# projects (BLL, DAL, Tests in NUnit). I have configured the build process for the test project to automatically run NUnit to run the tests. I would like to ensure that the BLL and DAL projects build before the test project so that the tests will run against the latest compiled version (yes, I know I could do this all in one project, but I'm choosing not to -- please bear with me :) ) So, I set the

Target-specific Variables as Prerequisites in a Makefile

大兔子大兔子 提交于 2019-11-27 03:53:51
问题 I'm trying to write a GNU make Makefile which has a load of similar targets, where the build commands vary slightly between them. I'm trying to use target-specific variables to represent these variations. Some of these variable values refer to files I want to use as prerequisites. For example: target_1:special_filename=target1_prereq target_2:special_filename=target2_prereq target_1 target_2: common_filename $(special_filename) do_something common_filename --a-weird-option=$(special_filename)

Script to change Action Sequence records in an MSI

我的未来我决定 提交于 2019-11-27 02:25:30
问题 To solve a problem listed here I've got to change the InstallExecuteSequence .RemoveExistingProducts record in an MSI. I want to do this as part of the build process rather than mucking around with Orca 回答1: Modifying the MSI_SetProperty.js script gives // MSI_SetActionSequence.js <msi-file> <table> <action> <sequence> // Performs a post-build fixup of an msi to set the specified table/action/sequence // Constant values from Windows Installer SDK var msiOpenDatabaseModeTransact = 1; var

Build and Version Numbering for Java Projects (ant, cvs, hudson)

吃可爱长大的小学妹 提交于 2019-11-27 02:21:00
What are current best-practices for systematic build numbering and version number management in Java projects? Specifically: How to manage build numbers systematically in a distributed development environment How to maintain version numbers in source / available to the runtime application How to properly integrate with source repository How to more automatically manage version numbers vs. repository tags How to integrate with continuous build infrastructure There are quite a number of tools available, and ant (the build system we're using) has a task that will maintain a build number, but it's

Recursive CMake search for header and source files

笑着哭i 提交于 2019-11-27 02:14:16
问题 I am new to CMake and would like to ask if somebody can help in the following problem. I have C++ source and header files in their respective folders and now, I want to make a CMake text file that recursively searches for them. Currently, I am doing it in this way: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(CarDetectorDAISY) file(GLOB_RECURSE SRCS *.cpp) file(GLOB_RECURSE HDRS *.h) ADD_EXECUTABLE(stereo_framework ${SRCS} ${HDRS}) TARGET_LINK_LIBRARIES(stereo_framework) This creates my

Preprocessing source code as a part of a maven build

三世轮回 提交于 2019-11-27 01:58:50
问题 I have a lot of Java source code that requires custom pre-processing. I'd like rid of it but that's not feasible right now so I'm stuck with it. Given that I have an unfortunate problem that shouldn't have existed in the first place, how do I solve it using maven? (For the full story, I'm replacing a python-based build system with a maven one, so one improvement at a time please. Fixing the non-standard source code is harder, and will come later.) Is it possible using any existing Maven

Make ant quiet without the -q flag?

非 Y 不嫁゛ 提交于 2019-11-27 01:52:39
I have an ant buildfile that is often run from vastly different environments. By default, I'm looking for the same behavior as using: ant -q However, since some team member's configurations vary, specifying the -q option in each person's environment is not easily accomplished in a uniform way (some people run ant from eclipse, some from the command line, some from debugging/profiling tools, etc. Each with a different method for specifying ant arguments like -q ) So I'm seeking a way for the ant file to call itself quietly... Something like the following would be ideal: <target name="default">

ant depends vs. antcall

对着背影说爱祢 提交于 2019-11-27 01:44:10
问题 When defining sequential build steps I use the depends attribute of the target element. I have recently seen an ant file, where the build sequence was defined by antcall elements inside the targets. To illustrate : <target name="a" depends="b"> ...</target> vs <target name="a"> <antcall target="b"/> ...</target> Is there a real difference between the two approaches? Is one of them preferable? 回答1: The main difference between both approaches is that targets in depends are always executed,

How to delete files in Visual Studio Pre-build event command line

﹥>﹥吖頭↗ 提交于 2019-11-27 01:43:53
问题 I am trying to delete files in my $(TargetDir) within visual studio before building a project. How do you have to format command line to get around this problem I am getting below? 回答1: Try cd $(TargetDir) del *.tif As jvenema pointed out, your $(TargetDir) is expanding into a path containing spaces in the folder names which is breaking the delete command. 回答2: I ended up using rd /s /q "$(TargetDir)" to clean out the directory. As far as I know it is working. 回答3: Try adding quotes around