Bug 1319854 - Unused resource://gre/modules/osfile/osfile_{unix,win}_{back,front}.jsm files, r=Yoric.
authorFlorian Quèze <florian@queze.net>
Mon, 28 Nov 2016 12:29:30 +0100
changeset 324652 d03852230a32f2eaba331655823c3c814bdac179
parent 324651 7636e8dc84d63a73436a9f7c5142a2db9c9e06da
child 324653 619201a8d2b8eaeb3331c24af01303d7b76c2373
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersYoric
bugs1319854
milestone53.0a1
Bug 1319854 - Unused resource://gre/modules/osfile/osfile_{unix,win}_{back,front}.jsm files, r=Yoric.
toolkit/components/osfile/modules/moz.build
--- a/toolkit/components/osfile/modules/moz.build
+++ b/toolkit/components/osfile/modules/moz.build
@@ -5,18 +5,25 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 EXTRA_JS_MODULES.osfile += [
     'osfile_async_front.jsm',
     'osfile_async_worker.js',
     'osfile_native.jsm',
     'osfile_shared_allthreads.jsm',
     'osfile_shared_front.jsm',
-    'osfile_unix_allthreads.jsm',
-    'osfile_unix_back.jsm',
-    'osfile_unix_front.jsm',
-    'osfile_win_allthreads.jsm',
-    'osfile_win_back.jsm',
-    'osfile_win_front.jsm',
     'ospath.jsm',
     'ospath_unix.jsm',
     'ospath_win.jsm',
 ]
+
+if CONFIG['OS_TARGET'] == 'WINNT':
+    EXTRA_JS_MODULES.osfile += [
+        'osfile_win_allthreads.jsm',
+        'osfile_win_back.jsm',
+        'osfile_win_front.jsm',
+    ]
+else:
+    EXTRA_JS_MODULES.osfile += [
+        'osfile_unix_allthreads.jsm',
+        'osfile_unix_back.jsm',
+        'osfile_unix_front.jsm',
+    ]