-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
710867b
to
0f242ed
Compare
Firestore/CMakeLists.txt
Outdated
file( | ||
WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c | ||
"// generated file for header-only CMake support. | ||
void FirebaseAuthInteropFakeSymbol() {} |
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.
How about static int FirebaseAuthInteropFakeSymbol = 1;
to avoid cluttering the symbol table?
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.
Done, though still a static function. Also needed to annotate with __attribute__((unused))
to prevent a compiler error about an unused function.
It looks like changing the target branch doesn't trigger travis. And it looks like cmake files should be added to if_changed.sh |
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.
Also updated if_changed.sh
script:
PROJECT=Firestore METHOD=cmake TRAVIS_COMMIT_RANGE=master..wilhuff/firestore-interop ./scripts/if_changed.sh echo hi
hi
Firestore/CMakeLists.txt
Outdated
file( | ||
WRITE ${CMAKE_CURRENT_BINARY_DIR}/FirebaseAuthInteropDummy.c | ||
"// generated file for header-only CMake support. | ||
void FirebaseAuthInteropFakeSymbol() {} |
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.
Done, though still a static function. Also needed to annotate with __attribute__((unused))
to prevent a compiler error about an unused function.
This looks huge but it's basically just a merge of master and #1531 plus just this commit:
710867b.