Commit Graph

18 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
chausner
b114c747f1 (#16878) Fix Macos OS settings name in autotools package template
Co-authored-by: chausner <chausner@users.noreply.github.com>
2023-04-04 09:22:13 +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
SpaceIm
6813e73945 (#16127) Modernize a little bit more autotools package template 2023-02-20 14:56:36 +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
Martin Delille
78bcc7eb26 (#13690) [doc] Fix tools_requires => tool_requires 2022-10-24 08:05:15 +02:00
SpaceIm
9ac069ddad (#13636) autotools template: several improvements
* improve autotools template

- handle windows as build machine
- handle `tools.gnu:pkg_config` config
- handle msvc
- fix install_name of shared libs on macOS
- call VirtualBuildEnv & VirtualRunEnv first in generate to avoid side effects

* typo
2022-10-21 17:14:42 +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
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
Uilian Ries
7b0f5ab43d (#12965) [docs] Safer autotools template
Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-19 10:24:52 +02:00
Uilian Ries
03ee32116e (#12945) [docs] Hotfix replace wrong cmake method in docs
Signed-off-by: Uilian Ries <uilianries@gmail.com>

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-15 07:04:34 +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
fa277119e8 (#12850) [docs] Autotools package template
* Add autotool template

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

* Missing self

Signed-off-by: Uilian Ries <uilianries@gmail.com>
2022-09-08 20:44:12 +02:00