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
This commit is contained in:
Pascal Obry 2011-08-01 16:06:47 +00:00 committed by Arnaud Charlet
parent 1d801f212f
commit af9e051fad
3 changed files with 59 additions and 21 deletions

View File

@ -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

View File

@ -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

View File

@ -1933,10 +1933,6 @@ package body Prj.Env is
if Prefix.all /= "" then
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 &