diff options
author | montellese <montellese@kodi.tv> | 2015-07-24 19:09:57 +0200 |
---|---|---|
committer | montellese <montellese@kodi.tv> | 2015-07-24 19:09:57 +0200 |
commit | 5286e8f50917d14d54d77bcf0ddd54e10496927e (patch) | |
tree | 37d36099a3fc19ebdd1bc6a2225bb2d328697644 /project | |
parent | 4b19f7aa3de7c3393a2dc1ccaf138e4aeae621fd (diff) |
[binary addons] turn PACKAGE_ZIP into a proper cmake option
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/addons/CMakeLists.txt | 3 | ||||
-rw-r--r-- | project/cmake/addons/README | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/project/cmake/addons/CMakeLists.txt b/project/cmake/addons/CMakeLists.txt index 27cd4b3a64..1492a4aadc 100644 --- a/project/cmake/addons/CMakeLists.txt +++ b/project/cmake/addons/CMakeLists.txt @@ -78,9 +78,10 @@ if(MSVC) set_property(GLOBAL PROPERTY USE_FOLDERS ON) endif() +option(PACKAGE_ZIP "Prepare built addons for packaging" OFF) if(PACKAGE_ZIP) # needed for project installing - list(APPEND BUILD_ARGS -DPACKAGE_ZIP=1) + list(APPEND BUILD_ARGS -DPACKAGE_ZIP=ON) MESSAGE(STATUS "ZIP packaging enabled") endif() diff --git a/project/cmake/addons/README b/project/cmake/addons/README index b901bb7a7b..4f34a70158 100644 --- a/project/cmake/addons/README +++ b/project/cmake/addons/README @@ -45,7 +45,7 @@ specific paths: absolute representation of ../../.. starting from this directory). * BUILD_DIR points to the directory where the addons and their dependencies will be downloaded and built. - * PACKAGE_ZIP=1 will mean the add-ons will be 'packaged' into a common folder, + * PACKAGE_ZIP=ON means that the add-ons will be 'packaged' into a common folder, rather than being placed in <CMAKE_INSTALL_PREFIX>/lib/kodi/addons and <CMAKE_INSTALL_PREFIX>/share/kodi/addons. * ARCH_DEFINES specifies the platform-specific C/C++ preprocessor defines |