dummy_libraries: generate output file containing libraries that were dummified during compilation

parent a885fa9b
......@@ -24,6 +24,7 @@ cmake_minimum_required(VERSION 3.0)
project(DUMMY_LIBRARIES)
string(REPLACE " " ";" LINPHONE_BUILDER_DUMMY_LIBRARIES ${LINPHONE_BUILDER_DUMMY_LIBRARIES})
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/dummy_libraries.txt" "")
foreach(LIB ${LINPHONE_BUILDER_DUMMY_LIBRARIES})
string(REPLACE "-" "_" UNDERSCORE_LIB ${LIB})
string(REGEX REPLACE "^lib" "" NOPREFIX_LIB ${LIB})
......@@ -40,6 +41,7 @@ foreach(LIB ${LINPHONE_BUILDER_DUMMY_LIBRARIES})
ARCHIVE DESTINATION ${_dest}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
file(APPEND "${CMAKE_CURRENT_BINARY_DIR}/dummy_libraries.txt" "${LIB}\n")
endif()
unset(_dest)
endforeach()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment