[xsd-users] Make suitable dependency generation

Michael R. Freedman mfreedman at ll.mit.edu
Fri Apr 5 17:21:55 EDT 2013


I was able to modify the code so that it does what I want it do to and
should still work for all other cases.  In cxx/tree/generator.cxx,
starting around line 638 where the target variable is build up, I
changed all the .leaf() calls to .native_file_string() calls.  I'm still
struggling with building a distro that I can then move to the new
operating system that I'm using.  The new OS has a version of boost that
breaks a lot of the code.  



     // DEP
      //
      if (gen_dep)
      {
        NarrowString target;
        NarrowStrings const& ts (ops.dep_target ());

        if (!ts.empty ())
        {
          for (NarrowStrings::const_iterator i (ts.begin ());
               i != ts.end (); ++i)
            target += (target.empty () ? "" : " \\\n") + *i;
        }
        else
        {
          target = hxx_path.native_file_string ();

          if (forward)
            target += " \\\n" + fwd_path.native_file_string();

          if (inline_)
            target += " \\\n" +  ixx_path.native_file_string ();

          for (Paths::iterator i (cxx_paths.begin ());
               i != cxx_paths.end (); ++i) {
            target += " \\\n" +  i->native_file_string ();	    
	  }

          target += " \\\n" + dep_path.native_file_string ();

	  std::cout << "target : " << target << std::endl;
        }

        dep << target.c_str () << ':';



More information about the xsd-users mailing list