gecko-dev/toolkit/crashreporter
Mike Shal 9e6798ac00 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8

--HG--
extra : rebase_source : d6bb0208483f9f043e7be1b36907ca13243985f8
2017-08-24 22:52:01 -04:00
..
breakpad-client Bug 1394149: Fix remaining uses of ucontext in breakpad-client. r=ted 2017-08-27 00:21:10 +02:00
breakpad-patches
breakpad-windows-libxul Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
breakpad-windows-standalone Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
client Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
content Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
docs
google-breakpad Bug 1398897 - Move breakpad include munging to moz.build r=glandium 2017-09-20 12:43:24 -07:00
injector Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
minidump-analyzer Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium 2017-09-11 11:33:26 -07:00
test Bug 1392098 - Enable the new ESLint no-useless-run-test rule across the tree. r=mossop 2017-08-20 18:52:05 +01:00
tools Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium 2017-08-24 22:52:01 -04:00
CrashReports.jsm
CrashSubmit.jsm bug 1380254: Don't send StackTraces field to Socorro; r=gsvelto 2017-08-28 08:43:24 +02:00
InjectCrashReporter.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
InjectCrashReporter.h
KeyValueParser.jsm Bug 862178 - Remove main thread I/O from CrashSubmit.jsm and KeyValuParser.jsm, replacing with OS.File. r=gsvelto 2017-06-19 17:04:03 -07:00
LoadLibraryRemote.cpp Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
LoadLibraryRemote.h
ThreadAnnotation.cpp
ThreadAnnotation.h
crashreporter.mozbuild Bug 1387569 - Also enable -Wno-implicit-fallthrough for gcc in google-breakpad (exists from gcc 7) r=ted 2017-08-19 21:50:09 +02:00
jar.mn
mac_utils.h
mac_utils.mm
moz.build Bug 1360291 - Detect NDK version number; r=nalexander 2017-05-04 19:19:31 -04:00
nsExceptionHandler.cpp Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm 2017-09-15 19:32:55 -07:00
nsExceptionHandler.h Bug 1390488 - Pass the childProcessTmpDir from the parent process to the GPU process. r=froydnj 2017-09-13 11:26:25 -04:00
update-breakpad.sh
update-jsoncpp.sh