[Recovery] StepRecoverStorageDirectories
[platform/core/appfw/app-installers.git] / src / common / CMakeLists.txt
1 # Target - sources
2 SET(SRCS
3   app_installer.cc
4   context_installer.cc
5   pkgmgr_interface.cc
6   pkgmgr_registration.cc
7   pkgmgr_signal.cc
8   recovery_file.cc
9   security_registration.cc
10   step/step_backup_icons.cc
11   step/step_backup_manifest.cc
12   step/step_unzip.cc
13   step/step_create_icons.cc
14   step/step_check_old_certificate.cc
15   step/step_check_signature.cc
16   step/step_configure.cc
17   step/step_copy.cc
18   step/step_copy_backup.cc
19   step/step_copy_storage_directories.cc
20   step/step_create_storage_directories.cc
21   step/step_generate_xml.cc
22   step/step_recover_files.cc
23   step/step_recover_icons.cc
24   step/step_recover_manifest.cc
25   step/step_recover_storage_directories.cc
26   step/step_recovery.cc
27   step/step_register_app.cc
28   step/step_old_manifest.cc
29   step/step_open_recovery_file.cc
30   step/step_parse.cc
31   step/step_remove_icons.cc
32   step/step_remove_files.cc
33   step/step_revoke_security.cc
34   step/step_register_security.cc
35   step/step_unregister_app.cc
36   step/step_update_app.cc
37   step/step_update_security.cc
38   utils/file_util.cc
39   utils/string_util.cc
40 )
41 # Target - definition
42 ADD_LIBRARY(${TARGET_LIBNAME_COMMON} SHARED ${SRCS})
43 # Target - includes
44 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_COMMON} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
45 # Target - deps
46 APPLY_PKG_CONFIG(${TARGET_LIBNAME_COMMON} PUBLIC
47   PKGMGR_DEPS
48   PKGMGR_INFO_DEPS
49   PKGMGR_PARSER_DEPS
50   PKGMGR_INSTALLER_DEPS
51   SECURITY_MANAGER_DEPS
52   TZPLATFORM_CONFIG_DEPS
53   LIBXML_DEPS
54   CERT_SVC_DEPS_VCORE
55   MINIZIP_DEPS
56   ZLIB_DEPS
57   PRIVILEGE_CHECKER_DEPS
58   Boost
59 )
60
61 # Extra
62 SET_TARGET_PROPERTIES(${TARGET_LIBNAME_COMMON} PROPERTIES VERSION ${VERSION})
63 SET_TARGET_PROPERTIES(${TARGET_LIBNAME_COMMON} PROPERTIES SOVERSION ${VERSION_MAJOR})
64
65 # Install
66 INSTALL(TARGETS ${TARGET_LIBNAME_COMMON} DESTINATION ${LIB_INSTALL_DIR})