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

Move ffi/gn to docs/tutorials/gn #4535

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Move ffi/gn to docs/tutorials/gn #4535

merged 2 commits into from
Jan 22, 2024

Conversation

sffc
Copy link
Member

@sffc sffc commented Jan 22, 2024

Fixes #3006

@sffc sffc marked this pull request as ready for review January 22, 2024 20:25
@sffc sffc requested review from Manishearth and a team as code owners January 22, 2024 20:25
@sffc sffc merged commit 75ab396 into unicode-org:main Jan 22, 2024
29 checks passed
@sffc sffc deleted the gn-move branch January 22, 2024 22:20
@@ -103,7 +103,7 @@ members = [
# implicitly excluded from the main workspace.
exclude = [
# GNaw needs to be run from outside the workspace for features to work
"ffi/gn",
"docs/tutorials/gn",
Copy link
Member

Choose a reason for hiding this comment

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

nit: docs is already excluded

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

should we move this file into docs/tutorials/gn? there's significant logic here that needs to be discoverable.

Copy link
Member Author

Choose a reason for hiding this comment

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

.gn
Copy link
Member

Choose a reason for hiding this comment

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

what is this file for?

Copy link
Member Author

Choose a reason for hiding this comment

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

It defines the root, which must be an ancestor of code being built

icu_capi = { version = "1.0", path = "../../ffi/capi", default-features = false, features = ["default_components"] }
icu = { version = "1.0", path = "../../components/icu", default-features = false }
icu_provider = { version = "1.0", path = "../../provider/core" }
icu_capi = { version = "1.0", default-features = false, features = ["default_components"] }
Copy link
Member

Choose a reason for hiding this comment

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

just to double check: the explicit paths are being replaced by the tutorial patch file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@@ -4,7 +4,7 @@

group("default") {
deps = [
"//ffi/gn/hello_world:print_hello",
"//ffi/gn/icu4x:icu_capi"
"//docs/tutorials/gn/hello_world:print_hello",
Copy link
Member

Choose a reason for hiding this comment

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

is there a way to define the root as docs/tutorials/gn?

Copy link
Member Author

Choose a reason for hiding this comment

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

Either this or using a symlink; prefer making the GN root the repo root. Clients vendoring ICU4X don't need this part of the setup

sffc added a commit to sffc/omnicu that referenced this pull request Jan 24, 2024
robertbastian pushed a commit that referenced this pull request Jan 24, 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.

Reduce the number of checked in generated files
3 participants