Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

@gaaclarke
Copy link
Member

@gaaclarke gaaclarke marked this pull request as ready for review April 14, 2020 18:56
@gaaclarke gaaclarke requested a review from xster April 14, 2020 18:56
@xster
Copy link
Member

xster commented Apr 14, 2020

LGTM. Did using chromium's repo not work?


assert(is_ios)

ocmock_path = "../../../../third_party/ocmock/Source"
Copy link
Contributor

Choose a reason for hiding this comment

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

// indicates starting from the buildroot. So just //third_party/ocmock/Source would suffice instead of counting up the number of directories to the root.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

ios_simulator_sdk_path = ""

# Version of iOS that we're targeting for tests.
ios_testing_deployment_target = "13.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

The variables here apply to all targets (ldflags from the variables defined here are specified in build/toolchain/mac/BUILD.gn). Is there a reason tests can't be run on older simulators? In that case, you can just modify the toolchain definition.

Copy link
Member Author

Choose a reason for hiding this comment

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

That would require us to edit OCMock's source code. The variable is meant to be a mirror to ios_deployment_target so it seems like it should be used the same way.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, so its enforced by a dependency. ios_deployment_target is used in //build/toolchain/mac/BUILD.gn which applies that variable to all iOS targets. This is unlike ios_testing_deployment_target here which targets need to apply themselves (like in the case of ocmock).

Eh, this is only used in target. We can figure out how to make this consistent later.

@gaaclarke
Copy link
Member Author

LGTM. Did using chromium's repo not work?

Nope, I explained why in the issue: flutter/flutter#54503

ios_simulator_sdk_path = ""

# Version of iOS that we're targeting for tests.
ios_testing_deployment_target = "13.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

I see, so its enforced by a dependency. ios_deployment_target is used in //build/toolchain/mac/BUILD.gn which applies that variable to all iOS targets. This is unlike ios_testing_deployment_target here which targets need to apply themselves (like in the case of ocmock).

Eh, this is only used in target. We can figure out how to make this consistent later.

@gaaclarke gaaclarke merged commit 1b6a1b3 into flutter:master Apr 14, 2020
chinmaygarde pushed a commit to chinmaygarde/flutter_buildroot that referenced this pull request May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants