diff options
author | wsnipex <wsnipex@a1.net> | 2017-10-13 16:31:13 +0200 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2017-10-13 18:03:55 +0200 |
commit | e08b01dcd20ad742ab9fdc3ef085e6971126f7d0 (patch) | |
tree | 26939db1db5f61475f5e41b542f7ed12ecb3b69c /CMakeLists.txt | |
parent | f77b5adabdcf31029aa7c92baf541e90326b2337 (diff) |
[cmake] refactor addon bindings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 40ddec2f6a..2b28633bc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -421,11 +421,8 @@ if(CMAKE_GENERATOR STREQUAL "Unix Makefiles") endif() # Prepare add-on build env -core_file_read_filtered(bindings ${CMAKE_SOURCE_DIR}/xbmc/addons/addon-bindings.mk) -foreach(header ${bindings}) - get_filename_component(file ${header} NAME) - configure_file(${CMAKE_SOURCE_DIR}/${header} ${CORE_BUILD_DIR}/include/${APP_NAME_LC}/${file} COPYONLY) -endforeach() +include(${CORE_SOURCE_DIR}/xbmc/addons/AddonBindings.cmake) +file(COPY ${CORE_ADDON_BINDINGS_FILES} ${CORE_ADDON_BINDINGS_DIRS}/ DESTINATION ${CORE_BUILD_DIR}/include/${APP_NAME_LC}) file(GLOB_RECURSE ADDON_HEADERS RELATIVE ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi ${CORE_SOURCE_DIR}/xbmc/addons/kodi-addon-dev-kit/include/kodi/*.h) |