CMAKE_MINIMUM_REQUIRED(VERSION 2.6) SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output) ADD_SUBDIRECTORY(src/controls/js-bridge-plugin-deprecated) ADD_SUBDIRECTORY(src/controls/js-bridge-plugin-tizen) SET (this_target osp-web) INCLUDE_DIRECTORIES( inc src src/controls /usr/include/appfw /usr/include/glib-2.0 /usr/lib/glib-2.0/include /usr/include/curl /usr/include/dbus-1.0 /usr/lib/dbus-1.0/include /usr/include/e_dbus-1 /usr/include/ecore-1 /usr/include/edje-1 /usr/include/eet-1 /usr/include/efreet-1 /usr/include/eina-1 /usr/include/eina-1/eina /usr/include/elementary-1 /usr/include/ethumb-1 /usr/include/evas-1 /usr/include/ewebkit2-0 /usr/include/ewebkit2-0/WebKit2 /usr/include/libsoup-2.4 /usr/include/network /usr/include/osp /usr/include/osp/app /usr/include/osp/base /usr/include/osp/io /usr/include/osp/net /usr/include/osp/security /usr/include/osp/system /usr/include/osp/graphics /usr/include/osp/content /usr/include/osp/ui /usr/include/web /usr/include/vconf ) SET (${this_target}_SOURCE_FILES src/FWebHistoryItem.cpp src/FWeb_HistoryItemImpl.cpp src/FWebWebHistory.cpp src/FWeb_WebHistoryImpl.cpp src/FWebBookmarkItem.cpp src/FWeb_BookmarkItemImpl.cpp src/FWebWebBookmark.cpp src/FWeb_WebBookmarkImpl.cpp src/controls/FWebCtrlWeb.cpp src/controls/FWebCtrl_WebImpl.cpp src/controls/FWebCtrl_AuthConfirmPopup.cpp src/controls/FWebCtrl_Web.cpp src/controls/FWebCtrl_EflWebkit.cpp src/controls/FWebCtrl_WebEventArg.cpp src/controls/FWebCtrl_WebEvent.cpp src/controls/FWebCtrlPageNavigationList.cpp src/controls/FWebCtrl_PageNavigationListImpl.cpp src/controls/FWebCtrlWebSetting.cpp src/controls/FWebCtrl_WebSettingImpl.cpp src/controls/FWebCtrlHitElementResult.cpp src/controls/FWebCtrl_HitElementResultImpl.cpp src/controls/FWebCtrl_SelectBox.cpp src/controls/FWebCtrlAuthenticationChallenge.cpp src/controls/FWebCtrl_AuthenticationChallengeImpl.cpp src/controls/FWebCtrl_WebMaker.cpp src/controls/FWebCtrl_AppControlListener.cpp src/controls/FWebCtrl_WebPresenter.cpp src/controls/FWebCtrl_PromptPopup.cpp src/controls/FWebCtrl_Utility.cpp src/controls/FWebCtrl_GestureState.cpp src/controls/FWebCtrl_WebDataHandler.cpp src/controls/FWebCtrlGeolocationPermissionManager.cpp src/controls/FWebCtrl_GeolocationPermissionManagerImpl.cpp src/controls/FWebCtrl_InputPickerPopup.cpp src/controls/FWebCtrl_UserConfirmPopup.cpp src/controls/FWebCtrl_WebPopup.cpp src/controls/FWebCtrl_CertificateConfirmPopup.cpp src/controls/FWebCtrlWebStorageManager.cpp src/controls/FWebCtrl_WebStorageManagerImpl.cpp src/controls/FWebCtrl_WebNotification.cpp src/controls/FWebCtrl_WebNotificationHandler.cpp ) ## Add Definitions ADD_DEFINITIONS(${OSP_DEFINITIONS} -D_MODEL_RES_WVGA) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" ) ## SET C COMPILER FLAGS SET(CMAKE_C_FLAGS "${OSP_DEBUG_FLAGS} ${OSP_OPT_FLAGS} ${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} ${OSP_COMPILER_FLAGS}") ## SET CPP 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}") ## Create Library ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES}) ## SET LINKER FLAGS SET(CMAKE_SHARED_LINKER_FLAGS -Wl,--no-undefined) TARGET_LINK_LIBRARIES(${this_target} "-L/usr/lib/osp -losp-appfw" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-content" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-json" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-uifw" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-image" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-media" ) TARGET_LINK_LIBRARIES(${this_target} "-losp-net" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf" ) TARGET_LINK_LIBRARIES(${this_target} "-lecore_imf_evas" ) TARGET_LINK_LIBRARIES(${this_target} "-lelementary" ) TARGET_LINK_LIBRARIES(${this_target} "-levas" ) TARGET_LINK_LIBRARIES(${this_target} "-leina" ) TARGET_LINK_LIBRARIES(${this_target} "-lewebkit2" ) TARGET_LINK_LIBRARIES(${this_target} "-lcapi-web-favorites" ) TARGET_LINK_LIBRARIES(${this_target} "-lcapi-network-connection" ) TARGET_LINK_LIBRARIES(${this_target} "-lpthread" ) TARGET_LINK_LIBRARIES(${this_target} "-lvconf" ) SET_TARGET_PROPERTIES(${this_target} PROPERTIES VERSION ${FULLVER} SOVERSION ${MAJORVER} CLEAN_DIRECT_OUTPUT 1 ) ADD_CUSTOM_COMMAND(TARGET ${this_target} POST_BUILD 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} 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} COMMAND ${CMAKE_STRIP} --strip-unneeded ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX} COMMENT "strip ${this_target}" ) INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp FILES_MATCHING PATTERN "libosp-*" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ) INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp/browser-plugin FILES_MATCHING PATTERN "libweb-*" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ) INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug FILES_MATCHING PATTERN "libosp-*" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ) INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/browser-plugin/debug FILES_MATCHING PATTERN "libweb-*" PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include/osp FILES_MATCHING PATTERN "*.h") # pkgconfig file CONFIGURE_FILE(${this_target}.pc.in ${CMAKE_SOURCE_DIR}/${this_target}.pc @ONLY) INSTALL(FILES ${CMAKE_SOURCE_DIR}/${this_target}.pc DESTINATION lib/pkgconfig)