projects
/
platform
/
core
/
api
/
efl-util.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
screeenshot: use only tizen_screenshooter interface for one shot
[platform/core/api/efl-util.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
8d7ef86
..
8cb32e0
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-11,17
+11,9
@@
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
# required dependencies
INCLUDE_DIRECTORIES(${INC_DIR})
# required dependencies
-SET(dependents "dlog elementary capi-base-common")
+SET(dependents "dlog elementary capi-base-common
capi-system-info libdrm libtbm
")
-IF (WITH_X11)
- ADD_DEFINITIONS("-DX11")
- SET(dependents "${dependents} ecore-x utilX")
-ENDIF (WITH_X11)
-
-IF (WITH_WAYLAND)
- ADD_DEFINITIONS("-DWAYLAND")
- SET(dependents "${dependents} ecore-wayland wayland-client")
-ENDIF (WITH_WAYLAND)
+SET(dependents "${dependents} ecore-wl2 wayland-client wayland-tbm-client screenshooter-client tizen-extension-client")
INCLUDE(FindPkgConfig)
pkg_check_modules(${fw_name} REQUIRED ${dependents})
INCLUDE(FindPkgConfig)
pkg_check_modules(${fw_name} REQUIRED ${dependents})
@@
-29,7
+21,11
@@
FOREACH(flag ${${fw_name}_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
ENDFOREACH(flag)
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+IF(EFLUTILGCOV)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations -fprofile-arcs -ftest-coverage")
+ELSE(EFLUTILGCOV)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -Wno-error=deprecated-declarations")
+ENDIF(EFLUTILGCOV)
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" STREQUAL "arm")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
IF("${ARCH}" STREQUAL "arm")
@@
-37,11
+33,11
@@
IF("${ARCH}" STREQUAL "arm")
ENDIF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
ENDIF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DSLP_DEBUG")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
-aux_source_directory(src SOURCES)
+SET(SOURCES src/efl_util.c)
+
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
ADD_LIBRARY(${fw_name} SHARED ${SOURCES})
TARGET_LINK_LIBRARIES(${fw_name} ${${fw_name}_LDFLAGS})
@@
-77,10
+73,10
@@
IF(UNIX)
ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
ADD_CUSTOM_COMMAND(
ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
ADD_CUSTOM_COMMAND(
- DEPENDS clean
+ DEPENDS clean
COMMENT "distribution clean"
COMMAND find
COMMENT "distribution clean"
COMMAND find
- ARGS .
+ ARGS .
-not -name config.cmake -and \(
-name tester.c -or
-name Testing -or
-not -name config.cmake -and \(
-name tester.c -or
-name Testing -or