Change the log level INFO to DEBUG
[profile/tv/apps/web/browser.git] / core / CMakeLists.txt
1 project(browserApp)
2
3 include(Coreheaders)
4 include(EFLHelpers)
5 include(EWebKitHelpers)
6
7 find_package(PNG REQUIRED)
8
9 include_directories(
10     ${CMAKE_SOURCE_DIR}
11     ${CMAKE_BINARY_DIR}
12     ${PNG_INCLUDE_DIRS}
13     )
14
15 ### browserCore library
16 ### current platform CMake desn't support clean o build
17 set(browserCore_SRCS
18     BasicUI/EAction.cpp
19     BasicUI/Action.cpp
20     BasicUI/MenuButton.cpp
21     Config/Config.cpp
22     Logger/Logger.cpp
23     Logger/LoggerTools.cpp
24     Logger/TextLogger.cpp
25     Logger/Useloggers.cpp
26     ServiceManager/Debug/BrowserAssert.cpp
27     ServiceManager/Debug/Type.cpp
28     ServiceManager/ServiceFactory.cpp
29     ServiceManager/ServiceLib.cpp
30     ServiceManager/ServiceLoader.cpp
31     ServiceManager/ServiceManager.cpp
32     AbstractWebEngine/TabId.cpp
33     AbstractWebEngine/TabThumbCache.cpp
34     AbstractWebEngine/WebConfirmation.cpp
35     Tools/EflTools.cpp
36     Tools/BrowserImage.cpp
37     Tools/Blob.cpp
38     Tools/BookmarkItem.cpp
39     Tools/FeedItem.cpp
40     Tools/FeedChannel.cpp
41     BrowserConstants.cpp
42     )
43
44 if(TIZEN_BUILD)
45     set(browserCore_SRCS
46         ${browserCore_SRCS}
47         Logger/DLOGLogger.cpp
48         )
49 endif(TIZEN_BUILD)
50
51 set(browserCore_HDRS
52     AbstractInterfaces/AbstractServiceDefinition.h
53     AbstractInterfaces/AbstractUIComponent.h
54     AbstractInterfaces/AbstractFavoriteService.h
55     AbstractWebengine/AbstractWebengine.h
56     BasicUI/AbstractMainWindow.h
57     BasicUI/MenuButton.h
58     Config/Config.h
59     Logger/AbstractLogger.h
60     Logger/Logger.h
61     Logger/TextLogger.h
62     ServiceManager/Debug/BrowserAssert.h
63     ServiceManager/Debug/Lifecycle.h
64     ServiceManager/Debug/Type.h
65     ServiceManager/ServiceLib.h
66     ServiceManager/ServiceLoader.h
67     ServiceManager/ServiceFactory.h
68     ServiceManager/AbstractService.h
69     ServiceManager/ServiceManager.h
70     ServiceManager/service_macros.h
71     Tools/BrowserImage.h
72     Tools/EflTools.h
73     Tools/Blob.h
74     Tools/BookmarkItem.h
75     Tools/GeneralTools.h
76     Tools/FeedItem.h
77     Tools/FeedChannel.h
78     )
79
80 if(TIZEN_BUILD)
81     set(${browserCore_SRCS} ${browserCore_SRCS}
82     DLOGLogger.cpp)
83 endif(TIZEN_BUILD)
84
85 configure_file(Config/ConfigValues.h.in Config/ConfigValues.h @ONLY)
86 include_directories(${CMAKE_CURRENT_BINARY_DIR}/Config)
87
88 if(DYN_INT_LIBS)
89     add_library(browserCore SHARED ${browserCore_SRCS})
90 else(DYN_INT_LIBS)
91     add_library(browserCore STATIC ${browserCore_SRCS})
92 endif(DYN_INT_LIBS)
93
94 target_link_libraries(browserCore dl)
95 target_link_libraries(browserCore ${Boost_LIBRARIES})
96 target_link_libraries(browserCore ${EFL_LDFLAGS})
97 target_link_libraries(browserCore ${PNG_LIBRARIES})
98 target_link_libraries(browserCore ${EWEBKIT2_LDFLAGS})
99
100 if(TIZEN_BUILD)
101     target_link_libraries(browserCore ${tizen_pkgs_LDFLAGS})
102 endif(TIZEN_BUILD)
103
104 install(TARGETS browserCore
105             LIBRARY DESTINATION lib
106             ARCHIVE DESTINATION lib)
107 ### end browserCore library
108
109
110 ### browser binary
111 set(BIN_NAME "browser")
112 add_executable(${BIN_NAME} main.cpp)
113 add_dependencies(${BIN_NAME} browserCore)
114 target_link_libraries(${BIN_NAME} browserCore)
115 target_link_libraries(${BIN_NAME} ${EFL_LDFLAGS})
116 target_link_libraries(${BIN_NAME} ${Boost_LIBRARIES})
117
118
119 if(TIZEN_BUILD)
120     target_link_libraries(${BIN_NAME} ${tizen_pkgs_LDFLAGS})
121 endif(TIZEN_BUILD)
122
123 install(TARGETS ${BIN_NAME} RUNTIME DESTINATION bin)
124
125
126