Bug 1319854 - Unused resource://gre/modules/osfile/osfile_{unix,win}_{back,front}.jsm files, r=Yoric.
☠☠ backed out by 670ad168fb70 ☠ ☠
authorFlorian Quèze <florian@queze.net>
Mon, 28 Nov 2016 12:29:30 +0100
changeset 324432 bdbcf49b3359dbcad12de40de0a25148cdf1804b
parent 324429 c7dc06c5f56aa301af64092ce75033a6e7d9b0a4
child 324433 b05c8f63d8a2bbcbc95c40cb462f80d4a962be2d
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',
+        'ospath_win.jsm',
+    ]
+else:
+    EXTRA_JS_MODULES.osfile += [
+        'osfile_unix_allthreads.jsm',
+        'osfile_unix_back.jsm',
+        'osfile_unix_front.jsm',
+        'ospath_unix.jsm',
+    ]