Bug 1306014: Modify ipc/mscom/moz.build to only build essentials when a11y is disabled in build config; r?jimm draft
authorAaron Klotz <aklotz@mozilla.com>
Wed, 28 Sep 2016 14:09:07 -0600
changeset 418616 e9cb29e2c9866af1b19928c5c61d8e8376669821
parent 418456 b1d60f2f68c7cccc96fcf9a2075bb430a500a0f2
child 532390 865ea9d84916a7b9c8b8382529780ccf4a184394
push id30728
push useraklotz@mozilla.com
push dateWed, 28 Sep 2016 20:11:04 +0000
reviewersjimm
bugs1306014
milestone52.0a1
Bug 1306014: Modify ipc/mscom/moz.build to only build essentials when a11y is disabled in build config; r?jimm MozReview-Commit-ID: 4B08546SS4w
ipc/mscom/moz.build
--- a/ipc/mscom/moz.build
+++ b/ipc/mscom/moz.build
@@ -2,46 +2,56 @@
 # vim: set filetype=python:
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 EXPORTS.mozilla.mscom += [
     'COMApartmentRegion.h',
     'COMPtrHolder.h',
-    'DispatchForwarder.h',
     'EnsureMTA.h',
-    'Interceptor.h',
-    'InterceptorLog.h',
-    'MainThreadHandoff.h',
-    'MainThreadInvoker.h',
     'MainThreadRuntime.h',
     'ProxyStream.h',
     'Ptr.h',
-    'Registration.h',
     'Utils.h',
-    'WeakRef.h',
 ]
 
 SOURCES += [
-    'Interceptor.cpp',
-    'Registration.cpp',
     'Utils.cpp',
-    'WeakRef.cpp',
 ]
 
 UNIFIED_SOURCES += [
-    'DispatchForwarder.cpp',
     'EnsureMTA.cpp',
-    'InterceptorLog.cpp',
-    'MainThreadHandoff.cpp',
-    'MainThreadInvoker.cpp',
     'MainThreadRuntime.cpp',
     'ProxyStream.cpp',
 ]
 
+if CONFIG['ACCESSIBILITY']:
+    EXPORTS.mozilla.mscom += [
+        'DispatchForwarder.h',
+        'Interceptor.h',
+        'InterceptorLog.h',
+        'MainThreadHandoff.h',
+        'MainThreadInvoker.h',
+        'Registration.h',
+        'WeakRef.h',
+    ]
+
+    SOURCES += [
+        'Interceptor.cpp',
+        'Registration.cpp',
+        'WeakRef.cpp',
+    ]
+
+    UNIFIED_SOURCES += [
+        'DispatchForwarder.cpp',
+        'InterceptorLog.cpp',
+        'MainThreadHandoff.cpp',
+        'MainThreadInvoker.cpp',
+    ]
+
 LOCAL_INCLUDES += [
     '/xpcom/build',
 ]
 
 include('/ipc/chromium/chromium-config.mozbuild')
 
 FINAL_LIBRARY = 'xul'