blob: 815bc60e1b7e1db66eb25f51a0834eb6bcd529c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET (this_target osp-installer)
SET(CMAKE_EXECUTABLE_SUFFIX "")
SET(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/output")
INCLUDE_DIRECTORIES(
inc
src/Context
src/Installer
src/Manager
src/XmlHandler
src/Step
src/Util
/usr/include/glib-2.0
/usr/lib/glib-2.0/include
/usr/include/dlog
/usr/include/pkgmgr
/usr/include/appfw
/usr/include/osp
/usr/include/osp/app
/usr/include/osp/base
/usr/include/osp/io
/usr/include/osp/security
/usr/include/osp/system
/usr/include/libxml2
/usr/include/system
/usr/include/drm-intel
)
SET (${this_target}_SOURCE_FILES
src/Context/DrmLicense.cpp
src/Context/InstallationContext.cpp
src/Installer/DirectoryInstaller.cpp
src/Installer/GuestInstaller.cpp
src/Installer/IDEInstaller.cpp
src/Installer/Installer.cpp
src/Installer/PackageInstaller.cpp
src/Installer/PreloadedInstaller.cpp
src/Installer/RestorationInstaller.cpp
src/Manager/ConfigurationManager.cpp
src/Manager/InstallerManager.cpp
src/Manager/PermissionManager.cpp
src/Manager/SignatureManager.cpp
src/Step/DrmStep.cpp
src/Step/IInstallationStep.cpp
src/Step/LicenseStep.cpp
src/Step/ManifestXmlStep.cpp
src/Step/PackageCheckStep.cpp
src/Step/SignatureStep.cpp
src/Step/SystemCheckStep.cpp
src/Step/UninstallStep.cpp
src/Step/UnpackStep.cpp
src/XmlHandler/ManifestGenerator.cpp
src/XmlHandler/ManifestHandler.cpp
src/XmlHandler/SignatureHandler.cpp
src/XmlHandler/XmlAttribute.cpp
src/XmlHandler/XmlHandler.cpp
src/XmlHandler/XmlWriter.cpp
src/XmlHandler/PrivilegeHandler.cpp
src/backend/backend.cpp
src/Util/InstallerUtil.cpp
)
ADD_EXECUTABLE (${this_target} ${${this_target}_SOURCE_FILES})
SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw -lxml2 -lpkgmgr_installer -lpkgmgr_parser -lglib-2.0 -lapp2ext" -Wl,--allow-shlib-undefined)
TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib -ldrm-service-core-intel")
ADD_SUBDIRECTORY(plugin)
INSTALL(TARGETS ${this_target} DESTINATION bin)
|