Commit Graph

20 Commits

Author SHA1 Message Date
Jordan Williams
1ccd56d73b (#20856) Minor clean up of template packages
* Bump Meson version

* Use LANGUAGES keyword in CMake project commands

* Alphabetize self.settings.rm_safe in configure

* Remove keywords for pattern, src, and dst from calls to copy

This keeps things consistent and simple.

* Use _compilers_minimum_version for MSVC in CMake package

This makes it consistent with other template packages.

* Alphabetize compilers in _compilers_minimum_version

* Use _min_cppstd in Autoools package for consistency

* Add _compilers_minimum_version check to Autotools package

* Alphabetize imports

* Update docs/package_templates/autotools_package/all/conanfile.py

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Make min cppstd consistent with compiler minimum version

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
2023-11-06 19:04:11 +01:00
Chris Mc
dfda985713 (#17705) docs: remove mention of the migration test_v1_package
* Delete docs/package_templates/autotools_package/all/test_v1_package directory

* Delete docs/package_templates/cmake_package/all/test_v1_package directory

* Delete docs/package_templates/header_only/all/test_v1_package directory

* Delete docs/package_templates/meson_package/all/test_v1_package directory

* Delete docs/package_templates/msbuild_package/all/test_v1_package directory

* Delete docs/package_templates/prebuilt_tool_package/all/test_v1_package directory

* Update test_packages.md

* Update error_knowledge_base.md
2023-05-25 21:21:44 +02:00
Chris Mc
52392b8485 (#16988) docs: Access build folder using the improved syntax from 1.53
https://github.com/conan-io/conan-center-index/pull/16847/files#r1158843293
2023-04-12 13:02:23 +02:00
Chris Mc
3f27b6db0f (#16759) docs: clarify everything should use CMake 3.15 to match Conan 2.0 2023-04-01 11:45:37 +02:00
Chris Mc
ff8b4aaf4e (#16513) docs: make sure package type is set 2023-03-15 02:50:38 +01:00
Chris Mc
7ed30a9de7 (#14527) templates: bunch of small cleanups 2022-12-12 16:46:16 +01:00
Uilian Ries
5e5c1c5c72 (#13984) [templates] Keep same pattern for cmake and min_cppstd
Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-11-03 23:45:49 +01:00
Chris Mc
e08d116d3a (#13848) docs: Use new Conan 1.53 features
* Use new Conan 1.53 features

since it's now available

* Apply suggestions from code review

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
2022-11-02 12:22:22 +01:00
Chris Mc
70d9c6b69e (#13274) linters: Add annotations for YAML lint + add schema verification for config.yml and conandata.yml
* first attempt at a yaml linter wit github actions output

* This is less strict but has more information

* fixup message

* run config linter in Action

* better ux feedback

* try to use newlines

https://github.com/actions/toolkit/issues/193#issuecomment-605394935

* clean up

* fixup file name

* trying custom class for quoted str

* underlying yaml parser does not keep quotes

* trying to catch ints as problems

* remove test code

* and to "linter testing"

* install deps

* run new linter unconditionally

* revert testing changes

* new script for conandata (this one is much harder to spec)

* debugging

* lets see all the errors

* yamale -s ../linter/config_yaml_schema.yml aaf/config.yml

from linters folder as a test

* adjust script to match meeting discussion

* make sure the docs and linters match

* fix link

* Update conandata.yml

* exit 1 is not needed with annotations

* add annotation matchers for yaml since those do do much

* fix search for type

* fix whitespace

* tryout a yamllint file with a better looking matcher

* copy syntax from readme

* test if it's running in the wrong dir 🤔

* try with debug output

* bump since i dont have permissions

* bump - dont glob star

* bump

* less star globs

* also add action to conandata way

* bump

* drop action for cli + matcher

* more docs around linters

* fix file and name

* cleanup
2022-10-25 14:25:05 +02:00
Uilian Ries
b485b94ba4 (#13656) [cmake-template] Simplify test_v1_package CMakeLists.txt
* Simplify test_v1_package cmake

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update docs/package_templates/cmake_package/all/test_v1_package/CMakeLists.txt

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-10-22 07:24:23 +02:00
Chris Mc
07c8af0ec1 (#13385) templates: Update cmake templates usage of cache variables
the normal ones are enough in 99% of cases so those should be prefered
2022-10-10 14:44:15 +02:00
Uilian Ries
9cd0fcbc34 (#13331) [docs] Apply python black formatter over recipe templates
* Apply python black

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update to 120 chars

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update to 120 chars

Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-10-06 18:24:15 +02:00
Jordan Williams
1eb00b5039 (#13237) Update cmake template
* Remove std::endl

This is not best practice.
If output must be flushed, use `std::flush` instead.

* Use check_min_vs to check compiler version

This is compatible with both Visual Studio and msvc compiler settings.

* Combine commands to delete settings in a single try-catch block

This reduces boilerplate.

* Remove destination=self.source_folder

This argument is not necessary when using the get method in the source method.

* Remove if is_msvc check before check_min_vs

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Condense output to a single statement

* Revert "Remove destination=self.source_folder"

This reverts commit 942d84d129.

* Clean up grammar / typos

* Revert "Combine commands to delete settings in a single try-catch block"

This reverts commit 90f0f1922a.

* Fix

* Revert "Fix"

This reverts commit 6483354cf7.

* Revert "Clean up grammar / typos"

This reverts commit 3f472dbfe8.

* Revert "Condense output to a single statement"

This reverts commit 96d7b71965.

* Revert test_package.cpp

Co-authored-by: Uilian Ries <uilianries@gmail.com>
2022-10-04 18:24:09 +02:00
Uilian Ries
6c01a2b649 (#13093) [templates] Use Conan 1.52.0 feature
* Use Conan 1.52.0 feature

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Fix required version

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-23 03:04:41 +02:00
Chris Mc
0249fed58c (#12987) docs: fix calls to conan.files.rm 2022-09-21 12:45:21 +02:00
Uilian Ries
908b578ad3 (#13014) [docs] Fix leftover dot for cache_variables
Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-19 14:26:32 +02:00
toge
753c7974f0 (#12978) [docs] package_templates/cmake_package : fix cache_variables.definitions and add configure 2022-09-16 19:24:23 +02:00
Martin Delille
4a586c4f27 (#12908) Use target_compile_features for package_templates/cmake_package/all/test_package/CMakeLists.txt 2022-09-15 01:24:42 +02:00
Uilian Ries
6e721f54bf (#12878) [docs] source subfolder is no longer used
Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-14 22:04:40 +02:00
Uilian Ries
d348c438f1 (#12849) [docs] CMake package template
* Adapt template package to V1 and V2

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* inform about each test package need

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Fix test_v1_package path

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* add autotools example

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* add msbuild template

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Move package to cmake_package

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Pure C for autotools

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Add more comments

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* use static tools

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Remove unused imports for msbuild example

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* patch can be applied under build() for header-only

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Add pre-built binaries example

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Remove duplicated package_id from header-only

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Apply SpaceIm suggestion

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* safe cppstd

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update cmake package example order

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update autotools package example order

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update msbuild package example order

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update prebuilt package example order

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* includedirs not used by pre-built

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* add test_type to all test_package folders

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update docs/package_templates/header_only/all/conanfile.py

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>

* Declared layout

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* remove other templates

Signed-off-by: Uilian Ries <uilianries@gmail.com>

* Update docs/package_templates/cmake_package/all/conanfile.py

Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Javier G. Sogo <jgsogo@gmail.com>
2022-09-07 13:44:19 +02:00