File tree Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Expand file tree Collapse file tree 8 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ option(FIREBASE_CPP_BUILD_TESTS
44
44
"Enable the Firebase C++ Build Tests." OFF )
45
45
option (FIREBASE_FORCE_FAKE_SECURE_STORAGE
46
46
"Disable use of platform secret store and use fake impl." OFF )
47
+ option (FIREBASE_INSTANCE_ID_DESKTOP
48
+ "Use the experimental Instance Id desktop implementation." OFF )
47
49
48
50
if (WIN32 )
49
51
# Turn on the use of the __cplusplus compiler define that is used to detect if
Original file line number Diff line number Diff line change @@ -373,7 +373,9 @@ endif()
373
373
if (NOT ANDROID AND NOT IOS )
374
374
# Add the rest subdirectory, so that other libraries can access it
375
375
add_subdirectory (rest )
376
- add_subdirectory (instance_id )
376
+ if (FIREBASE_INSTANCE_ID_DESKTOP )
377
+ add_subdirectory (instance_id )
378
+ endif ()
377
379
endif ()
378
380
379
381
if (FIREBASE_CPP_BUILD_TESTS )
Original file line number Diff line number Diff line change 55
55
"${desktop_SRCS} " )
56
56
endif ()
57
57
58
- if (ANDROID OR IOS OR use_stub )
58
+ if (ANDROID OR IOS OR use_stub OR NOT FIREBASE_INSTANCE_ID_DESKTOP )
59
59
set (additional_link_LIB )
60
60
else ()
61
61
set (additional_link_LIB
Original file line number Diff line number Diff line change @@ -81,9 +81,14 @@ else()
81
81
${FLATBUFFERS_SOURCE_DIR} /include
82
82
${NANOPB_INCLUDE_DIRS}
83
83
${PROJECT_BINARY_DIR} /.. )
84
+ if (FIREBASE_INSTANCE_ID_DESKTOP )
85
+ set (iid_desktop firebase_instance_id_desktop_impl )
86
+ else ()
87
+ set (iid_desktop )
88
+ endif ()
84
89
set (additional_link_LIB
85
90
firebase_rest_lib
86
- firebase_instance_id_desktop_impl
91
+ ${iid_desktop}
87
92
flatbuffers )
88
93
endif ()
89
94
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ cd linux_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON
31
31
32
32
# Build the SDK and the tests
33
33
cmake --build .
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ cd mac_x64_build
27
27
28
28
# Configure cmake with tests enabled
29
29
# and disable use of libsecret due to not working on kokoro builders
30
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
30
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON
31
31
32
32
# Build the SDK and the tests
33
33
cmake --build .
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ EXIT /B %status%
47
47
mkdir windows_%~1
48
48
pushd windows_%~1
49
49
50
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR=" %~2 " %~3
50
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON - DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR=" %~2 " %~3
51
51
52
52
:: Check for errors, and return if there were any
53
53
if %errorlevel% neq 0 (
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ EXIT /B %status%
47
47
mkdir windows_%~1
48
48
pushd windows_%~1
49
49
50
- cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR=" %~2 " %~3
50
+ cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON - DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR=" %~2 " %~3
51
51
52
52
:: Check for errors, and return if there were any
53
53
if %errorlevel% neq 0 (
You can’t perform that action at this time.
0 commit comments