summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-05-07 23:40:43 +0200
committerCedric Bail <cedric.bail@free.fr>2014-05-07 23:40:46 +0200
commit95f5c117035f1e7434cea9128d39dab9e4196365 (patch)
tree9f103d09d48c68cc1a5701491b81724c9f466050 /src/bin/eolian_cxx
parentf6cf7cf35e00c0186dc5b2064607e59286aef506 (diff)
eolian_cxx: fix install-examples and (post-install) compilation.
Summary: This patch fixes T1226 by adding a Makefile.examples to examples/eolian_cxx. It also fixes a bug in bin/eolian_cxx: the include paths were not being correctly generated for directories outside EFL tree. Reviewers: cedric, smohanty, stefan_schmidt, stefan CC: uartie, wayland-efl, felipealmeida, raster, woohyun, cedric Maniphest Tasks: T1226 Differential Revision: https://phab.enlightenment.org/D824 Signed-off-by: Cedric Bail <cedric.bail@free.fr>
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 2ec77fbbaa..8cc5e53580 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -133,9 +133,12 @@ _resolve_includes(std::string const& classname)
133 std::string filename, namespace_; 133 std::string filename, namespace_;
134 std::tie(filename, namespace_) = get_filename_info(eo_parent_file); 134 std::tie(filename, namespace_) = get_filename_info(eo_parent_file);
135 // we have our own eo_base.hh 135 // we have our own eo_base.hh
136 if (filename != "eo_base.eo" || namespace_ != "eo") 136 std::string eo_base_eo = "eo_base.eo";
137 if (filename.length() < eo_base_eo.length() ||
138 !std::equal(eo_base_eo.begin(), eo_base_eo.end(),
139 filename.end() - eo_base_eo.length()))
137 { 140 {
138 gen_opts.cxx_headers.push_back(filename + ".hh"); 141 gen_opts.cxx_headers.push_back(filename + ".hh");
139 } 142 }
140 } 143 }
141 else 144 else