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