Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protoc: simplify recipe #1

Merged
merged 5 commits into from
Mar 12, 2020
Merged

Conversation

madebr
Copy link

@madebr madebr commented Mar 6, 2020

Apart from a warning about cmake modules, this builds on Windows.

For conan-io#65

[HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] The *.cmake files have to be placed in a folder declared as `cpp_info.builddirs`. Currently folders declared: ['./lib/cmake/protoc/'] (https://github.com/conan-io/conan-center-index/wiki/Error-Knowledge-Base#KB-H019)
[HOOK - conan-center.py] post_package_info(): ERROR: [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] Found files:
./lib/cmake/protoc/protoc-generate.cmake
./lib/cmake/protoc/protoc-module.cmake
./lib/cmake/protoc/protoc-options.cmake (https://github.com/conan-io/conan-center-index/wiki/Error-Knowledge-Base#KB-H019)

uilianries pushed a commit that referenced this pull request Mar 9, 2020
zyre: add shared/static + do not override shared in options
@@ -26,6 +28,10 @@ def _build_subfolder(self):
def _cmake_base_path(self):
return os.path.join("lib", "cmake", "protoc")

def configure(self):
if self.settings.os_build != self.settings.os and self.settings.arch_build != self.settings.arch:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, we need to support it.

Copy link
Author

@madebr madebr Mar 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new crossbuilding pr by jsgogo will fix this.
(so this recipe should be modified again to use arch and os instead of arch_build and os_build)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! 👏

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So let's wait with this pr until that pr lands?
Because that might take some time.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, we can push it forward, and update once that feature is available.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Can you review and merge it?
(and maybe rebase on top of CCI's master since this branch is quite old)

os.path.join(self._cmake_base_path, "protoc-module.cmake"),
os.path.join(self._cmake_base_path, "protoc-options.cmake"),
os.path.join(self._cmake_base_path, "protoc-targets.cmake"),
os.path.join(self._cmake_base_path, "protoc-targets-noconfig.cmake")
os.path.join(self._cmake_base_path, "protoc-generate.cmake"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is that protoc-generate.cmake ?

Copy link
Author

@madebr madebr Mar 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's protobuf-config.cmake renamed and with all package finding stuff disabled.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds pretty interesting :D

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I named it generate because it contains the protobuf_generate_cpp functions.

@uilianries uilianries merged commit 92058e2 into uilianries:feature/protoc Mar 12, 2020
@madebr madebr deleted the pr_protoc branch March 12, 2020 16:57
uilianries pushed a commit that referenced this pull request Mar 17, 2020
uilianries pushed a commit that referenced this pull request Mar 26, 2020
jwt-cpp: test_package needs cmake generator
uilianries pushed a commit that referenced this pull request May 1, 2020
uilianries added a commit that referenced this pull request May 1, 2020
Signed-off-by: Uilian Ries <uilianries@gmail.com>
uilianries pushed a commit that referenced this pull request May 6, 2020
uilianries pushed a commit that referenced this pull request Jun 9, 2020
uilianries pushed a commit that referenced this pull request Jun 19, 2020
google-guetzli: set correct cflags (for other archs) + lint code
uilianries pushed a commit that referenced this pull request Jun 19, 2020
uilianries pushed a commit that referenced this pull request Jun 19, 2020
uilianries pushed a commit that referenced this pull request Jul 23, 2020
uilianries pushed a commit that referenced this pull request Aug 3, 2020
volk: use fixed commit hash
uilianries pushed a commit that referenced this pull request Aug 18, 2020
uilianries pushed a commit that referenced this pull request Aug 19, 2020
uilianries pushed a commit that referenced this pull request Aug 29, 2020
elfutils: patch automake scripts to fix static + simplify Werror patch
uilianries pushed a commit that referenced this pull request Jan 20, 2021
* Add ignition-math

* Formatting

* Change version_mejor approach

* Address review comments

* Add import ConanInvalidConfiguration

* del fPIC in Windows

* Add shared and static support

* Add import glob

* Unconditially remove files

* Address review comments

* Remove fPIC option since it's always true

* Change test_package.cpp

* Change test CMakeLists

* Add regex patch

* Add friends function Angle definition patch

* Revert "Add friends function Angle definition patch"

This reverts commit 4e68918.

* Explicitly link libc++

* Revert "Explicitly link libc++"

This reverts commit f659367.

* Don't run git clone + support fPIC + create components (#1)

* Add cmake_wrapper

* Update recipes/ignition-math/all/CMakeLists.txt

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>

* ignition-math: use ignition-cmake (#2)

* bump to 6.7.0

* bump 6.7.0

* Apply suggestions from code review

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

* remove pkgconf

* Apply suggestions from code review

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

Co-authored-by: Juan Oxoby <me@jmoxo.by>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Juan Oxoby <49600381+joxoby@users.noreply.github.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
uilianries pushed a commit that referenced this pull request Jul 14, 2021
uilianries pushed a commit that referenced this pull request Sep 8, 2021
* Initial support for wasmtime package

* Fixed build package on Linux

* Updates according the comments in review #0

* Update recipes/wasmtime/all/conanfile.py

Update license type

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

* Updates according the comments in review #1

* Updates according the comments in review #2

* Updates according the comments in review #3

* Updates according the comments in review #4

* Updates according the comments in review #5

* Next iteration of fixes

* Fixed cmake variable C_STANDARD -> CMAKE_C_STANDARD

* Added check on minimal version of conan

* Used copytree instead of copy individual files

* Fixed the build

* Added checking for architechure in validate(...)

* Updated receipt for new comments from @madebr

* Fixed calling method tools.cross_building(...)

* Update def package(self) according the comments in review

* Updated versions of wasmtime

* Updated forgot version ugrade

* Fixed sha256sum for macos

* Fixed SHA256 for Linux

* Updated all SHA256 to proer values

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
uilianries pushed a commit that referenced this pull request Feb 16, 2022
uilianries added a commit that referenced this pull request Sep 1, 2022
* wip patch for Visual Studio 2019

* Conan v2 compat

* Conan v2 compat

* rollback to v1 code

* rollback to v1 code

* self.copy replacement

* fix

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fixed paths

* adds support for vc17

* Use new Conan tools (#1)

* Use new Conan tools

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

* Fix is_msvc

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

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

* Update recipes/mpir/all/conanfile.py

* Fix license source path

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
uilianries pushed a commit that referenced this pull request Sep 12, 2022
uilianries pushed a commit that referenced this pull request Apr 19, 2023
B64 - use cmake and new repo
uilianries pushed a commit that referenced this pull request May 11, 2023
uilianries added a commit that referenced this pull request Jul 5, 2023
* Add `loguru/2.1.0` recipe

Loguru: a lightweight and flexible C++ logging library.

Website: https://emilk.github.io/loguru/index.html
Source code: https://github.com/emilk/loguru

Closes conan-io#14542

* Simplify CMake and native features usage (#1)

Simplifications and Conan v2 fixes

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* Update recipes/loguru/all/conanfile.py

* loguru: use latest commit with CMake support

* fixup: missing comma

* fixup: typo

* chore: rm config files

* fixup: clean up defines

* add includedirs, simplify test_package

* add suffix

* add m

* fix windows shared

* remove pdbs

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: czoido <mrgalleta@gmail.com>
uilianries pushed a commit that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants