File tree Expand file tree Collapse file tree 19 files changed +62
-20
lines changed
database/integration_test
dynamic_links/integration_test
external/vcpkg_custom_data/toolchains
integration_test_internal
functions/integration_test
installations/integration_test
messaging/integration_test
remote_config/integration_test Expand file tree Collapse file tree 19 files changed +62
-20
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,9 @@ if (NOT FIREBASE_ANDROID_STL STREQUAL "")
81
81
set (ANDROID_STL ${FIREBASE_ANDROID_STL} )
82
82
endif ()
83
83
84
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
85
+ "The Python interpreter to use, such as one from a venv" )
86
+
84
87
set (FIREBASE_XCODE_TARGET_FORMAT "frameworks" CACHE STRING
85
88
"Format to output, 'frameworks' or 'libraries'" )
86
89
Original file line number Diff line number Diff line change 16
16
17
17
cmake_minimum_required (VERSION 2.8 )
18
18
19
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20
+ "The Python interpreter to use, such as one from a venv" )
21
+
19
22
# User settings for Firebase integration tests.
20
23
# Path to Firebase SDK.
21
24
# Try to read the path to the Firebase C++ SDK from an environment variable.
@@ -39,7 +42,7 @@ endif()
39
42
if (NOT ANDROID )
40
43
if (EXISTS ${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py )
41
44
# If this is running from inside the SDK directory, run the setup script.
42
- execute_process (COMMAND "python" "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
45
+ execute_process (COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
43
46
endif ()
44
47
endif ()
45
48
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ file(MAKE_DIRECTORY ${analytics_generated_headers_dir})
29
29
function (generate_analytics_header OBJC_FILE CPP_FILE )
30
30
add_custom_command (
31
31
OUTPUT ${CPP_FILE}
32
- COMMAND python "${CMAKE_CURRENT_LIST_DIR} /generate_constants.py"
32
+ COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /generate_constants.py"
33
33
"--objc_header=${OBJC_FILE} "
34
34
"--cpp_header=${CPP_FILE} "
35
35
DEPENDS ${OBJC_FILE}
Original file line number Diff line number Diff line change 16
16
17
17
cmake_minimum_required (VERSION 2.8 )
18
18
19
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20
+ "The Python interpreter to use, such as one from a venv" )
21
+
19
22
# User settings for Firebase integration tests.
20
23
# Path to Firebase SDK.
21
24
# Try to read the path to the Firebase C++ SDK from an environment variable.
@@ -39,7 +42,7 @@ endif()
39
42
if (NOT ANDROID )
40
43
if (EXISTS ${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py )
41
44
# If this is running from inside the SDK directory, run the setup script.
42
- execute_process (COMMAND "python" "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
45
+ execute_process (COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
43
46
endif ()
44
47
endif ()
45
48
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ set(version_header ${version_header_dir}/version.h)
46
46
file (MAKE_DIRECTORY ${version_header_dir} )
47
47
add_custom_command (
48
48
OUTPUT ${version_header}
49
- COMMAND python "${FIREBASE_SCRIPT_DIR} /version_header.py"
49
+ COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${FIREBASE_SCRIPT_DIR} /version_header.py"
50
50
"--input_file=${FIREBASE_SCRIPT_DIR} /cpp_sdk_version.json"
51
51
"--output_file=${version_header} "
52
52
"--build_type=released"
@@ -417,7 +417,7 @@ if (IOS)
417
417
function (generate_analytics_header OBJC_FILE CPP_FILE )
418
418
add_custom_command (
419
419
OUTPUT ${CPP_FILE}
420
- COMMAND python "${FIREBASE_SOURCE_DIR} /analytics/generate_constants.py"
420
+ COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${FIREBASE_SOURCE_DIR} /analytics/generate_constants.py"
421
421
"--objc_header=${OBJC_FILE} "
422
422
"--cpp_header=${CPP_FILE} "
423
423
DEPENDS ${OBJC_FILE}
Original file line number Diff line number Diff line change 16
16
17
17
cmake_minimum_required (VERSION 2.8 )
18
18
19
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20
+ "The Python interpreter to use, such as one from a venv" )
21
+
19
22
# User settings for Firebase integration tests.
20
23
# Path to Firebase SDK.
21
24
# Try to read the path to the Firebase C++ SDK from an environment variable.
@@ -39,7 +42,7 @@ endif()
39
42
if (NOT ANDROID )
40
43
if (EXISTS ${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py )
41
44
# If this is running from inside the SDK directory, run the setup script.
42
- execute_process (COMMAND "python" "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
45
+ execute_process (COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
43
46
endif ()
44
47
endif ()
45
48
Original file line number Diff line number Diff line change 16
16
17
17
cmake_minimum_required (VERSION 2.8 )
18
18
19
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20
+ "The Python interpreter to use, such as one from a venv" )
21
+
19
22
# User settings for Firebase integration tests.
20
23
# Path to Firebase SDK.
21
24
# Try to read the path to the Firebase C++ SDK from an environment variable.
@@ -39,7 +42,7 @@ endif()
39
42
if (NOT ANDROID )
40
43
if (EXISTS ${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py )
41
44
# If this is running from inside the SDK directory, run the setup script.
42
- execute_process (COMMAND "python" "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
45
+ execute_process (COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
43
46
endif ()
44
47
endif ()
45
48
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function(binary_to_array NAME INPUT CPP_NAMESPACE OUTPUT_DIRECTORY)
39
39
OUTPUT ${output_source}
40
40
${output_header}
41
41
DEPENDS ${INPUT}
42
- COMMAND python "${FIREBASE_SCRIPT_DIR} /binary_to_array.py"
42
+ COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${FIREBASE_SCRIPT_DIR} /binary_to_array.py"
43
43
"--input=${INPUT} "
44
44
"--output_header=${output_header} "
45
45
"--output_source=${output_source} "
@@ -49,4 +49,4 @@ function(binary_to_array NAME INPUT CPP_NAMESPACE OUTPUT_DIRECTORY)
49
49
"--filename_identifier=${NAME} _filename"
50
50
COMMENT "Generating ${NAME} "
51
51
)
52
- endfunction ()
52
+ endfunction ()
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ function(download_external_sources)
123
123
endif ()
124
124
125
125
execute_process (
126
- COMMAND "python" "${PROJECT_SOURCE_DIR} /scripts/patch_websockets.py"
126
+ COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${PROJECT_SOURCE_DIR} /scripts/patch_websockets.py"
127
127
"-file" "${PROJECT_BINARY_DIR} /external/src/uWebSockets/src/Socket.h"
128
128
"-cmakefile" "${PROJECT_SOURCE_DIR} /cmake/external/uWebSockets.cmake"
129
129
RESULT_VARIABLE STATUS )
Original file line number Diff line number Diff line change 16
16
17
17
cmake_minimum_required (VERSION 2.8 )
18
18
19
+ set (FIREBASE_PYTHON_EXECUTABLE "python" CACHE FILEPATH
20
+ "The Python interpreter to use, such as one from a venv" )
21
+
19
22
# User settings for Firebase integration tests.
20
23
# Path to Firebase SDK.
21
24
# Try to read the path to the Firebase C++ SDK from an environment variable.
@@ -39,7 +42,7 @@ endif()
39
42
if (NOT ANDROID )
40
43
if (EXISTS ${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py )
41
44
# If this is running from inside the SDK directory, run the setup script.
42
- execute_process (COMMAND "python" "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
45
+ execute_process (COMMAND ${FIREBASE_PYTHON_EXECUTABLE} "${CMAKE_CURRENT_LIST_DIR} /../../setup_integration_tests.py" "${CMAKE_CURRENT_LIST_DIR} " )
43
46
endif ()
44
47
endif ()
45
48
You can’t perform that action at this time.
0 commit comments