summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-24 14:21:32 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 17:20:06 +0100
commit5e5655463cc58b1ae0a3214122d1757b065c815d (patch)
tree4a8ca2c53c838252334a6715ac208d5f8c831866 /src/bin/eolian_cxx
parentac22afec8a05c899089f69f70a63873f66891546 (diff)
eolian_cxx/generator: support for eot files
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index d631facc06..951397708c 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -245,11 +245,28 @@ _resolve_classname(options_type& opts)
245} 245}
246 246
247static void 247static void
248_scan_directories(options_type const& opts)
249{
250 for (auto src : opts.in_srcs)
251 {
252 if (eina_str_has_suffix(src.c_str(), EO_SUFFIX)) continue;
253 eolian_read_from_fs(src.c_str());
254 }
255}
256
257static void
258_load_eot()
259{
260 eolian_all_eot_files_parse();
261}
262
263static void
248_load_classes(options_type const& opts) 264_load_classes(options_type const& opts)
249{ 265{
250 for (auto src : opts.in_srcs) 266 for (auto src : opts.in_srcs)
251 { 267 {
252 if (eolian_read_from_fs(src.c_str()) == NULL) 268 if (!eina_str_has_suffix(src.c_str(), EO_SUFFIX)) continue;
269 if ( eolian_read_from_fs(src.c_str()) == NULL)
253 { 270 {
254 EINA_CXX_DOM_LOG_WARN(::domain) 271 EINA_CXX_DOM_LOG_WARN(::domain)
255 << "Couldn't load eolian file: " << src; 272 << "Couldn't load eolian file: " << src;
@@ -352,6 +369,8 @@ int main(int argc, char **argv)
352 domain.set_level(efl::eina::log_level::debug); 369 domain.set_level(efl::eina::log_level::debug);
353#endif 370#endif
354 options_type opts = _read_options(argc, argv); 371 options_type opts = _read_options(argc, argv);
372 _scan_directories(opts);
373 _load_eot();
355 _load_classes(opts); 374 _load_classes(opts);
356 _resolve_classname(opts); 375 _resolve_classname(opts);
357 _validate_options(opts); 376 _validate_options(opts);