Skip to content

Commit 5f0c0e1

Browse files
authored
experimental->preview features (#3933)
* experimental->preview features * review * fix
1 parent 4ff3c43 commit 5f0c0e1

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

common/preview_warning.inc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.. note::
2+
3+
This feature is in **preview**. It means that it is very unlikely to be removed and unlikely to have
4+
breaking changes. Maintainers will try as much as possible to not break it, and only do it if
5+
very necessary.
6+
See :ref:`the Conan stability<stability>` section for more information.

examples/commands/pkglists.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Using packages-lists
44
====================
55

6-
.. include:: ../../common/experimental_warning.inc
6+
.. include:: ../../common/preview_warning.inc
77

88

99
Packages lists are a powerful and convenient Conan feature that allows to automate and concatenate different Conan commands.

incubating.rst

+14
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ This generator is designed as a replacement of the current ``CMakeDeps`` generat
2424
- Executables from ``requires`` can also be used in non cross-build scenarios. When a ``tool_requires`` to the same depependency exists, then those executables will have priority.
2525
- Creation of a new ``conan_cmakedeps_paths.cmake`` that contains definitions of ``<pkg>_DIR`` paths for direct finding of the dependencies. This file is also planned to be used in ``cmake-conan`` to extend its usage and avoid some current limitations due to the fact that a CMake driven installation cannot inject a toolchain later.
2626

27+
The new fields that can be defined in the ``cpp_info`` or ``cpp_info.components``, besides the already defined in :ref:`CppInfo<conan_conanfile_model_cppinfo>` are:
28+
29+
.. code-block:: python
30+
31+
# EXPERIMENTAL FIELDS, used exclusively by new CMakeDeps (-c tools.cmake.cmakedeps:new)
32+
self.cpp_info.type # The type of this artifact "shared-library", "static-library", etc (same as package_type)
33+
self.cpp_info.location # full location (path and filename with extension) of the artifact
34+
self.cpp_info.link_location # Location of the import library for Windows .lib associated to a dll
35+
self.cpp_info.languages # same as "languages" attribute, it can be "C", "C++"
36+
self.cpp_info.exe # Definition of an executable artifact
37+
38+
These fields will be auto-deduced from the other ``cpp_info`` and ``components`` definitions, like the ``libs`` or ``libdirs`` fields, but the automatic deduction might have limitations. Defining them explicitly will inhibit the auto deduction and use the value as provided by the recipe.
39+
40+
2741
This feature is enabled with the ``-c tools.cmake.cmakedeps:new=will_break_next`` configuration. The value ``will_break_next`` will change in next releases to emphasize the fact that this feature is not suitable for usage beyond testing. Just by enabling this conf and forcing the build of packages that use ``CMakeDeps`` will trigger the usage of the new generator.
2842

2943
Known current limitations:

reference/commands/formatters/graph_info_json_formatter.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ This section is aimed to show one example of the JSON format output when using a
1313

1414
The output shows the graph information processed by Conan in each command.
1515

16-
.. warning::
1716

18-
This json output is **experimental** and subject to change.
17+
.. include:: ../../../common/preview_warning.inc
1918

2019

2120
The JSON output generated by :command:`conan graph info --require=zlib/1.2.11 -r=conancenter --format=json > graph.json`

reference/commands/version.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
conan version
44
=============
55

6-
.. include:: ../../common/experimental_warning.inc
6+
.. include:: ../../common/preview_warning.inc
77

88
.. autocommand::
99
:command: conan version -h

0 commit comments

Comments
 (0)