Update Python target name to Python3
This commit is contained in:
parent
52e9990d32
commit
db348598a1
|
@ -206,7 +206,7 @@ endif()
|
||||||
if (CMAKE_EXPORT_COMPILE_COMMANDS AND WITH_PYTHON)
|
if (CMAKE_EXPORT_COMPILE_COMMANDS AND WITH_PYTHON)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/contrib/gen_compile_db.py
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/contrib/gen_compile_db.py
|
||||||
ARGS -b ${CMAKE_CURRENT_BINARY_DIR} -s ${CMAKE_CURRENT_SOURCE_DIR} -o ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
|
ARGS -b ${CMAKE_CURRENT_BINARY_DIR} -s ${CMAKE_CURRENT_SOURCE_DIR} -o ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/gen_compile_db.py ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/gen_compile_db.py ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
|
||||||
COMMENT "Build compile commands for IDE"
|
COMMENT "Build compile commands for IDE"
|
||||||
|
|
|
@ -29,7 +29,7 @@ if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${asm_file} ${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h
|
add_custom_command(OUTPUT ${asm_file} ${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/generate_asm.py ${os} ${cpu}
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/generate_asm.py ${os} ${cpu}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/fdb_c.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/fdb_c.cpp
|
||||||
${asm_file}
|
${asm_file}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h
|
${CMAKE_CURRENT_BINARY_DIR}/fdb_c_function_pointers.g.h
|
||||||
|
@ -65,7 +65,7 @@ endif()
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(symbols ${CMAKE_CURRENT_BINARY_DIR}/fdb_c.symbols)
|
set(symbols ${CMAKE_CURRENT_BINARY_DIR}/fdb_c.symbols)
|
||||||
add_custom_command(OUTPUT ${symbols}
|
add_custom_command(OUTPUT ${symbols}
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/symbolify.py
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/symbolify.py
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/foundationdb/fdb_c.h
|
${CMAKE_CURRENT_SOURCE_DIR}/foundationdb/fdb_c.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/foundationdb/fdb_c_internal.h
|
${CMAKE_CURRENT_SOURCE_DIR}/foundationdb/fdb_c_internal.h
|
||||||
${symbols}
|
${symbols}
|
||||||
|
@ -457,7 +457,7 @@ elseif(NOT WIN32 AND NOT APPLE AND NOT USE_UBSAN) # Linux Only, non-ubsan only
|
||||||
)
|
)
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${SHIM_LIB_GEN_SRC}
|
add_custom_command(OUTPUT ${SHIM_LIB_GEN_SRC}
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${IMPLIBSO_SRC_DIR}/implib-gen.py
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${IMPLIBSO_SRC_DIR}/implib-gen.py
|
||||||
--target ${CMAKE_SYSTEM_PROCESSOR}
|
--target ${CMAKE_SYSTEM_PROCESSOR}
|
||||||
--outdir ${SHIM_LIB_OUTPUT_DIR}
|
--outdir ${SHIM_LIB_OUTPUT_DIR}
|
||||||
--dlopen-callback=fdb_shim_dlopen_callback
|
--dlopen-callback=fdb_shim_dlopen_callback
|
||||||
|
@ -484,7 +484,7 @@ elseif(NOT WIN32 AND NOT APPLE AND NOT USE_UBSAN) # Linux Only, non-ubsan only
|
||||||
target_include_directories(fdb_c_shim_lib_tester PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/foundationdb/ ${CMAKE_SOURCE_DIR}/flow/include)
|
target_include_directories(fdb_c_shim_lib_tester PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/foundationdb/ ${CMAKE_SOURCE_DIR}/flow/include)
|
||||||
|
|
||||||
add_test(NAME fdb_c_shim_library_tests
|
add_test(NAME fdb_c_shim_library_tests
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/test/fdb_c_shim_tests.py
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${CMAKE_CURRENT_SOURCE_DIR}/test/fdb_c_shim_tests.py
|
||||||
--build-dir ${CMAKE_BINARY_DIR}
|
--build-dir ${CMAKE_BINARY_DIR}
|
||||||
--unit-tests-bin $<TARGET_FILE:fdb_c_shim_unit_tests>
|
--unit-tests-bin $<TARGET_FILE:fdb_c_shim_unit_tests>
|
||||||
--api-tester-bin $<TARGET_FILE:fdb_c_shim_api_tester>
|
--api-tester-bin $<TARGET_FILE:fdb_c_shim_api_tester>
|
||||||
|
|
|
@ -68,7 +68,7 @@ endif()
|
||||||
set(setup_file_name foundationdb-${FDB_VERSION}.tar.gz)
|
set(setup_file_name foundationdb-${FDB_VERSION}.tar.gz)
|
||||||
set(package_file ${CMAKE_BINARY_DIR}/packages/foundationdb-${FDB_VERSION}${not_fdb_release_string}.tar.gz)
|
set(package_file ${CMAKE_BINARY_DIR}/packages/foundationdb-${FDB_VERSION}${not_fdb_release_string}.tar.gz)
|
||||||
add_custom_command(OUTPUT ${package_file}
|
add_custom_command(OUTPUT ${package_file}
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> setup.py sdist --formats=gztar &&
|
COMMAND $<TARGET_FILE:Python3::Interpreter> setup.py sdist --formats=gztar &&
|
||||||
${CMAKE_COMMAND} -E copy dist/${setup_file_name} ${package_file}
|
${CMAKE_COMMAND} -E copy dist/${setup_file_name} ${package_file}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMENT "Create Python sdist package")
|
COMMENT "Create Python sdist package")
|
||||||
|
|
|
@ -125,7 +125,7 @@ function(add_fdb_test)
|
||||||
list(TRANSFORM ADD_FDB_TEST_TEST_FILES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
|
list(TRANSFORM ADD_FDB_TEST_TEST_FILES PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
|
||||||
if (ENABLE_SIMULATION_TESTS)
|
if (ENABLE_SIMULATION_TESTS)
|
||||||
add_test(NAME ${test_name}
|
add_test(NAME ${test_name}
|
||||||
COMMAND $<TARGET_FILE:Python::Interpreter> ${TestRunner}
|
COMMAND $<TARGET_FILE:Python3::Interpreter> ${TestRunner}
|
||||||
-n ${test_name}
|
-n ${test_name}
|
||||||
-b ${PROJECT_BINARY_DIR}
|
-b ${PROJECT_BINARY_DIR}
|
||||||
-t ${test_type}
|
-t ${test_type}
|
||||||
|
|
Loading…
Reference in New Issue