Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 07 Aug 2014 21:52:04 -0700
changeset 221383 92401a82b44b7e85c8d2e712049bd9b8b1c3099e
parent 221382 02dae3a6ed237b7ef77fa89f4c8f205cbfdff3e1
child 221384 803e2184d7b26a36d959f75a36ec252e347cb4c7
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs1047877
milestone34.0a1
Bug 1047877 - Flatten modules/libpref/{public,src}/ directories. r=bsmedberg
modules/libpref/Makefile.in
modules/libpref/Preferences.cpp
modules/libpref/Preferences.h
modules/libpref/init/all.js
modules/libpref/moz.build
modules/libpref/nsIPrefBranch.idl
modules/libpref/nsIPrefBranch2.idl
modules/libpref/nsIPrefBranchInternal.idl
modules/libpref/nsIPrefLocalizedString.idl
modules/libpref/nsIPrefService.idl
modules/libpref/nsIRelativeFilePref.idl
modules/libpref/nsPrefBranch.cpp
modules/libpref/nsPrefBranch.h
modules/libpref/nsPrefsFactory.cpp
modules/libpref/prefapi.cpp
modules/libpref/prefapi.h
modules/libpref/prefapi_private_data.h
modules/libpref/prefread.cpp
modules/libpref/prefread.h
modules/libpref/public/Preferences.h
modules/libpref/public/moz.build
modules/libpref/public/nsIPrefBranch.idl
modules/libpref/public/nsIPrefBranch2.idl
modules/libpref/public/nsIPrefBranchInternal.idl
modules/libpref/public/nsIPrefLocalizedString.idl
modules/libpref/public/nsIPrefService.idl
modules/libpref/public/nsIRelativeFilePref.idl
modules/libpref/src/Makefile.in
modules/libpref/src/Preferences.cpp
modules/libpref/src/init/all.js
modules/libpref/src/moz.build
modules/libpref/src/nsPrefBranch.cpp
modules/libpref/src/nsPrefBranch.h
modules/libpref/src/nsPrefsFactory.cpp
modules/libpref/src/prefapi.cpp
modules/libpref/src/prefapi.h
modules/libpref/src/prefapi_private_data.h
modules/libpref/src/prefread.cpp
modules/libpref/src/prefread.h
rename from modules/libpref/src/Makefile.in
rename to modules/libpref/Makefile.in
rename from modules/libpref/src/Preferences.cpp
rename to modules/libpref/Preferences.cpp
rename from modules/libpref/public/Preferences.h
rename to modules/libpref/Preferences.h
rename from modules/libpref/src/init/all.js
rename to modules/libpref/init/all.js
--- a/modules/libpref/moz.build
+++ b/modules/libpref/moz.build
@@ -1,9 +1,43 @@
 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
 # 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/.
 
-DIRS += ['public', 'src']
 TEST_DIRS += ['test']
 
+XPIDL_SOURCES += [
+    'nsIPrefBranch.idl',
+    'nsIPrefBranch2.idl',
+    'nsIPrefBranchInternal.idl',
+    'nsIPrefLocalizedString.idl',
+    'nsIPrefService.idl',
+    'nsIRelativeFilePref.idl',
+]
+
+XPIDL_MODULE = 'pref'
+
+EXPORTS.mozilla += [
+    'Preferences.h',
+]
+
+UNIFIED_SOURCES += [
+    'nsPrefBranch.cpp',
+    'nsPrefsFactory.cpp',
+    'Preferences.cpp',
+    'prefread.cpp',
+]
+
+# prefapi.cpp cannot be built in unified mode because it uses plarena.h
+SOURCES += [
+    'prefapi.cpp',
+]
+
+MSVC_ENABLE_PGO = True
+
+include('/ipc/chromium/chromium-config.mozbuild')
+
+FINAL_LIBRARY = 'xul'
+
+DEFINES['OS_ARCH'] = CONFIG['OS_ARCH']
+DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT']
rename from modules/libpref/public/nsIPrefBranch.idl
rename to modules/libpref/nsIPrefBranch.idl
rename from modules/libpref/public/nsIPrefBranch2.idl
rename to modules/libpref/nsIPrefBranch2.idl
rename from modules/libpref/public/nsIPrefBranchInternal.idl
rename to modules/libpref/nsIPrefBranchInternal.idl
rename from modules/libpref/public/nsIPrefLocalizedString.idl
rename to modules/libpref/nsIPrefLocalizedString.idl
rename from modules/libpref/public/nsIPrefService.idl
rename to modules/libpref/nsIPrefService.idl
rename from modules/libpref/public/nsIRelativeFilePref.idl
rename to modules/libpref/nsIRelativeFilePref.idl
rename from modules/libpref/src/nsPrefBranch.cpp
rename to modules/libpref/nsPrefBranch.cpp
rename from modules/libpref/src/nsPrefBranch.h
rename to modules/libpref/nsPrefBranch.h
rename from modules/libpref/src/nsPrefsFactory.cpp
rename to modules/libpref/nsPrefsFactory.cpp
rename from modules/libpref/src/prefapi.cpp
rename to modules/libpref/prefapi.cpp
rename from modules/libpref/src/prefapi.h
rename to modules/libpref/prefapi.h
rename from modules/libpref/src/prefapi_private_data.h
rename to modules/libpref/prefapi_private_data.h
rename from modules/libpref/src/prefread.cpp
rename to modules/libpref/prefread.cpp
rename from modules/libpref/src/prefread.h
rename to modules/libpref/prefread.h
deleted file mode 100644
--- a/modules/libpref/public/moz.build
+++ /dev/null
@@ -1,21 +0,0 @@
-# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
-# 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/.
-
-XPIDL_SOURCES += [
-    'nsIPrefBranch.idl',
-    'nsIPrefBranch2.idl',
-    'nsIPrefBranchInternal.idl',
-    'nsIPrefLocalizedString.idl',
-    'nsIPrefService.idl',
-    'nsIRelativeFilePref.idl',
-]
-
-XPIDL_MODULE = 'pref'
-
-EXPORTS.mozilla += [
-    'Preferences.h',
-]
-
deleted file mode 100644
--- a/modules/libpref/src/moz.build
+++ /dev/null
@@ -1,26 +0,0 @@
-# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
-# 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/.
-
-UNIFIED_SOURCES += [
-    'nsPrefBranch.cpp',
-    'nsPrefsFactory.cpp',
-    'Preferences.cpp',
-    'prefread.cpp',
-]
-
-# prefapi.cpp cannot be built in unified mode because it uses plarena.h
-SOURCES += [
-    'prefapi.cpp',
-]
-
-MSVC_ENABLE_PGO = True
-
-include('/ipc/chromium/chromium-config.mozbuild')
-
-FINAL_LIBRARY = 'xul'
-
-DEFINES['OS_ARCH'] = CONFIG['OS_ARCH']
-DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT']