Skip to content

Commit

Permalink
[cmake] fix generating addon.xmls
Browse files Browse the repository at this point in the history
get rid of double copying addons
  • Loading branch information
wsnipex committed Sep 4, 2019
1 parent cdcabff commit 275772b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -223,6 +223,7 @@ add_custom_command(OUTPUT ${CORE_BUILD_DIR}/xbmc/CompileInfo.cpp
-Dprefix=${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}
-P ${CMAKE_SOURCE_DIR}/cmake/scripts/common/GenerateVersionedFiles.cmake
DEPENDS ${CMAKE_SOURCE_DIR}/version.txt
export-files
${ADDON_XML_DEPENDS}
${CMAKE_SOURCE_DIR}/xbmc/CompileInfo.cpp.in)
list(APPEND install_data ${ADDON_INSTALL_DATA})
Expand Down
3 changes: 0 additions & 3 deletions cmake/scripts/common/GenerateVersionedFiles.cmake
Expand Up @@ -24,9 +24,6 @@ foreach(loop_var ${ADDON_XML_IN_FILE})
string(REPLACE ${CORE_SOURCE_DIR} ${CMAKE_BINARY_DIR} dest_dir ${source_dir})
file(MAKE_DIRECTORY ${dest_dir})

# copy everything except addon.xml.in to build folder
file(COPY "${source_dir}" DESTINATION "${CMAKE_BINARY_DIR}/addons" REGEX ".xml.in" EXCLUDE)

configure_file(${source_dir}/addon.xml.in ${dest_dir}/addon.xml @ONLY)

unset(source_dir)
Expand Down

0 comments on commit 275772b

Please sign in to comment.