-
Notifications
You must be signed in to change notification settings - Fork 3.7k
GH-46215: [C++][Docs] Add README for Meson subprojects directory #46216
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
base: main
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.
Thanks for this! This is very useful, a couple minor comments.
@@ -0,0 +1,64 @@ | |||
# Meson Subprojects |
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 think you need to add a license header above.
cpp/subprojects/README.md
Outdated
|
||
The easiest way to populate subprojects is to use Meson's | ||
[WrapDB system](https://mesonbuild.com/Wrapdb-projects.html). To illustrate how this | ||
works, let's take a look at the ``googletest`` library that Arrow depends upon for |
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.
If this is a markdown file, you need to use markdown markup not reST :) Therefore only single backticks
works, let's take a look at the ``googletest`` library that Arrow depends upon for | |
works, let's take a look at the `googletest` library that Arrow depends upon for |
cpp/subprojects/README.md
Outdated
The ``method = cmake`` line is important here; it instructs Meson to inspect any | ||
CMakeLists.txt files from the downloaded source and auto generate Meson configuration | ||
files therefrom. The generated meson.build configuration(s) will be placed in | ||
<build_directory>/subprojects/<subproject_name> at project configuration time. |
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.
<build_directory>/subprojects/<subproject_name> at project configuration time. | |
`<build_directory>/subprojects/<subproject_name>` at project configuration time. |
6782516
to
479c639
Compare
cpp/subprojects/README.md
Outdated
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. |
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.
Could you use <!-- ... -->
for comment in .md
?
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.
My mistake - done!
479c639
to
eae3117
Compare
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.
Rationale for this change
This clarifies what the subprojects directory does, for developers not familiar with Meson
What changes are included in this PR?
This adds a README.md file to cpp/subprojects
Are these changes tested?
N/A
Are there any user-facing changes?
No