summaryrefslogtreecommitdiff
path: root/src/lib/emile
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 12:38:52 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 12:52:14 -0200
commit525d1e062975f732c54e40074d15500cdcaa4cb4 (patch)
treeb074fd0fef65f756ebbe2d5993313cbafcb882bc /src/lib/emile
parent28960d78513f95204a75e86af817efb3a343e6b0 (diff)
cmake: add EFL_SUPPORT_LIB() and simplify/speedup its usage.
generate a static library for src/static_libs and use that as LIBRARIES for the actual library, for those such as rg_etc that are used multiple times will even speed up the final build by compiling only once. Although not used, they can be made into shared libraries that would go inside /usr/lib/efl/support/v-1.19/libname.so
Diffstat (limited to 'src/lib/emile')
-rw-r--r--src/lib/emile/CMakeLists.txt17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/lib/emile/CMakeLists.txt b/src/lib/emile/CMakeLists.txt
index 559f7355b6..d6c315521a 100644
--- a/src/lib/emile/CMakeLists.txt
+++ b/src/lib/emile/CMakeLists.txt
@@ -8,6 +8,7 @@ set(PKG_CONFIG_REQUIRES_PRIVATE
8set(LIBRARIES 8set(LIBRARIES
9 eina 9 eina
10 m 10 m
11 support-rg_etc
11) 12)
12 13
13set(PUBLIC_HEADERS 14set(PUBLIC_HEADERS
@@ -24,14 +25,6 @@ set(SOURCES
24 emile_image.c 25 emile_image.c
25 emile_main.c 26 emile_main.c
26 emile_private.h 27 emile_private.h
27 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/etc2_encoder.c
28 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.c
29 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc1.h
30 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc/rg_etc2.c
31)
32
33set(INCLUDE_DIRECTORIES
34 ${CMAKE_SOURCE_DIR}/src/static_libs/rg_etc
35) 28)
36 29
37if(WITH_CRYPTO STREQUAL "gnutls") 30if(WITH_CRYPTO STREQUAL "gnutls")
@@ -47,11 +40,5 @@ endif()
47if(WITH_LZ4 STREQUAL "system") 40if(WITH_LZ4 STREQUAL "system")
48 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE liblz4) 41 list(APPEND PKG_CONFIG_REQUIRES_PRIVATE liblz4)
49else() 42else()
50 list(APPEND SOURCES 43 list(APPEND LIBRARIES support-lz4)
51 ${CMAKE_SOURCE_DIR}/src/static_libs/lz4/lz4.c
52 ${CMAKE_SOURCE_DIR}/src/static_libs/lz4/lz4.h
53 ${CMAKE_SOURCE_DIR}/src/static_libs/lz4/lz4hc.c
54 ${CMAKE_SOURCE_DIR}/src/static_libs/lz4/lz4hc.h
55 )
56 list(APPEND INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/src/static_libs/lz4)
57endif() 44endif()