[mq]: all-from-mozilla
authorJoshua Cranmer <Pidgeot18@gmail.com>
Tue, 07 May 2013 23:36:05 -0500
changeset 17644 ec72e55d3d75eb0d81def4649716a6143e44c4e9
parent 17643 547f83dee63b6d35c0cb77f9199c1475efabb577
child 17645 d615e9a4ab642d1fa416a35593f27782ff1340d7
push id756
push userPidgeot18@gmail.com
push dateWed, 08 May 2013 04:37:35 +0000
treeherdertry-comm-central@12b7bc333eb4 [default view] [failures only]
[mq]: all-from-mozilla
mail/app.mozbuild
moz.build
suite/app.mozbuild
--- a/mail/app.mozbuild
+++ b/mail/app.mozbuild
@@ -1,40 +1,35 @@
 # 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/.
 
 app_libxul_dirs = []
 app_libxul_static_dirs = []
 
-# Invoked from /mozilla.
-if not CONFIG['COMM_BUILD']:
-    if CONFIG['MOZ_APP_COMPONENT_LIBS']:
-        bridge_reldir = '../'
-        include('../bridge/bridge.mozbuild')
-        app_libxul_dirs += ['../mail/components']
+bridge_reldir = '../'
+include('../bridge/bridge.mozbuild')
+
+if CONFIG['MOZ_APP_COMPONENT_LIBS']:
+    app_libxul_dirs += ['../mail/components']
 
-    if not CONFIG['LIBXUL_SDK']:
-        include('/toolkit/toolkit.mozbuild')
+if CONFIG['MOZ_INCOMPLETE_EXTERNAL_LINKAGE']:
+    add_tier_dir('app', app_libxul_static_dirs, static=True)
+    add_tier_dir('app', app_libxul_dirs)
 
-    if CONFIG['MOZ_EXTENSIONS']:
-        add_tier_dir('app', 'extensions')
+
+if not CONFIG['LIBXUL_SDK']:
+    include('/toolkit/toolkit.mozbuild')
 
-else:
-    bridge_reldir = ''
-    include('/bridge/bridge.mozbuild')
+if CONFIG['MOZ_EXTENSIONS']:
+    add_tier_dir('app', 'extensions')
 
-    if CONFIG['MOZ_INCOMPLETE_EXTERNAL_LINKAGE']:
-        add_tier_dir('app', app_libxul_static_dirs, static=True)
-        add_tier_dir('app', app_libxul_dirs)
+add_tier_dir('app', CONFIG['MOZ_BRANDING_DIRECTORY'])
 
-    if CONFIG['MOZ_COMPOSER']:
-        add_tier_dir('app', 'editor/ui')
-
-    add_tier_dir('app', CONFIG['MOZ_BRANDING_DIRECTORY'])
+if CONFIG['MOZ_COMPOSER']:
+    add_tier_dir('app', '../editor/ui')
 
-    if CONFIG['MOZ_CALENDAR']:
-        add_tier_dir('app', 'calendar/lightning')
+if CONFIG['MOZ_CALENDAR']:
+    add_tier_dir('app', '../calendar/lightning')
 
-    add_tier_dir('app', 'chat')
-    add_tier_dir('app', 'mail')
-
+add_tier_dir('app', '../chat')
+add_tier_dir('app', '../mail')
--- a/moz.build
+++ b/moz.build
@@ -1,8 +1,4 @@
 # 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/.
-
-if CONFIG['COMPILE_ENVIRONMENT']:
-    include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
-
--- a/suite/app.mozbuild
+++ b/suite/app.mozbuild
@@ -1,39 +1,30 @@
 # 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/.
 
 app_libxul_dirs = []
 app_libxul_static_dirs = []
 
-# /mozilla build system.
-if not CONFIG['COMM_BUILD']:
-    if CONFIG['MOZ_APP_COMPONENT_LIBS']:
-        bridge_reldir = '../'
-        include('../bridge/bridge.mozbuild')
+bridge_reldir = '../'
+include('../bridge/bridge.mozbuild')
 
-    if not CONFIG['LIBXUL_SDK']:
-        include('/toolkit/toolkit.mozbuild')
+if CONFIG['MOZ_INCOMPLETE_EXTERNAL_LINKAGE']:
+    add_tier_dir('app', app_libxul_static_dirs, static=True)
+    add_tier_dir('app', app_libxul_dirs)
 
-    if CONFIG['MOZ_EXTENSIONS']:
-        add_tier_dir('app', 'extensions')
+if not CONFIG['LIBXUL_SDK']:
+    include('/toolkit/toolkit.mozbuild')
 
-# Our build system.
-else:
-    bridge_reldir = ''
-    include('/bridge/bridge.mozbuild')
+if CONFIG['MOZ_EXTENSIONS']:
+    add_tier_dir('app', 'extensions')
 
-    if CONFIG['MOZ_INCOMPLETE_EXTERNAL_LINKAGE']:
-        add_tier_dir('app', app_libxul_static_dirs, static=True)
-        add_tier_dir('app', app_libxul_dirs)
+if CONFIG['MOZ_COMPOSER']:
+    add_tier_dir('app', '../editor/ui')
 
-    if CONFIG['MOZ_COMPOSER']:
-        add_tier_dir('app', 'editor/ui')
-
-    add_tier_dir('app', CONFIG['MOZ_BRANDING_DIRECTORY'])
+add_tier_dir('app', CONFIG['MOZ_BRANDING_DIRECTORY'])
 
-    if CONFIG['MOZ_CALENDAR']:
-        add_tier_dir('app', 'calendar/lightning')
+if CONFIG['MOZ_CALENDAR']:
+    add_tier_dir('app', '../calendar/lightning')
 
-    add_tier_dir('app', 'suite')
-
+add_tier_dir('app', '../suite')