Followup to r17396. Fix release mode, after r17396 broke it by tickling a bug
in the dependency generator.

Move dependencies which do not matter to the generation of SWIG source, only to
the compilation of it, to actually be attached to the compilation, not the
generation, rule. This is required because some of the files which matter only
at compilation might not even exist at generation time.

* build/generator/gen_base.py
  (GeneratorBase.compute_hdr_deps):
    Receive two different kinds of dependencies from the IncludeDependencyInfo
    instance, registering one kind as DT_OBJECT (.o: .c) dependencies, the
    other as DT_SWIG_C (.c: .i) dependencies.
  (IncludeDependencyInfo.__init__): Redocument.
    Fill in SWIG proxy info earlier, thus fixing bugs where this info was not
    fully taken into account.
    Changes to reflect that includes now have a type (C or SWIG).
    Run closure across all dependencies, not just those which are existing
    files.
  (IncludeDependencyInfo.query_swig): Renamed from query().
    Extended with dependency type (C or SWIG) handling.
  (IncludeDependencyInfo.query): New wrapper emulating the old behaviour for
    non-SWIG files.
  (IncludeDependencyInfo._upd_dep_hash): New helper function.
  (IncludeDependencyInfo._include_closure): Use _upd_dep_hash.
  (IncludeDependencyInfo._scan_for_includes): Use types and _upd_dep_hash.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@857499 13f79535-47bb-0310-9956-ffa450edef68
1 file changed