1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
3 SET(CMAKE_INSTALL_PREFIX /usr)
4 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
7 SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/osp)
8 SET(ROOT_DIR ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output)
10 ## Disable build rpath
11 SET(CMAKE_SKIP_BUILD_RPATH TRUE)
14 ADD_DEFINITIONS("-D_EXCEPT_DEPENDENCY_")
18 ADD_DEFINITIONS("-D_SBS_")
21 ## Set Assembly Compiler
22 #SET(CMAKE_ASM_COMPILER "${CMAKE_C_COMPILER}")
24 SET(CMAKE_ASM_COMPILER_ARG1 "${CPPFLAGS} -c")
28 LINK_DIRECTORIES (${LIBRARY_OUTPUT_PATH})
32 INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-appfw.pc DESTINATION lib/pkgconfig)
33 INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-appfw-server.pc DESTINATION lib/pkgconfig)
34 INSTALL(FILES ${CMAKE_SOURCE_DIR}/osp-system-server.pc DESTINATION lib/pkgconfig)
35 INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/common/etc/ld.so.conf.d/osp.conf DESTINATION ../etc/ld.so.conf.d)
37 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output/target/generic/root/usr/share/locale DESTINATION share)
38 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
39 FILES_MATCHING PATTERN "libosp-appfw.so*"
40 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
41 GROUP_EXECUTE GROUP_READ
42 WORLD_EXECUTE WORLD_READ)
43 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
44 FILES_MATCHING PATTERN "libosp-newlib.so*"
45 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
46 GROUP_EXECUTE GROUP_READ
47 WORLD_EXECUTE WORLD_READ)
48 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp-server
49 FILES_MATCHING PATTERN "libosp-appfw-server.so*"
50 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
51 GROUP_EXECUTE GROUP_READ
52 WORLD_EXECUTE WORLD_READ)
53 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp-server
54 FILES_MATCHING PATTERN "libosp-system-server.so*"
55 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
56 GROUP_EXECUTE GROUP_READ
57 WORLD_EXECUTE WORLD_READ)
58 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
59 FILES_MATCHING PATTERN "*" PATTERN "libosp-*-server.so*" EXCLUDE
60 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
61 GROUP_EXECUTE GROUP_READ
62 WORLD_EXECUTE WORLD_READ)
64 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/opt/usr/etc DESTINATION ../opt/usr)
65 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/common/usr/bin DESTINATION ../usr)
66 IF("${ARCH}" MATCHES "arm")
67 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/arm/usr/etc DESTINATION ../usr)
68 ELSEIF("${ARCH}" MATCHES "x86")
69 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/res/x86/usr/etc DESTINATION ../usr)
70 ENDIF("${ARCH}" MATCHES "arm")
72 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
73 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/app/inc/ DESTINATION include/osp/app FILES_MATCHING PATTERN "*.h")
74 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/base/inc/ DESTINATION include/osp/base FILES_MATCHING PATTERN "*.h")
75 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/io/inc/ DESTINATION include/osp/io FILES_MATCHING PATTERN "*.h")
76 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/locales/inc/ DESTINATION include/osp/locales FILES_MATCHING PATTERN "*.h")
77 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/security/inc/ DESTINATION include/osp/security FILES_MATCHING PATTERN "*.h")
78 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/system/inc/ DESTINATION include/osp/system FILES_MATCHING PATTERN "*.h")
79 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/text/inc/ DESTINATION include/osp/text FILES_MATCHING PATTERN "*.h")
80 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/server/appfw/inc/ DESTINATION include/osp/server/appfw/ FILES_MATCHING PATTERN "*.h")
81 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/src/server/system/inc/ DESTINATION include/osp/server/system/ FILES_MATCHING PATTERN "*.h")