summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 13:53:15 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-27 13:53:15 -0200
commitadc9bbfbdc0389ea60e3ef5d5ec6690a086d34f7 (patch)
treedea17ee7e31415da8e69e8d83b29e1764bf3aab6 /cmake/helpers/EflMacros.cmake
parent47920696342c62276c8159ebcc9d0381e2faee41 (diff)
cmake/eolian: generate source, headers and legacy in one command.
actually wasn't a bug, I need to specify -gchl to generate legacy as well.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake15
1 files changed, 2 insertions, 13 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index a23c1e7091..e93a23f013 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -1589,8 +1589,8 @@ function(EFL_CREATE_EO_RULES target source_dir generation_dir)
1589 endif() 1589 endif()
1590 1590
1591 if(${ext} STREQUAL ".eo") 1591 if(${ext} STREQUAL ".eo")
1592 set(file_eo_gen_files ${generation_dir}/${filename}.c ${generation_dir}/${filename}.h) # TODO: ${generation_dir}/${filename}.legacy.h) 1592 set(file_eo_gen_files ${generation_dir}/${filename}.c ${generation_dir}/${filename}.h ${generation_dir}/${filename}.legacy.h)
1593 set(out_cmd -o c:${generation_dir}/${filename}.c -o h:${generation_dir}/${filename}.h) # TODO: bug in eolian_gen -o l:${generation_dir}/${filename}.legacy.h) 1593 set(out_cmd -gchl -o c:${generation_dir}/${filename}.c -o h:${generation_dir}/${filename}.h -o l:${generation_dir}/${filename}.legacy.h)
1594 elseif(${ext} STREQUAL ".eot") 1594 elseif(${ext} STREQUAL ".eot")
1595 set(file_eo_gen_files ${generation_dir}/${filename}.h) 1595 set(file_eo_gen_files ${generation_dir}/${filename}.h)
1596 # TODO: looks like a bug in eolian_gen needs '-gh' 1596 # TODO: looks like a bug in eolian_gen needs '-gh'
@@ -1608,17 +1608,6 @@ function(EFL_CREATE_EO_RULES target source_dir generation_dir)
1608 COMMENT "EOLIAN ${relfile}" 1608 COMMENT "EOLIAN ${relfile}"
1609 ) 1609 )
1610 list(APPEND all_eo_gen_files ${file_eo_gen_files}) 1610 list(APPEND all_eo_gen_files ${file_eo_gen_files})
1611 # TODO: looks like a bug in eolian_gen doesn't generate -o l:...
1612 # TODO: then add an extra command
1613 if(${ext} STREQUAL ".eo")
1614 add_custom_command(
1615 OUTPUT ${generation_dir}/${filename}.legacy.h
1616 COMMAND ${EOLIAN_BIN} ${rel_include_cmd} ${include_cmd} ${EOLIAN_EXTRA_PARAMS} -gl -o l:${generation_dir}/${filename}.legacy.h ${file}
1617 DEPENDS ${file}
1618 COMMENT "EOLIAN LEGACY ${relfile}"
1619 )
1620 list(APPEND all_eo_gen_files ${generation_dir}/${filename}.legacy.h)
1621 endif()
1622 endif() 1611 endif()
1623 endforeach() 1612 endforeach()
1624 if(all_eo_gen_files) 1613 if(all_eo_gen_files)