On 8/6/17 3:56 PM, Enrico Weigelt, metux IT consult wrote:
is there a way to use the partial interfaces for build-time
configurable features ?
Not without #ifdef.
Can I move that stuff to a separate webidl file, which is only
added in dom/webidl/moz.build when wakelocks enabled ?
(so no #ifdef's in Navigator.webidl needed)
If you try to do this, you will get a message from binding codegen that
explicitly says this is not supported:
TypeError: The binding build system doesn't really support partial
interfaces which don't appear in the file in which the interface they
are extending is defined. Don't do this.
Of course using partial interfaces can make the #ifdef bits simpler in
some cases.
-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform