mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 00:48:55 +08:00

committed by
Brad King

parent
e1adec32b8
commit
04a11f16ba
@@ -30,7 +30,7 @@ Main functions provided by the module
|
|||||||
.. command:: csharp_set_windows_forms_properties
|
.. command:: csharp_set_windows_forms_properties
|
||||||
|
|
||||||
Sets source file properties for use of Windows Forms. Use this, if your CSharp
|
Sets source file properties for use of Windows Forms. Use this, if your CSharp
|
||||||
target uses windows forms::
|
target uses Windows Forms::
|
||||||
|
|
||||||
csharp_set_windows_forms_properties([<file1> [<file2> [...]]])
|
csharp_set_windows_forms_properties([<file1> [<file2> [...]]])
|
||||||
|
|
||||||
@@ -59,8 +59,10 @@ Main functions provided by the module
|
|||||||
|
|
||||||
.. command:: csharp_set_designer_cs_properties
|
.. command:: csharp_set_designer_cs_properties
|
||||||
|
|
||||||
Sets source file properties for use of WPF/XAML. Use this, if your CSharp
|
Sets source file properties of ``.Designer.cs`` files depending on
|
||||||
target uses WPF/XAML::
|
sibling filenames. Use this, if your CSharp target does **not**
|
||||||
|
use Windows Forms (for Windows Forms use
|
||||||
|
:command:`csharp_set_designer_cs_properties` instead)::
|
||||||
|
|
||||||
csharp_set_designer_cs_properties([<file1> [<file2> [...]]])
|
csharp_set_designer_cs_properties([<file1> [<file2> [...]]])
|
||||||
|
|
||||||
@@ -88,10 +90,16 @@ Main functions provided by the module
|
|||||||
- VS_CSHARP_DesignTimeSharedInput "True"
|
- VS_CSHARP_DesignTimeSharedInput "True"
|
||||||
- VS_CSHARP_DependentUpon <settings-filename>
|
- VS_CSHARP_DependentUpon <settings-filename>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
Because the source file properties of the ``.Designer.cs`` file are set according
|
||||||
|
to the found matches and every match sets the **VS_CSHARP_DependentUpon**
|
||||||
|
property, there should only be one match for each ``Designer.cs`` file.
|
||||||
|
|
||||||
.. command:: csharp_set_xaml_cs_properties
|
.. command:: csharp_set_xaml_cs_properties
|
||||||
|
|
||||||
Sets source file properties for use of WPF/XAML. Use this, if your
|
Sets source file properties for use of Windows Presentation Foundation (WPF) and
|
||||||
CSharp target uses WPF/XAML::
|
XAML. Use this, if your CSharp target uses WPF/XAML::
|
||||||
|
|
||||||
csharp_set_xaml_cs_properties([<file1> [<file2> [...]]])
|
csharp_set_xaml_cs_properties([<file1> [<file2> [...]]])
|
||||||
|
|
||||||
@@ -101,7 +109,7 @@ Main functions provided by the module
|
|||||||
``.xaml``, and ``.xaml.cs`` extensions).
|
``.xaml``, and ``.xaml.cs`` extensions).
|
||||||
|
|
||||||
In the list of all given files for all files ending with
|
In the list of all given files for all files ending with
|
||||||
``.xaml.cs`` is searched. For every xaml file, a file
|
``.xaml.cs`` is searched. For every *xaml-cs* file, a file
|
||||||
with the same base name but extension ``.xaml`` is searched.
|
with the same base name but extension ``.xaml`` is searched.
|
||||||
If a match is found, the source file properties of the ``.xaml.cs``
|
If a match is found, the source file properties of the ``.xaml.cs``
|
||||||
file are set:
|
file are set:
|
||||||
@@ -120,10 +128,10 @@ Helper functions which are used by the above ones
|
|||||||
csharp_get_filename_keys(OUT [<file1> [<file2> [...]]])
|
csharp_get_filename_keys(OUT [<file1> [<file2> [...]]])
|
||||||
|
|
||||||
``OUT``
|
``OUT``
|
||||||
name of the variable in which the list of keys is stored
|
Name of the variable in which the list of keys is stored
|
||||||
|
|
||||||
``<fileN>``
|
``<fileN>``
|
||||||
filename as given to to CSharp target using :command:`add_library`
|
filename(s) as given to to CSharp target using :command:`add_library`
|
||||||
or :command:`add_executable`
|
or :command:`add_executable`
|
||||||
|
|
||||||
In some way the function applies a canonicalization to the source names.
|
In some way the function applies a canonicalization to the source names.
|
||||||
@@ -146,14 +154,14 @@ Helper functions which are used by the above ones
|
|||||||
|
|
||||||
.. command:: csharp_get_filename_key_base
|
.. command:: csharp_get_filename_key_base
|
||||||
|
|
||||||
Returns the full filepath and name **withouth** extension of a key.
|
Returns the full filepath and name **without** extension of a key.
|
||||||
KEY is expected to be a key from csharp_get_filename_keys. In BASE
|
KEY is expected to be a key from csharp_get_filename_keys. In BASE
|
||||||
the value of KEY without the file extension is returned::
|
the value of KEY without the file extension is returned::
|
||||||
|
|
||||||
csharp_get_filename_key_base(BASE KEY)
|
csharp_get_filename_key_base(BASE KEY)
|
||||||
|
|
||||||
``BASE``
|
``BASE``
|
||||||
The computed "base" of ``KEY``.
|
Name of the variable with the computed "base" of ``KEY``.
|
||||||
|
|
||||||
``KEY``
|
``KEY``
|
||||||
The key of which the base will be computed. Expected to be a
|
The key of which the base will be computed. Expected to be a
|
||||||
@@ -167,10 +175,10 @@ Helper functions which are used by the above ones
|
|||||||
csharp_get_dependentupon_name(NAME FILE)
|
csharp_get_dependentupon_name(NAME FILE)
|
||||||
|
|
||||||
``NAME``
|
``NAME``
|
||||||
result value
|
Name of the variable with the result value
|
||||||
|
|
||||||
``FILE``
|
``FILE``
|
||||||
filename to convert to DependentUpon value
|
Filename to convert to ``<DependentUpon>`` value
|
||||||
|
|
||||||
Actually this is only the filename without any path given at the moment.
|
Actually this is only the filename without any path given at the moment.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user