--include-dir processing for compiler and generator
Submitted by Owen Taylor
Link to original bug (#560359)
Description
A couple of problems:
-
--include-dir is used both for .gir and .typelib. Now that the install locations are different, that's very weird.
-
Using g_ir_prepend_search_path() means that the order of the includes is reversed.
(You can't change it to append_search_path() since you don't want to append after the default dirs, so just walk the array backwards.)