1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 SET (this_target osp-installer)
5 SET(CMAKE_EXECUTABLE_SUFFIX "")
6 SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/output")
18 /usr/lib/glib-2.0/include
26 /usr/include/osp/security
27 /usr/include/osp/system
36 SET (${this_target}_SOURCE_FILES
37 src/Context/DrmLicense.cpp
38 src/Context/InstallationContext.cpp
39 src/Context/InstallationContextData.cpp
40 src/Installer/DirectoryInstaller.cpp
41 src/Installer/GuestInstaller.cpp
42 src/Installer/IDEInstaller.cpp
43 src/Installer/Installer.cpp
44 src/Installer/PackageInstaller.cpp
45 src/Installer/PreloadedInstaller.cpp
46 src/Installer/RestorationInstaller.cpp
47 src/Manager/CompatibilityManager.cpp
48 src/Manager/ConfigurationManager.cpp
49 src/Manager/DatabaseManager.cpp
50 src/Manager/InstallerManager.cpp
51 src/Manager/PermissionManager.cpp
52 src/Manager/SignatureManager.cpp
53 src/Manager/SmackManager.cpp
55 src/Step/IInstallationStep.cpp
56 src/Step/LicenseStep.cpp
57 src/Step/ManifestXmlStep.cpp
58 src/Step/PackageCheckStep.cpp
60 src/Step/SignatureStep.cpp
61 src/Step/SystemCheckStep.cpp
62 src/Step/UninstallStep.cpp
63 src/Step/UnpackStep.cpp
64 src/XmlHandler/ManifestGenerator.cpp
65 src/XmlHandler/ManifestHandler.cpp
66 src/XmlHandler/SignatureHandler.cpp
67 src/XmlHandler/XmlAttribute.cpp
68 src/XmlHandler/XmlHandler.cpp
69 src/XmlHandler/XmlWriter.cpp
70 src/XmlHandler/PrivilegeHandler.cpp
71 src/XmlHandler/Parser/ManifestParser.cpp
72 src/XmlHandler/Parser/ManifestAccountsParser.cpp
73 src/XmlHandler/Parser/ManifestAppControlsParser.cpp
74 src/XmlHandler/Parser/ManifestLiveboxesParser.cpp
75 src/backend/backend.cpp
76 src/Util/InstallerUtil.cpp
79 ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
81 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
82 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -fvisibility=hidden")
83 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
85 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lxml2 -lpkgmgr_installer -lpkgmgr_parser -lglib-2.0 -lapp2ext -ldl" -Wl,--allow-shlib-undefined)
86 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib -lcert-svc-vcore -ldpl-efl -lcert-svc -lcapi-system-info -lappcore-common -lpkgmgr-info -lvconf -lcap")
88 ADD_SUBDIRECTORY(plugin)
90 INSTALL(TARGETS ${this_target} DESTINATION bin)