diff options
author | Gil <mcg@google.com> | 2018-07-16 11:46:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 11:46:55 -0700 |
commit | c7fb0a487523b3686a03e3b7f9b459fcb9323a36 (patch) | |
tree | b2a7ddbb1ecf7f354b000642f195129223e4bf81 /Firestore | |
parent | 22562f49ebd39bb7f3d3b00f020841eb1f545934 (diff) |
Generate CMake frameworks from podspecs (#1531)
* Rename utils.cmake to cc_rules.cmake
This makes it less of a dumping ground
* Fix sign mismatch in FIRApp
* Implement a podspec_framework CMake function
... that generates a CMake framework library target from a podspec.
* Remove manual CMake scripts for xcodebuild
Diffstat (limited to 'Firestore')
-rw-r--r-- | Firestore/CMakeLists.txt | 17 | ||||
-rw-r--r-- | Firestore/Example/Firestore.xcodeproj/project.pbxproj | 2 |
2 files changed, 13 insertions, 6 deletions
diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt index 039cb06..831d8ab 100644 --- a/Firestore/CMakeLists.txt +++ b/Firestore/CMakeLists.txt @@ -34,14 +34,11 @@ set(FIREBASE_BINARY_DIR ${PROJECT_BINARY_DIR}/..) list(INSERT CMAKE_MODULE_PATH 0 ${FIREBASE_SOURCE_DIR}/cmake) include(SanitizerOptions) -include(utils) +include(cc_rules) +include(podspec_rules) # External packages -if(APPLE) - find_package(FirebaseCore REQUIRED) - find_package(GoogleUtilities REQUIRED) -endif() find_package(LevelDB REQUIRED) find_package(ZLIB) @@ -128,6 +125,16 @@ target_include_directories( enable_testing() include(CompilerSetup) +# Firebase packages +podspec_framework( + ${FIREBASE_SOURCE_DIR}/GoogleUtilities.podspec + SPECS Logger +) + +podspec_framework( + ${FIREBASE_SOURCE_DIR}/FirebaseCore.podspec +) + # Superbuild installed results include_directories(${FIREBASE_INSTALL_DIR}/include) diff --git a/Firestore/Example/Firestore.xcodeproj/project.pbxproj b/Firestore/Example/Firestore.xcodeproj/project.pbxproj index ddd9e83..3a5d30a 100644 --- a/Firestore/Example/Firestore.xcodeproj/project.pbxproj +++ b/Firestore/Example/Firestore.xcodeproj/project.pbxproj @@ -903,9 +903,9 @@ 6EDD3B5D20BF24A700C33877 /* FuzzTests */ = { isa = PBXGroup; children = ( - 6ED6DEA120F5502700FC6076 /* FuzzingResources */, 6EDD3B5E20BF24D000C33877 /* FSTFuzzTestsPrincipal.mm */, 6EDD3B5C20BF247500C33877 /* Firestore_FuzzTests_iOS-Info.plist */, + 6ED6DEA120F5502700FC6076 /* FuzzingResources */, ); path = FuzzTests; sourceTree = "<group>"; |