diff --git a/python/mozbuild/mozbuild/backend/cpp_eclipse.py b/python/mozbuild/mozbuild/backend/cpp_eclipse.py index f06797fed085..fb62a9c2ce1a 100644 --- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py +++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py @@ -79,7 +79,12 @@ class CppEclipseBackend(CommonBackend): # Note that unlike VS, Eclipse' indexer seem to crawl the headers and # isn't picky about the local includes. if isinstance(obj, ComputedFlags): - args = self._args_for_dirs.setdefault(reldir, {'includes': [], 'defines': []}) + args = self._args_for_dirs.setdefault('tree/' + reldir, {'includes': [], 'defines': []}) + # use the same args for any objdirs we include: + if reldir == 'dom/bindings': + self._args_for_dirs.setdefault('generated-webidl', args) + if reldir == 'ipc/ipdl': + self._args_for_dirs.setdefault('generated-ipdl', args) includes = args["includes"] if "BASE_INCLUDES" in obj.flags and obj.flags["BASE_INCLUDES"]: @@ -519,7 +524,7 @@ LANGUAGE_SETTINGS_TEMPLATE_HEADER = """ """ -LANGUAGE_SETTINGS_TEMPLATE_DIR_HEADER = """ +LANGUAGE_SETTINGS_TEMPLATE_DIR_HEADER = """