mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
Help: Add Builtin Targets section to Ninja help
This commit is contained in:
@@ -1,11 +1,28 @@
|
|||||||
Ninja
|
Ninja
|
||||||
-----
|
-----
|
||||||
|
|
||||||
Generates ``build.ninja`` files.
|
Generates a ``build.ninja`` file into the build tree.
|
||||||
|
|
||||||
A ``build.ninja`` file is generated into the build tree. Use the ninja
|
Builtin Targets
|
||||||
program to build the project through the ``all`` target and install the
|
^^^^^^^^^^^^^^^
|
||||||
project through the ``install`` (or ``install/strip``) target.
|
|
||||||
|
``all``
|
||||||
|
|
||||||
|
Depends on all targets required by the project, except those with
|
||||||
|
:prop_tgt:`EXCLUDE_FROM_ALL` set to true.
|
||||||
|
|
||||||
|
``install``
|
||||||
|
|
||||||
|
Runs the install step.
|
||||||
|
|
||||||
|
``install/strip``
|
||||||
|
|
||||||
|
.. versionadded:: 3.7
|
||||||
|
|
||||||
|
Runs the install followed by a ``CMAKE_STRIP`` command, if any.
|
||||||
|
|
||||||
|
The ``CMAKE_STRIP`` variable will contain the platform's ``strip`` utility, which
|
||||||
|
removes symbols information from generated binaries.
|
||||||
|
|
||||||
For each subdirectory ``sub/dir`` of the project, additional targets
|
For each subdirectory ``sub/dir`` of the project, additional targets
|
||||||
are generated:
|
are generated:
|
||||||
@@ -25,12 +42,10 @@ are generated:
|
|||||||
``sub/dir/install/strip``
|
``sub/dir/install/strip``
|
||||||
|
|
||||||
.. versionadded:: 3.7
|
.. versionadded:: 3.7
|
||||||
|
|
||||||
Runs the install step in the subdirectory followed by a ``CMAKE_STRIP`` command,
|
Runs the install step in the subdirectory followed by a ``CMAKE_STRIP`` command,
|
||||||
if any.
|
if any.
|
||||||
|
|
||||||
The ``CMAKE_STRIP`` variable will contain the platform's ``strip`` utility, which
|
|
||||||
removes symbols information from generated binaries.
|
|
||||||
|
|
||||||
``sub/dir/test``
|
``sub/dir/test``
|
||||||
|
|
||||||
.. versionadded:: 3.7
|
.. versionadded:: 3.7
|
||||||
|
Reference in New Issue
Block a user