Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Apr 23, 2025

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

@WillAyd
Copy link
Contributor Author

WillAyd commented Apr 23, 2025

@pitrou

Copy link

⚠️ GitHub issue #46215 has been automatically assigned in GitHub to PR creator.

Copy link
Member

@pitrou pitrou left a 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
Copy link
Member

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.


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
Copy link
Member

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

Suggested change
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

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.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<build_directory>/subprojects/<subproject_name> at project configuration time.
`<build_directory>/subprojects/<subproject_name>` at project configuration time.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Apr 23, 2025
@WillAyd WillAyd force-pushed the meson-add-subprojects-readme branch 2 times, most recently from 6782516 to 479c639 Compare April 23, 2025 15:20
Comment on lines 1 to 16
# 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.
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My mistake - done!

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Apr 24, 2025
@WillAyd WillAyd force-pushed the meson-add-subprojects-readme branch from 479c639 to eae3117 Compare April 24, 2025 12:12
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Apr 24, 2025
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting change review Awaiting change review labels Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants