-
Notifications
You must be signed in to change notification settings - Fork 1
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
Configuration+Build Changes and More Documentation for Obtaining the Library #1
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with adding a missing __install
file. Suggested possible steps for a consumer project.
# Miscellaneous system init | ||
INIT: | ||
FUNCTION | ||
COPY --chmod=755 tools/__install /usr/local/bin/__install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools/__install
may be missing. Running earthly -a +build-debian/pkg deb-pkg
resulted in:
+build-debian *failed* | COPY tools/__install /usr/local/bin/__install
+build-debian *failed* | failed: failed to walk /tmp/buildkit-mount4293366862/tools: lstat /tmp/buildkit-mount4293366862/tools: no such file or directory
By default, the |amongoc| CMake package will attempt to import dependencies | ||
using :cmake:command:`find_dependency <command:find_dependency>`. This import | ||
can be disabled by changing :cmake:variable:`AMONGOC_FIND_DEPENDENCIES`. | ||
|
||
**If you build** |amongoc| using vcpkg_ (the default) it is highly recommended | ||
to use vcpkg in your own project to install |amongoc|'s dependencies, as it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a sample project with instructions to install amongoc and building a consumer with vcpkg. Example: https://gist.github.com/kevinAlbs/636fb109747ee4faba16def81c578a93 That may help give a fast-path to testing the driver.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into this in subsequent changes.
Co-authored-by: Kevin Albertson <[email protected]>
These changes introduce tweaks to the build process, as well as documentation changes that clarify the behavior regarding dependencies. The following changes are made:
FetchContent
rather than with vcpkg. These components do not require any link-time dependencies in any projects that importamongoc
.vcpkg
. This verifies that we can build on up-to-date platforms.