From 9f7c094f9f00a6efc0107071f109ef1bc4d7357d Mon Sep 17 00:00:00 2001 From: Gil Date: Fri, 19 Jan 2018 12:20:46 -0800 Subject: Add platform detection logic for SecureRandom (#676) * Add CMake platform detection logic for SecureRandom Now only builds secure_random_arc4random.cc if available. Remove firebase/firestore/base/port.h. Nothing else was in that directory. * Add a SecureRandom implementation that uses OpenSSL This is usable on Linux, Windows, and Android * Properly check return from RAND_bytes --- Firestore/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Firestore/CMakeLists.txt') diff --git a/Firestore/CMakeLists.txt b/Firestore/CMakeLists.txt index 499e06c..b8c95c6 100644 --- a/Firestore/CMakeLists.txt +++ b/Firestore/CMakeLists.txt @@ -57,6 +57,9 @@ add_subdirectory(third_party/abseil-cpp) include(CompilerSetup) +# Generated sources will be relative to the binary directory. +include_directories(${FIREBASE_INSTALL_DIR}) + # Fully qualified imports, project wide include_directories(${FIREBASE_SOURCE_DIR}) -- cgit v1.2.3