Fix CMakeLists.txt 25/98125/3
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 16 Nov 2016 07:46:20 +0000 (16:46 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 16 Nov 2016 12:00:35 +0000 (21:00 +0900)
To make extendible for adding source & header files.

Change-Id: I75df264d02402ddd9c9292a16646d0946fd906a3
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/common/CMakeLists.txt

index 59e4e47..347d22d 100644 (file)
 # Target - sources
-SET(SRCS
-  privileges.cc
-  app_installer.cc
-  certificate_validation.cc
-  external_mount.cc
-  external_storage.cc
-  feature_validator.cc
-  installer_context.cc
-  paths.cc
-  pkgdir_tool_request.cc
-  plugins/plugin_factory.cc
-  plugins/plugin_manager.cc
-  plugins/plugin_list_parser.cc
-  plugins/plugin_xml_parser.cc
-  plugins/plugin_factory.cc
-  plugins/plugin.cc
-  plugins/types/category_plugin.cc
-  plugins/types/metadata_plugin.cc
-  plugins/types/tag_plugin.cc
-  pkgmgr_interface.cc
-  pkgmgr_registration.cc
-  pkgmgr_signal.cc
-  pkgmgr_query.cc
-  rds_parser.cc
-  recovery_file.cc
-  request.cc
-  security_registration.cc
-  shared_dirs.cc
-  step/backup/step_backup_icons.cc
-  step/backup/step_backup_manifest.cc
-  step/backup/step_copy_backup.cc
-  step/configuration/step_block_cross_update.cc
-  step/configuration/step_check_tizen_version.cc
-  step/configuration/step_configure.cc
-  step/configuration/step_fail.cc
-  step/configuration/step_parse_manifest.cc
-  step/configuration/step_parse_preload.cc
-  step/filesystem/step_acquire_external_storage.cc
-  step/filesystem/step_optional_acquire_external_storage.cc
-  step/filesystem/step_change_owner.cc
-  step/filesystem/step_clear_data.cc
-  step/filesystem/step_copy.cc
-  step/filesystem/step_copy_storage_directories.cc
-  step/filesystem/step_copy_tep.cc
-  step/filesystem/step_create_globalapp_symlinks.cc
-  step/filesystem/step_create_icons.cc
-  step/filesystem/step_create_per_user_storage_directories.cc
-  step/filesystem/step_create_legacy_directories.cc
-  step/filesystem/step_create_storage_directories.cc
-  step/filesystem/step_delta_patch.cc
-  step/filesystem/step_disable_external_mount.cc
-  step/filesystem/step_enable_external_mount.cc
-  step/filesystem/step_move_installed_storage.cc
-  step/filesystem/step_recover_change_owner.cc
-  step/filesystem/step_recover_files.cc
-  step/filesystem/step_recover_icons.cc
-  step/filesystem/step_recover_manifest.cc
-  step/filesystem/step_recover_external_storage.cc
-  step/filesystem/step_recover_storage_directories.cc
-  step/filesystem/step_remove_files.cc
-  step/filesystem/step_remove_globalapp_symlinks.cc
-  step/filesystem/step_remove_icons.cc
-  step/filesystem/step_remove_per_user_storage_directories.cc
-  step/filesystem/step_remove_legacy_directories.cc
-  step/filesystem/step_remove_temporary_directory.cc
-  step/filesystem/step_remove_tep.cc
-  step/filesystem/step_remove_zip_image.cc
-  step/filesystem/step_unzip.cc
-  step/filesystem/step_update_tep.cc
-  step/mount/step_mount_install.cc
-  step/mount/step_mount_recover.cc
-  step/mount/step_mount_unpacked.cc
-  step/mount/step_mount_update.cc
-  step/pkgmgr/step_check_removable.cc
-  step/pkgmgr/step_check_restriction.cc
-  step/pkgmgr/step_kill_apps.cc
-  step/pkgmgr/step_recover_application.cc
-  step/pkgmgr/step_register_app.cc
-  step/pkgmgr/step_remove_manifest.cc
-  step/pkgmgr/step_run_parser_plugins.cc
-  step/pkgmgr/step_unregister_app.cc
-  step/pkgmgr/step_update_app.cc
-  step/pkgmgr/step_update_pkg_disable_info.cc
-  step/rds/step_rds_modify.cc
-  step/rds/step_rds_parse.cc
-  step/recovery/step_open_recovery_file.cc
-  step/recovery/step_recovery.cc
-  step/security/step_check_background_category.cc
-  step/security/step_check_old_certificate.cc
-  step/security/step_check_signature.cc
-  step/security/step_privilege_compatibility.cc
-  step/security/step_recover_security.cc
-  step/security/step_recover_signature.cc
-  step/security/step_register_security.cc
-  step/security/step_revoke_security.cc
-  step/security/step_rollback_deinstallation_security.cc
-  step/security/step_rollback_installation_security.cc
-  step/security/step_update_security.cc
-  tzip_interface.cc
-  utils/base64.cc
-  utils/file_util.cc
-  utils/user_util.cc
-  utils/subprocess.cc
-)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} COMMON_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/backup COMMON_STEP_BACKUP_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/configuration COMMON_STEP_CONFIGURATION_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/filesystem COMMON_STEP_FILESYSTEM_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/mount COMMON_STEP_MOUNT_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/pkgmgr COMMON_STEP_PKGMGR_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/rds COMMON_STEP_RDS_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/recovery COMMON_STEP_RECOVERY_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/step/security COMMON_STEP_SECURITY_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/plugins COMMON_PLUGINS_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/plugins/types COMMON_PLUGINS_TYPES_SRCS)
+AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/utils COMMON_UTILS_SRCS)
 # Target - definition
-ADD_LIBRARY(${TARGET_LIBNAME_COMMON} SHARED ${SRCS})
+ADD_LIBRARY(${TARGET_LIBNAME_COMMON} SHARED
+       ${COMMON_SRCS}
+       ${COMMON_STEP_BACKUP_SRCS}
+       ${COMMON_STEP_CONFIGURATION_SRCS}
+       ${COMMON_STEP_FILESYSTEM_SRCS}
+       ${COMMON_STEP_MOUNT_SRCS}
+       ${COMMON_STEP_PKGMGR_SRCS}
+       ${COMMON_STEP_RDS_SRCS}
+       ${COMMON_STEP_RECOVERY_SRCS}
+       ${COMMON_STEP_SECURITY_SRCS}
+       ${COMMON_PLUGINS_SRCS}
+       ${COMMON_PLUGINS_TYPES_SRCS}
+       ${COMMON_UTILS_SRCS})
 # Target - includes
 TARGET_INCLUDE_DIRECTORIES(${TARGET_LIBNAME_COMMON} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../")
 # Target - deps