Skip to content

Implement a CMake build for FirebaseAuthInterop #1532

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

Merged
merged 3 commits into from
Jul 17, 2018

Conversation

wilhuff
Copy link
Contributor

@wilhuff wilhuff commented Jul 13, 2018

This looks huge but it's basically just a merge of master and #1531 plus just this commit:
710867b.

@wilhuff wilhuff force-pushed the wilhuff/firestore-interop branch from 710867b to 0f242ed Compare July 16, 2018 21:48
@wilhuff wilhuff changed the base branch from rw-firestore-interop to master July 16, 2018 21:49
@wilhuff
Copy link
Contributor Author

wilhuff commented Jul 16, 2018

Now that #1531 has landed, this change is no longer dependent on uncommitted code. Once this lands you can just merge master into #1525.

file(
WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
"// generated file for header-only CMake support.
void FirebaseAuthInteropFakeSymbol() {}
Copy link
Member

Choose a reason for hiding this comment

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

How about static int FirebaseAuthInteropFakeSymbol = 1; to avoid cluttering the symbol table?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, though still a static function. Also needed to annotate with __attribute__((unused)) to prevent a compiler error about an unused function.

@paulb777
Copy link
Member

It looks like changing the target branch doesn't trigger travis.

And it looks like cmake files should be added to if_changed.sh

Copy link
Contributor Author

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

Also updated if_changed.sh script:

PROJECT=Firestore METHOD=cmake TRAVIS_COMMIT_RANGE=master..wilhuff/firestore-interop ./scripts/if_changed.sh echo hi
hi

file(
WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c
"// generated file for header-only CMake support.
void FirebaseAuthInteropFakeSymbol() {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, though still a static function. Also needed to annotate with __attribute__((unused)) to prevent a compiler error about an unused function.

@wilhuff wilhuff merged commit a2d38c5 into master Jul 17, 2018
@wilhuff wilhuff deleted the wilhuff/firestore-interop branch July 17, 2018 18:37
@firebase firebase locked and limited conversation to collaborators Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants