~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to manuals/anjuta-manual/uk/project-manager-module.page

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-20 22:38:35 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120220223835-ny223imz62qkk9ns
Tags: 2:3.3.90-0ubuntu1
* New upstream release.
* debian/rules: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="utf-8"?>
2
 
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="project-manager-module" xml:lang="uk">
3
 
 
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" groups="third"/>
7
 
    <link type="next" xref="project-manager-package"/>
8
 
    <link type="seealso" xref="project-manager-library"/>
9
 
    <revision pkgversion="3.0" version="0.1" date="2011-03-27" status="incomplete"/>
10
 
    <desc>
11
 
      Add or remove libraries from a project.
12
 
    </desc>
13
 
    <credit type="author">
14
 
      <name>Sébastien Granjoux</name>
15
 
      <email>seb.sfo@free.fr</email>
16
 
    </credit>
17
 
    <credit type="editor">
18
 
      <name>Philip Chimento</name>
19
 
      <email>philip.chimento@gmail.com</email>
20
 
    </credit>
21
 
  </info>
22
 
 
23
 
  <title>Add or remove new libraries</title>
24
 
 
25
 
  <p>
26
 
    On Linux, most libraries are packaged to be easily used.
27
 
    When you need one of these libraries, <app>Anjuta</app> provides
28
 
    an easy interface to add it. If the library you need is not one of these,
29
 
    check the <link xref="project-manager-library">Add non-packaged
30
 
    libraries</link> page.
31
 
  </p>
32
 
 
33
 
  <section>
34
 
    <title>Add packaged libraries in a new module</title>
35
 
 
36
 
    <p>
37
 
      A library cannot be added directly to your program; you first need to
38
 
      create a module for it, which is just a group of libraries.
39
 
    </p>
40
 
 
41
 
    <steps>
42
 
      <item>
43
 
        <p>
44
 
          Select the program where you want to add the new library in
45
 
          the <gui>project view</gui>, click on the right mouse button to
46
 
          make the <gui>project context menu</gui> appear, and select
47
 
          <gui>Add Library</gui>. Then click on the <gui>New Library</gui>
48
 
          button on this dialog.
49
 
        </p>
50
 
        <p> 
51
 
          Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
52
 
          <gui>New Library...</gui></guiseq>
53
 
        </p>
54
 
      </item>
55
 
      <item>
56
 
        <p>
57
 
          You will get a list of all the packaged libraries installed on your
58
 
          system. You can check one or more libraries. 
59
 
        </p>
60
 
        <note style="tip">
61
 
          <p>
62
 
            If the library you want does not appear here, perhaps it
63
 
            is because it is not installed on your system.
64
 
            Launch the application you
65
 
            use to install new programs and search for the library name.
66
 
            The package you need often has a "dev" or "devel" suffix and
67
 
            should include header files and a pkg-config file with a
68
 
            <file>.pc</file> extension.
69
 
          </p>
70
 
        </note>
71
 
        <p>
72
 
          After selecting one library, a module name will be
73
 
          automatically generated but you can change it. When you are
74
 
          done, click on the <gui>Add</gui> button to create the new module
75
 
          with the selected libraries.
76
 
        </p>
77
 
      </item>
78
 
      <item>
79
 
        <p>
80
 
          Read the <link xref="project-manager-package">next page</link> to
81
 
          find out how to add this new module to your target.
82
 
        </p>
83
 
      </item>
84
 
    </steps>
85
 
  
86
 
  </section>
87
 
 
88
 
  <section>
89
 
    <title>Add packaged libraries in an existing module</title>
90
 
 
91
 
    <steps>
92
 
      <item>
93
 
        <p>
94
 
          Select the module where you want to add the new library in
95
 
          the <gui>project view</gui>, click on the right mouse button to
96
 
          make the <gui>project context menu</gui> appear and select
97
 
          <gui>New Library</gui>.
98
 
        </p>
99
 
        <p> 
100
 
          Or from the <gui>main menu</gui>, select <guiseq><gui>Project</gui>
101
 
          <gui>New Library...</gui></guiseq>
102
 
        </p>
103
 
      </item>
104
 
      <item>
105
 
        <p>
106
 
          In the list of all packaged libraries, check the additional
107
 
          libraries wanted. Check that expected module name is selected
108
 
          in the bottom text box.
109
 
          Then click on the <gui>Add</gui> button to update the module.
110
 
        </p>
111
 
      </item>
112
 
      <item>
113
 
        <p>
114
 
          Read the <link xref="project-manager-package">next page</link> to
115
 
          find out how to add the module to your target.
116
 
        </p>
117
 
      </item>
118
 
    </steps>
119
 
  
120
 
  </section>
121
 
 
122
 
  <section>
123
 
    <title>Remove a packaged library from a module</title>
124
 
 
125
 
    <steps>
126
 
      <item>
127
 
        <p>
128
 
          Select the library you want to remove in the
129
 
          <gui>project view</gui> , click on the right mouse button to
130
 
          make the <gui>project context menu</gui> appear and select
131
 
          <gui>Remove</gui>.
132
 
        </p>
133
 
      </item>
134
 
      <item>
135
 
        <p>
136
 
          Confirm the removal. This library will be removed from the project
137
 
          file.
138
 
        </p>
139
 
      </item>
140
 
    </steps>
141
 
 
142
 
  </section>
143
 
 
144
 
</page>