Bug 1373486 - Skip gyp directories when building without a compile environment. r?mshal draft
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 16 Jun 2017 11:30:43 +0900
changeset 595113 52fa95d69d5b6d5e000d1414c56f1ddf1eee7e19
parent 595097 79cdd4893c4607b8ad19c41ffd4ddde2f11d0151
child 633632 3025dcc6dfb00782804d164eefc962e5f2224a2a
push id64257
push userbmo:mh+mozilla@glandium.org
push dateFri, 16 Jun 2017 02:56:48 +0000
reviewersmshal
bugs1373486
milestone56.0a1
Bug 1373486 - Skip gyp directories when building without a compile environment. r?mshal security/ is already skipped through top-level moz.build. For convenience, we skip the DIRS that end up adding GYP_DIRS, avoiding reindenting their entire moz.build.
toolkit/toolkit.mozbuild
--- a/toolkit/toolkit.mozbuild
+++ b/toolkit/toolkit.mozbuild
@@ -41,32 +41,36 @@ if CONFIG['MOZ_UPDATER']:
 # Gecko/Core components.
 
 DIRS += [
     '/ipc',
     '/js/ipc',
     '/hal',
     '/js/xpconnect',
     '/intl/chardet',
-    '/media/libyuv',
     '/modules/libjar',
     '/storage',
 ]
 
+if CONFIG['COMPILE_ENVIRONMENT']:
+    DIRS += [
+        '/media/libyuv',
+    ]
+
 if CONFIG['MOZ_PERMISSIONS']:
     DIRS += [
         '/extensions/cookie',
         '/extensions/permissions',
     ]
 
 DIRS += [
     '/rdf',
 ]
 
-if CONFIG['MOZ_WEBRTC']:
+if CONFIG['MOZ_WEBRTC'] and CONFIG['COMPILE_ENVIRONMENT']:
     DIRS += [
         '/media/webrtc',
         '/media/mtransport',
     ]
 
 if CONFIG['MOZ_OMX_PLUGIN']:
     DIRS += [
         '/media/omx-plugin/lib/ics/libutils',