Is there any way to specify multiple Make Targets to be built by the build process, and if so, then it is possible to control the order or define dependence of the Make Targets in a managed C++ project?
If you want to do this in eclipse and at the command line, I'd edit the makefile to add a targets depending on the items. Make will figure out the order if needed.
If it's ok to have this work just in the Eclipse project then add a custom make target
In the "Make Target" view, click "Create a Make Target", uncheck "Same as Target Name".
List your multiple dependencies all in the "make target" edit box.
Related
I would like to add two compiler flags, one for ARC (-fno-objc-arc) and one for warning (-w). Anybody know how to add two compiler flags in the Xcode build phase for a particular file?
Add the compiler flags under your Project -> Target -> Build Phases, just separate the flags by a space.
In Xcode, clic on your project file to see the pane with your target(s) and then :
Select the "Build Phases" tab
Unfold "Compile sources"
Search for your specific file
Set your compiler flags on this particular file by double-clik on this column.
Hope this helps
Select your project in the project navigator in the left-hand panel, select your target, then select Build Phases. Expand Compile Sources and double-click the file you want to set the compiler flag for. Repeat for each target you want the changes to apply to.
Select blue project file
Select "Build phases".
Disclose "Compile Sources".
Double click on file that you want to add flags.
Then set flags separated by space.
I want Xcode to ignore some targets for now, both when building and when looking for issues as I edit. How do I tell it to do that?
You can edit the active scheme, select its Build action from the left-hand list, then uncheck the checkboxes corresponding to each action you don't want that target to be built for.
I am quite newbie in using eclipse cdt. I have a makefile project, and have more than two targets in my Makefile. Say the Makefile is as follows,
all:
...
t1:
...
t2:
...
it's easy to make CDT build target 'all'. However, how can I build targets other than the first one, like t1 and t2? Thanks.
In eclipse, go to:
Window > Show View > Make Target
In the view that opens up, right click your project, click on "New".
Give your target a name, say "T1". Uncheck the "same as the target name" and put the "Make Target" value to t1.
Same for t2.
The next time you want to build your targets, look at the Make Target view that you opened, and double click the target you want.
In Eclipse (Galileo) is it possible to filter the list of TODO and FIXME tasks by a specific file, or several files? Instead of having the whole list for the entire project.
You can select through the upper right arrow of the Task View the option "Configure Content"
From there, you should select a narrower filter like:
"On selected element only"
Steve Chambers mentions in the comments:
To get this to work in Kepler (Eclipse 4.3), I had to tick the checkbox on the "TODOs" configuration in the top left (rather than "Show all items", which is ticked by default).
I am not running Galileo, but slightly older version of Eclipse. However, you can at least filter the task list by task description, if not the file name. Open the menu of the Tasks view and from there choose Configure Filters... Configure Contents.... From there, you can set up a filter that filters data based on the content of task description. Perhaps you can use this to achieve what you want.
(Plus I'm sure that in case new functionality has been added to the filter configuration in Galileo, it will be obvious from the Configure Contents window.)
Hope this helps.
A better approach for your problem would likely be to chose "On working set" from that dialog, "Select...". Then create a working set, it will ask you what files are part of the working set and only display tasks from those files.
I use this to exclude the "vendors" directory in Symfony2, and the "Zend" directory in Zend Framework, which are full of TODOs and errors that pollute these views.
I couldn't see a way to do exactly what you wanted.
In a single file you can open the file and locate the TODO items by the icons in the margin.
You can also open the Tasks view (Window->Show View->Tasks) and sort the tasks by clicking on the column headings. Sorting by "Resource" or "Path" might give you some part of the functionality that you are looking for.
You might also look at the Mylin task management plugin. You can create Mylin tasks from TODO items, and you might be able to to more with Mylin's Task List view than you can with TODO's Tasks view.
Is there a way to temporarily restrict which resources are included in the build of an iPhone app (via Xcode)?
I am testing a use case in my app and want to minimize the installation time on my device. I would like to do this by reducing the resources to only those needed by this use case... i.e. there are over 70MB of .wav and .png files that I do not need to copy over.
I am looking for something more elegant than moving the out of the project into a separate directory on the file system.
Thanks in advance!
Try this: duplicate your target in XCode (on the left-hand side of the XCode project window, open "Targets", click on your application target, then choose "duplicate" from the Edit menu).
In the duplicated target, go into the "Copy Bundle Resources" build phase and remove the files you don't want. Switch your "Active Target" (using the menu at the top of the project window) and build.