1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output)
3 ADD_SUBDIRECTORY(src/controls/js-bridge-plugin-deprecated)
4 ADD_SUBDIRECTORY(src/controls/js-bridge-plugin-tizen)
6 SET (this_target osp-web)
14 /usr/lib/glib-2.0/include
17 /usr/lib/dbus-1.0/include
24 /usr/include/eina-1/eina
25 /usr/include/elementary-1
28 /usr/include/ewebkit2-0
29 /usr/include/ewebkit2-0/WebKit2
30 /usr/include/libsoup-2.4
37 /usr/include/osp/security
38 /usr/include/osp/system
39 /usr/include/osp/graphics
40 /usr/include/osp/content
46 SET (${this_target}_SOURCE_FILES
47 src/FWebHistoryItem.cpp
48 src/FWeb_HistoryItemImpl.cpp
49 src/FWebWebHistory.cpp
50 src/FWeb_WebHistoryImpl.cpp
51 src/FWebBookmarkItem.cpp
52 src/FWeb_BookmarkItemImpl.cpp
53 src/FWebWebBookmark.cpp
54 src/FWeb_WebBookmarkImpl.cpp
55 src/controls/FWebCtrlWeb.cpp
56 src/controls/FWebCtrl_WebImpl.cpp
57 src/controls/FWebCtrl_AuthConfirmPopup.cpp
58 src/controls/FWebCtrl_Web.cpp
59 src/controls/FWebCtrl_EflWebkit.cpp
60 src/controls/FWebCtrl_WebEventArg.cpp
61 src/controls/FWebCtrl_WebEvent.cpp
62 src/controls/FWebCtrlPageNavigationList.cpp
63 src/controls/FWebCtrl_PageNavigationListImpl.cpp
64 src/controls/FWebCtrlWebSetting.cpp
65 src/controls/FWebCtrl_WebSettingImpl.cpp
66 src/controls/FWebCtrlHitElementResult.cpp
67 src/controls/FWebCtrl_HitElementResultImpl.cpp
68 src/controls/FWebCtrl_SelectBox.cpp
69 src/controls/FWebCtrlAuthenticationChallenge.cpp
70 src/controls/FWebCtrl_AuthenticationChallengeImpl.cpp
71 src/controls/FWebCtrl_WebMaker.cpp
72 src/controls/FWebCtrl_AppControlListener.cpp
73 src/controls/FWebCtrl_WebPresenter.cpp
74 src/controls/FWebCtrl_PromptPopup.cpp
75 src/controls/FWebCtrl_Utility.cpp
76 src/controls/FWebCtrl_GestureState.cpp
77 src/controls/FWebCtrl_WebDataHandler.cpp
78 src/controls/FWebCtrlGeolocationPermissionManager.cpp
79 src/controls/FWebCtrl_GeolocationPermissionManagerImpl.cpp
80 src/controls/FWebCtrl_InputPickerPopup.cpp
81 src/controls/FWebCtrl_UserConfirmPopup.cpp
82 src/controls/FWebCtrl_WebPopup.cpp
83 src/controls/FWebCtrl_CertificateConfirmPopup.cpp
84 src/controls/FWebCtrlWebStorageManager.cpp
85 src/controls/FWebCtrl_WebStorageManagerImpl.cpp
86 src/controls/FWebCtrl_WebNotification.cpp
87 src/controls/FWebCtrl_WebNotificationHandler.cpp
88 src/controls/FWebCtrl_FormDataWindow.cpp
91 ADD_DEFINITIONS(${OSP_DEFINITIONS} -D_MODEL_RES_WVGA)
93 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" )
95 ## SET C COMPILER FLAGS
96 SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
98 ## SET CPP COMPILER FLAGS
99 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
100 SET(CMAKE_CXX_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}")
103 ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES})
106 SET(CMAKE_SHARED_LINKER_FLAGS -Wl,--no-undefined)
108 TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" )
109 TARGET_LINK_LIBRARIES(${this_target} "-losp-content" )
110 TARGET_LINK_LIBRARIES(${this_target} "-losp-json" )
111 TARGET_LINK_LIBRARIES(${this_target} "-losp-uifw" )
112 TARGET_LINK_LIBRARIES(${this_target} "-losp-image" )
113 TARGET_LINK_LIBRARIES(${this_target} "-losp-media" )
114 TARGET_LINK_LIBRARIES(${this_target} "-losp-net" )
115 TARGET_LINK_LIBRARIES(${this_target} "-lecore" )
116 TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf" )
117 TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf_evas" )
118 TARGET_LINK_LIBRARIES(${this_target} "-lelementary" )
119 TARGET_LINK_LIBRARIES(${this_target} "-levas" )
120 TARGET_LINK_LIBRARIES(${this_target} "-leina" )
121 TARGET_LINK_LIBRARIES(${this_target} "-lewebkit2" )
122 TARGET_LINK_LIBRARIES(${this_target} "-lcapi-web-favorites" )
123 TARGET_LINK_LIBRARIES(${this_target} "-lcapi-network-connection" )
124 TARGET_LINK_LIBRARIES(${this_target} "-lpthread" )
125 TARGET_LINK_LIBRARIES(${this_target} "-lvconf" )
127 SET_TARGET_PROPERTIES(${this_target}
130 SOVERSION ${MAJORVER}
131 CLEAN_DIRECT_OUTPUT 1
134 ADD_CUSTOM_COMMAND(TARGET ${this_target}
136 COMMAND ${CMAKE_COMMAND} -E copy ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${FULLVER}
137 COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${FULLVER} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${MAJORVER}
138 COMMAND ${CMAKE_STRIP} --strip-unneeded ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}
139 COMMENT "strip ${this_target}"
142 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
143 FILES_MATCHING PATTERN "libosp-*"
144 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
145 GROUP_EXECUTE GROUP_READ
146 WORLD_EXECUTE WORLD_READ)
147 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp/browser-plugin
148 FILES_MATCHING PATTERN "libweb-*"
149 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
150 GROUP_EXECUTE GROUP_READ
151 WORLD_EXECUTE WORLD_READ)
153 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug
154 FILES_MATCHING PATTERN "libosp-*"
155 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
156 GROUP_EXECUTE GROUP_READ
157 WORLD_EXECUTE WORLD_READ)
158 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/browser-plugin/debug
159 FILES_MATCHING PATTERN "libweb-*"
160 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
161 GROUP_EXECUTE GROUP_READ
162 WORLD_EXECUTE WORLD_READ)
165 INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h")
168 CONFIGURE_FILE(${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY)
169 INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION lib/pkgconfig)