aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPascal Obry <obry@adacore.com>2011-08-01 16:06:47 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2011-08-01 18:06:47 +0200
commitaf9e051fadb5e6900ffc8668d6166dd5a1988ee2 (patch)
treecf01201096c3473abab488e889d9e5bc702bcadf /gcc
parent1d801f212f02cc2f62cfae39ce23589f645828df (diff)
downloadgcc-af9e051fadb5e6900ffc8668d6166dd5a1988ee2.zip
gcc-af9e051fadb5e6900ffc8668d6166dd5a1988ee2.tar.gz
gcc-af9e051fadb5e6900ffc8668d6166dd5a1988ee2.tar.bz2
prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
2011-08-01 Pascal Obry <obry@adacore.com> * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path. * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource. From-SVN: r177058
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gnat_ugn.texi71
-rw-r--r--gcc/ada/prj-env.adb4
3 files changed, 59 insertions, 21 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index f044856..591bd6a 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-01 Pascal Obry <obry@adacore.com>
+
+ * prj-env.adb: Remove <prefix>/lib/gpr/<target> project search path.
+ * gnat_ugn.texi: Add documentation for VERSIONINFO Windows resource.
+
2011-08-01 Yannick Moy <moy@adacore.com>
* par-ch4.adb (P_Name): issue a syntax error in SPARK mode on character
diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
index 3ed62dd..8d0c8a4 100644
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -27804,33 +27804,70 @@ Resources are an easy way to add Windows specific objects to your
application. The objects that can be added as resources include:
@itemize @bullet
-@item
-menus
+@item menus
-@item
-accelerators
+@item accelerators
-@item
-dialog boxes
+@item dialog boxes
-@item
-string tables
+@item string tables
-@item
-bitmaps
+@item bitmaps
-@item
-cursors
+@item cursors
-@item
-icons
+@item icons
-@item
-fonts
+@item fonts
+
+@item version information
@end itemize
+For example, a version information resource can be defined as follow and
+embedded into an executable or DLL:
+
+A version information resource can be used to embed information into an
+executable or a DLL. These information can be viewed using the file properties
+from the Windows Explorer. Here is an example of a version information
+resource:
+
+@smallexample
+@group
+1 VERSIONINFO
+FILEVERSION 1,0,0,0
+PRODUCTVERSION 1,0,0,0
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "080904E4"
+ BEGIN
+ VALUE "CompanyName", "My Company Name"
+ VALUE "FileDescription", "My application"
+ VALUE "FileVersion", "1.0"
+ VALUE "InternalName", "my_app"
+ VALUE "LegalCopyright", "My Name"
+ VALUE "OriginalFilename", "my_app.exe"
+ VALUE "ProductName", "My App"
+ VALUE "ProductVersion", "1.0"
+ END
+ END
+
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x809, 1252
+ END
+END
+@end group
+@end smallexample
+
+The value @code{0809} (langID) is for the U.K English language and
+@code{04E4} (charsetID), which is equal to @code{1252} decimal, for
+multilingual.
+
@noindent
-This section explains how to build, compile and use resources.
+This section explains how to build, compile and use resources. Note that this
+section does not cover all resource objects, for a complete description see
+the corresponding Microsoft documentation.
@node Building Resources
@subsection Building Resources
diff --git a/gcc/ada/prj-env.adb b/gcc/ada/prj-env.adb
index 180d0d0..f162bb1 100644
--- a/gcc/ada/prj-env.adb
+++ b/gcc/ada/prj-env.adb
@@ -1935,10 +1935,6 @@ package body Prj.Env is
if Target_Name /= "" then
Add_Str_To_Name_Buffer
(Path_Separator & Prefix.all &
- "lib" & Directory_Separator & "gpr" &
- Directory_Separator & Target_Name);
- Add_Str_To_Name_Buffer
- (Path_Separator & Prefix.all &
Target_Name & Directory_Separator &
"lib" & Directory_Separator & "gnat");
end if;