forked from enlightenment/efl
cmake: also process non-public eo files.
the only difference is they do not get installed, but may be used to generate internal .eo.c
This commit is contained in:
parent
62ec4c8aa2
commit
ce97fc1dd3
|
@ -554,6 +554,7 @@ endfunction()
|
||||||
# - PUBLIC_LIBRARIES: results in target_link_libraries(LINK_PUBLIC)
|
# - PUBLIC_LIBRARIES: results in target_link_libraries(LINK_PUBLIC)
|
||||||
# - DEFINITIONS: target_compile_definitions()
|
# - DEFINITIONS: target_compile_definitions()
|
||||||
# - PUBLIC_EO_FILES: the eo files will be used to build that lib, and will be installed to the filesystem
|
# - PUBLIC_EO_FILES: the eo files will be used to build that lib, and will be installed to the filesystem
|
||||||
|
# - EO_FILES: the eo files will be used to build that lib but not installed.
|
||||||
#
|
#
|
||||||
# Defines the following variables that can be used within the included files:
|
# Defines the following variables that can be used within the included files:
|
||||||
# - EFL_LIB_CURRENT to ${Name}
|
# - EFL_LIB_CURRENT to ${Name}
|
||||||
|
@ -622,6 +623,7 @@ function(EFL_LIB _target)
|
||||||
set(PUBLIC_LIBRARIES)
|
set(PUBLIC_LIBRARIES)
|
||||||
set(DEFINITIONS)
|
set(DEFINITIONS)
|
||||||
set(PUBLIC_EO_FILES)
|
set(PUBLIC_EO_FILES)
|
||||||
|
set(EO_FILES)
|
||||||
|
|
||||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target}.cmake OPTIONAL)
|
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target}.cmake OPTIONAL)
|
||||||
include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt OPTIONAL)
|
include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt OPTIONAL)
|
||||||
|
@ -630,7 +632,7 @@ function(EFL_LIB _target)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
#merge public eo files into sources
|
#merge public eo files into sources
|
||||||
set(SOURCES ${SOURCES} ${PUBLIC_EO_FILES})
|
set(SOURCES ${SOURCES} ${PUBLIC_EO_FILES} ${EO_FILES})
|
||||||
|
|
||||||
EFL_FILES_TO_ABSOLUTE(_headers ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
|
EFL_FILES_TO_ABSOLUTE(_headers ${EFL_LIB_SOURCE_DIR} ${EFL_LIB_BINARY_DIR}
|
||||||
${PUBLIC_HEADERS})
|
${PUBLIC_HEADERS})
|
||||||
|
@ -722,6 +724,7 @@ function(EFL_LIB _target)
|
||||||
unset(DEFINITIONS)
|
unset(DEFINITIONS)
|
||||||
unset(DESCRIPTION)
|
unset(DESCRIPTION)
|
||||||
unset(PUBLIC_EO_FILES)
|
unset(PUBLIC_EO_FILES)
|
||||||
|
unset(EO_FILES)
|
||||||
unset(PKG_CONFIG_REQUIRES)
|
unset(PKG_CONFIG_REQUIRES)
|
||||||
unset(PKG_CONFIG_REQUIRES_PRIVATE)
|
unset(PKG_CONFIG_REQUIRES_PRIVATE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue