Change order of steps in wgt as in tpk
[platform/core/appfw/wgt-backend.git] / src / wgt / CMakeLists.txt
1 # Target - sources
2 SET(SRCS
3   step/configuration/step_check_rds_manifest.cc
4   step/configuration/step_check_start_files.cc
5   step/configuration/step_parse.cc
6   step/encryption/step_encrypt_resources.cc
7   step/encryption/step_remove_encryption_data.cc
8   step/filesystem/step_copy_preview_icons.cc
9   step/filesystem/step_create_symbolic_link.cc
10   step/filesystem/step_wgt_patch_icons.cc
11   step/filesystem/step_wgt_patch_storage_directories.cc
12   step/filesystem/step_wgt_prepare_package_directory.cc
13   step/filesystem/step_wgt_resource_directory.cc
14   step/filesystem/step_wgt_update_package_directory.cc
15   step/pkgmgr/step_generate_xml.cc
16   step/security/step_add_default_privileges.cc
17   step/security/step_check_settings_level.cc
18   step/security/step_check_wgt_background_category.cc
19   step/security/step_check_wgt_notification_category.cc
20   step/security/step_check_wgt_ime_privilege.cc
21   step/security/step_direct_manifest_check_signature.cc
22   step/security/step_check_extension_privileges.cc
23   step/security/step_wgt_recover_signature.cc
24   wgt_app_query_interface.cc
25   wgt_installer.cc
26   extension_config_parser.cc
27 )
28
29 IF(WRT_LAUNCHER)
30     ADD_DEFINITIONS("-DWRT_LAUNCHER=\"${WRT_LAUNCHER}\"")
31     MESSAGE( "WRT LAUNCHER binary path is  set to ${WRT_LAUNCHER}")
32 ELSE(WRT_LAUNCHER)
33     MESSAGE(FATAL_ERROR, "WRT LAUNCHER binary path is not set")
34 ENDIF(WRT_LAUNCHER)
35
36 # Target - definition
37 ADD_LIBRARY(${TARGET_LIBNAME_WGT} STATIC ${SRCS})
38 # Target - includes
39 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_WGT} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
40 # Target - deps
41 APPLY_PKG_CONFIG(${TARGET_LIBNAME_WGT} PUBLIC
42   APP_INSTALLERS_DEPS
43   WGT_MANIFEST_HANDLERS_DEPS
44   MANIFEST_PARSER_DEPS
45   PKGMGR_INSTALLER_DEPS
46   ENCRYPTION_DEPS
47   Boost
48 )
49 SET_TARGET_PROPERTIES(${TARGET_LIBNAME_WGT} PROPERTIES COMPILE_FLAGS "-fPIC")