Bug 1431229 - Add configure variables to specify the webidl and ipdl root directories. draft
authorChris Manchester <cmanchester@mozilla.com>
Wed, 24 Jan 2018 13:55:05 -0800
changeset 724322 d15802decad40d56b92648d5421e105c2c1ddc3d
parent 723788 c5461973d6ee7845b3f560c05e1502429fd63184
child 724323 8c8344d9310d3f61b9077ea028f1b46f316e36f0
push id96730
push userbmo:cmanchester@mozilla.com
push dateWed, 24 Jan 2018 21:55:37 +0000
bugs1431229
milestone60.0a1
Bug 1431229 - Add configure variables to specify the webidl and ipdl root directories. MozReview-Commit-ID: 1zvO7vAEp5c
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -1183,8 +1183,18 @@ def has_elfhack(host, target):
     return target.kernel == 'Linux' and host.kernel == 'Linux' and \
            target.cpu in ('arm', 'x86', 'x86_64')
 
 with only_when(has_elfhack):
     option('--disable-elf-hack', help='Disable elf hacks')
 
     set_config('USE_ELF_HACK',
                depends_if('--enable-elf-hack')(lambda _: True))
+
+
+@depends(check_build_environment)
+def idl_roots(build_env):
+    return namespace(ipdl_root=os.path.join(build_env.topobjdir, 'ipc', 'ipdl'),
+                     webidl_root=os.path.join(build_env.topobjdir,
+                                              'dom', 'bindings'))
+
+set_config('WEBIDL_ROOT', idl_roots.webidl_root)
+set_config('IPDL_ROOT', idl_roots.ipdl_root)