1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="anjuta-project-files" xml:lang="eu">
4
<info xmlns:facet="http://projectmallard.org/facet/1.0/">
5
<facet:tag key="all-pages" value="whatever"/> <!--Include page in index-->
6
<link type="guide" xref="index#anjuta-project-management" group="second"/>
7
<link type="seealso" xref="project-manager"/>
8
<link type="seealso" xref="project-manager-target"/>
9
<revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
11
Add or remove files from a project.
13
<credit type="author">
14
<name>Sébastien Granjoux</name>
15
<email>seb.sfo@free.fr</email>
17
<credit type="editor">
18
<name>Philip Chimento</name>
19
<email>philip.chimento@gmail.com</email>
23
<title>Add or remove files</title>
26
If the project backend supports it, you can add or remove files in your
27
project without editing the project file.
31
<title>Add files</title>
36
Select the target where you want to add the new source file in
37
the <gui>project view</gui>, click on the right mouse button to
38
make the <gui>project context menu</gui> appear and select
39
<gui>Add Source File</gui>.
42
Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
43
<gui>Add Source File</gui></guiseq>
48
The target allows you to group files, and has a type which defines
49
how the files are used inside. A program target contains source
50
files, which will be compiled to create the target.
51
On the other hand, a data target only groups data files which will
52
be installed in the same place.
58
You can select another target in the top <gui>target tree view</gui>.
61
Click on the <gui>Select file to add</gui> button to get a file
62
chooser dialog where you can select several files.
67
When you have chosen the target and the files, click on the <gui>Add</gui>
68
button to add those files to your project.
75
Some project formats require the file to be under the project
76
directory. Added source files outside the project directory are
77
automatically copied inside to fulfill this requirement.
83
<title>Remove a file</title>
88
Select the file you want to remove in the
89
<gui>project view</gui>, click on the right mouse button to
90
make the <gui>project context menu</gui> appear and select
96
Confirm the removal. The file will only be removed from the project,