Граф коммитов

3631 Коммитов

Автор SHA1 Сообщение Дата
arthur.iakab 5e8092339a Merge mozilla-central to inbound
--HG--
rename : browser/base/content/test/general/bug364677-data.xml => browser/components/feeds/test/bug364677-data.xml
rename : browser/base/content/test/general/bug364677-data.xml^headers^ => browser/components/feeds/test/bug364677-data.xml^headers^
rename : browser/base/content/test/general/test_bug364677.html => browser/components/feeds/test/test_bug364677.html
rename : services/sync/tps/extensions/tps/bootstrap.js => services/sync/tps/extensions/tps/components/tps-cmdline.js
rename : testing/talos/talos/pageloader/bootstrap.js => testing/talos/talos/pageloader/components/tp-cmdline.js
rename : testing/talos/talos/startup_test/sessionrestore/addon/bootstrap.js => testing/talos/talos/startup_test/sessionrestore/addon/SessionRestoreTalosTest.js
rename : testing/talos/talos/talos-powers/bootstrap.js => testing/talos/talos/talos-powers/components/TalosPowersService.js
rename : tools/quitter/bootstrap.js => tools/quitter/QuitterObserver.js
extra : rebase_source : 5801e95a945b54754f27571e7b211e1eac132d67
2018-03-21 22:27:21 +02:00
Zibi Braniecki 735a746866 Bug 1419547 - Migrate the "Containers" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: IA3GFardEHs

--HG--
extra : rebase_source : e052f13c44e58d9b1cb90c7bcc5e9bd795bfd43d
extra : intermediate-source : 48060f354ac1b9be5a1b6a24668c35c33d8faa86
extra : source : 606cc17a4e1110223f4e81ee2a84e8e4b7cfc1fe
2018-03-12 18:08:24 -07:00
Mike Shal c6aa9fc9af Bug 1447329 - fix preprocessor jar.mn entries in the tup backend; r=chmanchester
The source filename should only be used as the destination filename if
we don't have a target_basename entry for the file. For most cases
there is no difference, but in browser/components/places/jar.mn, the
same source file (bookmarkProperties.xul) is used to two different
destination files (bookmarkProperties.xul and bookmarkProperties2.xul).

MozReview-Commit-ID: LCwncq4wxtU

--HG--
extra : rebase_source : 0a86da0879d4e516013c664fbc0eb422d4be9efa
2018-03-19 20:20:24 -04:00
Nick Alexander 93c505b07a Bug 1443208 - Pre: Add force flag to GENERATED_FILES. r=ted.mielczarek
The forces on the system are such that I really need to be able to
FORCE a few RecursiveMake targets in order to make Android and Gradle
use GENERATED_FILES and LOCALIZED_GENERATED_FILES.  Over time, I hope
to avoid FORCE, but that time is not now.

MozReview-Commit-ID: 453FpnihSRK

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/generated-files-force/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/generate-bar.py => python/mozbuild/mozbuild/test/backend/data/generated-files-force/generate-bar.py
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/generated-files-force/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/non-localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-force/non-localized-input
rename : python/mozbuild/mozbuild/test/frontend/data/generated-files/moz.build => python/mozbuild/mozbuild/test/frontend/data/generated-files-force/moz.build
rename : python/mozbuild/mozbuild/test/frontend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/frontend/data/localized-generated-files-force/moz.build
extra : rebase_source : 6820ac4b377ac596cafbdf065112738376cc473e
2018-03-08 16:04:06 -08:00
Emilio Cobos Álvarez 24cf27d33c Bug 1447611: Remove --enable-stylo and --enable-stylo-build-bindgen. r=froydnj
Will remove the prefs and stuff in a followup.

MozReview-Commit-ID: HVyfbHOEQYI
2018-03-21 19:13:26 +01:00
Csoregi Natalia d6c6d38406 Backed out 4 changesets (bug 1447611) for mass failures due to --enable-stylo removal. CLOSED TREE
Backed out changeset c6193142bbcf (bug 1447611)
Backed out changeset 01ada1c5a95f (bug 1447611)
Backed out changeset 86c9fed44da2 (bug 1447611)
Backed out changeset bb84ac6e1468 (bug 1447611)
2018-03-21 19:01:07 +02:00
Emilio Cobos Álvarez 330ddd82bf Bug 1447611: Remove --enable-stylo and --enable-stylo-build-bindgen. r=froydnj
Will remove the prefs and stuff in a followup.

MozReview-Commit-ID: HVyfbHOEQYI
2018-03-21 17:24:41 +01:00
Emilio Cobos Álvarez 48957d62c0 Bug 1446954: Cleanup !stylo and styloVsGecko test expectations. r=xidorn
MozReview-Commit-ID: J2glxiCWBVn
2018-03-20 11:29:51 +01:00
Ted Mielczarek e2218ff804 bug 1255485 - add some tests for building programs in dist/bin. r=nalexander
MozReview-Commit-ID: 94uOsInnWmT
2018-01-17 11:19:19 -05:00
Ted Mielczarek dcdf597820 bug 1255485 - build PROGRAMs directly in dist/bin instead of copying them. r=nalexander
Historically we built all our binaries in directories in the objdir, then
symlinked them into dist/bin. Some binaries needed to be copied instead
so that certain relative path lookups work properly, so we resorted to
sprinkling `NSDISTMODE=copy` around Makefiles.

This change makes it so we build PROGRAMs (not any other sort of targets)
directly in dist/bin instead. We could do the same for our other targets
with a little more work.

There were several places in the tree that were copying built binaries to
some other place and needed fixup to match the new location of binaries.

On Windows pdb files are left in the objdir where the program was
originally linked. symbolstore.py needs to locate the pdb file both to
determine whether it should dump symbols for a binary and also to copy
the pdb file into the symbol package. We fix this by simply looking for
the pdb file in the current working directory if it isn't present next
to the binary, which matches how we invoke symbolstore.py.

MozReview-Commit-ID: 8TOD1uTXD5e
2018-01-10 14:26:12 -05:00
Andrew Halberstadt 35ace05949 Bug 1369711 - [mozlint] Make sure KeyboardInterrupts are handled well wherever they happen r=gps
There a few pieces needed here to properly handle KeyboardInterrupts.

1. All in-progress work needs to abort. Ideally the underlying linters will be
able to catch KeyboardInterrupt, and return partial results (like the flake8
linter does). Linters may alternatively allow the KeyboardInterrupt to
propagate up. Mozlint will catch and handle this appropriately, though any
results found will be lost. The only change to this behaviour was fixing a bug
in the flake8 linter.

2. Any unstarted jobs need to be canceled. In concurrent.futures, there are two
different queues. First, jobs are placed on the work queue, which is just a list
maintained by the parent process. As workers become available, jobs are moved
off the work queue, and onto the call queue (which is a multiprocessing.Queue).
Jobs that live on the work queue can be canceled with 'future.cancel()', whereas
jobs that live on the call queue cannot. The number of extra jobs that are stored
on the call queue is determined by this variable:
https://hg.mozilla.org/mozilla-central/file/deb7714a7bcd/third_party/python/futures/concurrent/futures/process.py#l86

In this patch, the parent process' sigint handler (which will be called on Ctrl-C)
is responsible for canceling all the jobs on the work queue. For the jobs on the
call queue, the best we can do is set a global variable that tells workers to
abort early.

3. Idle workers should exit gracefully. When there are no more jobs left, workers
will block on the call queue (either waiting for more jobs, or waiting for the
executor to send the shutdown signal). If a KeyboardInterrupt is received while a
worker is blocking, it isn't possible to intercept that anywhere (due to quirks
of how concurrent.futures is implemented). The InterruptableQueue class was
created to solve this problem. It will return None instead of propagating
KeyboardInterrupt. A None value will wake the worker up and tell it to gracefully
shutdown. This way, we avoid cryptic tracebacks in the output.

With all of these various pieces solved, pressing Ctrl-C appears to always exit
gracefully, sometimes even printing partial results.

MozReview-Commit-ID: 36Pe3bbUKmk

--HG--
extra : rebase_source : d4c312ee5cc3679eeee1407c5521aed679f84ad4
extra : source : a93a00141bf62f6bc9e30934c0e56f6b2e434bf0
2018-02-23 08:55:06 -05:00
Andrew Halberstadt 028cd9d73f Bug 1369711 - [mozlint] Refactor concurrent.futures ProcessPoolExecutor code for readability r=gps
This commit doesn't change any behaviour, just attempts to make this a little
more readable.  The workers will call '_collect_results' for each WorkItem they
process (either because it is finished or because it was canceled).

This also differentiates between setup failures and run failures.

MozReview-Commit-ID: 36Pe3bbUKmk

--HG--
extra : rebase_source : 873167512b745ccdc52de7e7f1ecf66b094e063d
2018-02-23 09:02:16 -05:00
Gregory Szorc 1ab2bad8aa Bug 1446471 - Remove unused import; r=nalexander
MozReview-Commit-ID: JviugCf0TTE

--HG--
extra : rebase_source : 080b0d71a16ad230bc239b371d2b6f7b181ff45c
2018-03-06 19:15:42 -08:00
Gregory Szorc e6191d0614 Bug 1446471 - Remove unused --stop argument from `mach python-test`; r=nalexander
This argument does nothing. While that's arguably a bug, I have
no desire to fix it. So remove dead code.

MozReview-Commit-ID: 9tToF66I7HE

--HG--
extra : rebase_source : 2ea86681a102d3a82fc547f52e473f4a46a60467
2018-03-06 19:04:04 -08:00
Gregory Szorc 6e392d444d Bug 1446471 - Remove unused find_tests_by_path function; r=nalexander
I was too lazy to find the commit that orphaned this. But it is most
definitely not referenced in the code base.

MozReview-Commit-ID: 8gYBJQxIWIR

--HG--
extra : rebase_source : eda4f601ba71380b41a1cc6182d21996d15ea4e6
2018-03-06 19:02:01 -08:00
Zibi Braniecki 4629cdb598 Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa

--HG--
extra : rebase_source : 16ffb5e756567591471ce18a98eaee9315be6c89
2018-03-12 16:27:32 -07:00
Sebastian Hengst d247fb5f4e Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe

--HG--
extra : rebase_source : c8f1dc45041132252e28869ada6a386270267431
2018-03-14 21:44:46 +01:00
Csoregi Natalia cbbe5a1135 Backed out changeset 32f45689f033 (bug 1445084) for frequently failing browser-chrome's browser_search_within_preferences_1.js (bug 1446186), remove obsolete file. a=backout 2018-03-16 15:00:25 +02:00
Zibi Braniecki 4a7d971409 Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs a=reland
MozReview-Commit-ID: ltXNOkdnOV

--HG--
extra : source : 647154f3033288e3cc3552f86d92eb1ad5f8f742
2018-03-12 17:17:13 -07:00
Csoregi Natalia 4cc6d868c9 Backed out changeset 647154f30332 (bug 1415733) for frequently failing browser-chrome's browser_search_within_preferences_1.js (bug 1446186). a=backout 2018-03-16 14:09:23 +02:00
Zibi Braniecki 07171ff48a Bug 1415733 - Migrate the "Search" section of Preferences to the new Localization API. r=flod,Gijs
MozReview-Commit-ID: ltXNOkdnOV

--HG--
extra : rebase_source : b75176b4e526ace545d1483606aa21dd8af76b58
2018-03-12 17:17:13 -07:00
Zibi Braniecki 45c410eacb Bug 1445084 - Migrate search results pane of Preferences to Fluent. r=flod,Gijs
MozReview-Commit-ID: BNeocrSY5Fa

--HG--
extra : rebase_source : 237685e47ea88376561b58434fac474fd963e475
2018-03-12 16:27:32 -07:00
Jan Beich b2c12ddb46 Bug 1445193 - Use notify-send on Tier3 platforms as well. r=gps
MozReview-Commit-ID: 4ONdrhqc6zf

--HG--
extra : rebase_source : 6773d64fb7dc3cfa56c148a9b455ac03e81b465d
2018-03-13 10:29:11 +00:00
Ryan VanderMeulen 0bd3547b12 Bug 1424281 - Require Visual Studio 2017 15.6.0 and Win SDK 10.0.15063.0 to build on Windows. r=froydnj
--HG--
extra : rebase_source : 0de2c47bb978ae92128fc00390649a327612890f
2018-03-12 19:24:44 -04:00
Ryan VanderMeulen dde54aa578 Bug 1424281 - Use Visual Studio 2017 15.6.0 for Windows builds. r=froydnj
--HG--
extra : rebase_source : 2d5abb19c1f2b2e2f142b849bd4d0ba9ab46ccbe
2018-03-12 19:24:44 -04:00
Nick Alexander c9cc551b04 Bug 1444534 - Part 1: Allow "locales/en-US" relative paths in localized inputs. r=ted.mielczarek
This cleans up a few things, including simplifying the look of
backend.mk by keeping the relsrcdir in MERGE_RELATIVE_FILE similar to
the source path in the tree.  Before, the locales/ floated around,
which is hard to understand but doesn't matter, since it's stripped by
MERGE_RELATIVE_FILE.

This also tests both relative and topsrcdir-absolute paths.

MozReview-Commit-ID: 1v3y9xGiNfL

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/inner/locales/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/locales/en-US/localized-input
extra : rebase_source : 302d7cb638974fc5ec71513f47ce98222c5e3bb6
2018-03-08 14:12:44 -08:00
Francesco Lodolo (:flod) aea4be56a6 Bug 1444969 - Fix Fluent migration code for home-page-header r=gandalf
MozReview-Commit-ID: 4jpOLumAiRL

--HG--
extra : rebase_source : 1852f0529c485fc97fb21665261d70239fb677ae
2018-03-12 19:45:06 +01:00
Gabriele Svelto a41a01a61f Bug 1444881 - Make |mach bootstrap| use the latest version of Oracle's JDK when bootstrapping Fennec on Gentoo; r=nalexander
MozReview-Commit-ID: BnRJC95sSEr

--HG--
extra : rebase_source : 82db88a83191f7e837c000d3701df8b3ee941259
2018-03-12 14:31:05 +01:00
Matt Brubeck f4e41f6114 Bug 1443271 - Remove outdated comment from vendor_rust.py. r=ted
MozReview-Commit-ID: s9CnYvQcJP

--HG--
extra : rebase_source : 8256ce6a7534ffd78ec796dbb1c246c5d12c6c9a
2018-03-05 12:03:15 -08:00
Nick Alexander 713d88d96a Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq

--HG--
extra : rebase_source : cc368d42eed182cc595858effd08517c6ec25168
2018-03-06 14:53:04 -08:00
Gregory Szorc 1c982ae418 Bug 1439727 - Purge untracked files in python/ and third_party/python/; r=nalexander
`mach clobber python` currently purges Python files with known
extensions globally.

The python/ and third_party/python/ directories may also contain random
ignored/untracked files. Let's purge those as well.

Note: if someone has untracked but not ignored files, this will delete
them. This is possibly unwanted. But people shouldn't have untracked
but not ignored files sitting around in VCS. We don't run this command
by default, so I think it is safe to be aggressive in our purging of
these untracked files.

MozReview-Commit-ID: 8ql8QR6lP6j

--HG--
extra : rebase_source : 644eccee25913502ed4daa55e54aec9618ebe547
2018-03-07 15:06:21 -08:00
Gregory Szorc da0cad58ef Bug 1439727 - Add a docstring for `mach clobber`; r=nalexander
This makes `mach help clobber` more useful.

MozReview-Commit-ID: GsIUqhUzVGP

--HG--
extra : rebase_source : bde88c0f9275a6dded83b8332faf2188583f663e
2018-03-07 08:49:13 -08:00
Gregory Szorc d2a511149f Bug 1439727 - Also delete .pyd files; r=nalexander
`mach clobber python` is supposed to remove autogenerated Python files.
Let's add .pyd files (compiled C extensions on Windows) to the list
for good measure.

MozReview-Commit-ID: EbHvBYB7hj3

--HG--
extra : rebase_source : 2736c3d1077c6f371df20b3854840612693117f8
2018-03-07 08:44:18 -08:00
Cosmin Sabou af65a84060 Backed out 2 changesets (bug 1443204) for build bustages at mozbuild/test/frontend/test_emitter.py on a CLOSED TREE
Backed out changeset eb1dfa51050f (bug 1443204)
Backed out changeset e3a7560b4206 (bug 1443204)
2018-03-07 23:58:00 +02:00
Nick Alexander a03b697b4d Bug 1443204 - Pre: Clean-up unused Android data structures in mozbuild frontend. r=chmanchester
MozReview-Commit-ID: 5ympxk0jSJq

--HG--
extra : rebase_source : cc0f5ab2f4f3b4b39bae7baa96ebaea2b7738e23
2018-03-06 14:53:04 -08:00
Dorel Luca 4884b868ae Backed out changeset 5ceb1365ae75 (bug 1421734) for build Bustage on MinGW 2018-03-07 05:45:52 +02:00
Chris AtLee 698a2a7006 Bug 1421734 - Download and unpack toolchain artifacts in parallel; r=nalexander
MozReview-Commit-ID: BMe6zqIqNHP

--HG--
extra : rebase_source : f347fe9de0117fc858a3de7be2079445af374929
2018-02-12 15:07:36 -05:00
Nick Alexander 82f173d48c Bug 1443222 - Remove python/mozbuild/mozbuild/backend/templates. r=froydnj
MozReview-Commit-ID: FXqLPrAQpNF

--HG--
extra : rebase_source : 4f134f13c06acfec78a2bfb7d9127a27dc21a9ee
2018-03-05 10:26:29 -08:00
Matt Brubeck be08cdcdc1 Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu

--HG--
extra : source : bbae7807c164273f6bb123d680a4fc31202d7a61
extra : amend_source : 53505e25f63a8eb228e62a0a9f3bd3ed98950296
extra : histedit_source : 597464181d4b79f5ac1a511d23e2a05aefb266da%2C63b89f3699e0e9598c8355e7293f10795acc80e7
2018-03-01 14:33:35 -08:00
shindli 0ba01aed1b Backed out 3 changesets (bug 1381576) for Bugzilla linting failure on a CLOSED TREE
Backed out changeset 3bc1743ad418 (bug 1381576)
Backed out changeset bbae7807c164 (bug 1381576)
Backed out changeset 1ea18b70b170 (bug 1381576)
2018-03-02 21:17:20 +02:00
Matt Brubeck c94fb26dea Bug 1381576 - Use a Cargo workspace for rust crates. r=ted
MozReview-Commit-ID: K6B9SifddXu

--HG--
extra : rebase_source : 75fae593e8765ec5b1e616d10eda0bc52f1f7194
extra : histedit_source : 21b38586bcc4576fce5eadff9a3c77ccf5e21341
2018-03-01 14:33:35 -08:00
Kevin Brosnan a7f87eaf46 Kevin Brosnan - Bug 1441579 - Install ncurses-compat-libs for Fedora as part of mach bootstrap r=nalexander
MozReview-Commit-ID: 6TsufMMzjIc

--HG--
extra : rebase_source : 569d4f50184cc2134e0b12b65abb99ad5fd4391f
2018-02-28 08:23:39 -08:00
Zibi Braniecki 4a44620118 Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx

--HG--
extra : rebase_source : df83a089c572be0ed8301edb93777d2aacd0f1f6
2018-02-27 21:20:54 -08:00
Ciure Andrei 52f18c2eac Backed out 2 changesets (bug 1435912, bug 1441733) for for Fluent in Preferences::General::XUL bc failures. a=backout on a CLOSED TREE
Backed out changeset 95eb6ee7690b (bug 1441733)
Backed out changeset 6ba30e000664 (bug 1435912)
2018-02-28 06:17:21 +02:00
Zibi Braniecki 15d8394912 Bug 1435912 - Migrate Preferences::General XUL part to the new Localization API. r=flod,jaws
MozReview-Commit-ID: J5Rr8Gc0oCx

--HG--
extra : rebase_source : fc16a0ead225d63330100ac83bdf94b6e22d6f3b
2018-01-22 15:38:06 -08:00
Zibi Braniecki 6c6256c87c Bug 1432338 - Introduce sync-brand.ftl. r=flod
MozReview-Commit-ID: Hs48yFaCMPf

--HG--
extra : rebase_source : 5797ca2dbc123108686f48bab3579a719f532c93
2018-02-12 11:29:13 -08:00
Nick Alexander d825eb0d47 Bug 1439742 - Allow {AB_CD} and {AB_rCD} in LOCALIZED_GENERATED_FILES. r=ted.mielczarek
There are a lot of choices and moving pieces in this commit.  I elected
to include the mechanics and the target use case in the same commit so
that readers can compare and contrast the implementation and final
expression in one review window.

- Initially, I wanted to make the {AB_CD} substitutions in
LOCALIZED_FILES and not in LOCALIZED_GENERATED_FILES.  However, I ran
into conceptual blockers doing this.  Fundamentally, LOCALIZED_FILES
is FINAL_TARGET_FILES, and my use case should _not_ be putting files
anywhere near dist/bin.  In addition, LOCALIZED_FILES
(FINAL_TARGET_FILES) is handled using manifests, which would need to
grow locale-aware functionality to handle this.  That's not desirable.
In addition, if we use manifests, then we lose the powerful locality
of |mach build mobile/android{/base}| re-generating changed
locale-dependent resources.  This is similar to how the build system
plumbs dist/idl manifest processing throughout the build: we're
repairing local workflows after moving work into a global process.
For these reasons, this doesn't support {AB_CD} in LOCALIZED_FILES.

- There is even another layer of complexity!  There are two axes
involved with these files: AB_CD controls localization and the Make
target controls destination.  For the record, it is:

regular builds - AB_CD unset
multi-locale builds - AB_CD set
single-locale repacks - AB_CD set

For the record, the existing logic (before any changes) is:

regular builds - Make target is `libs` in mobile/android/base/locales
multi-locale builds - Make target is `chrome-%` in mobile/android/base/locales
single-locale repacks - Make target is `libs` in mobile/android/base/locales

This commit adds targets for both destinations, and uses Make
chrome-%:: and libs:: magic to control what is invoked in the various
situations.  Tricky!

- I added MERGE_RELATIVE_FILES in order to be able to follow-up this
patch with more patches that will get rid of
m/a/base/locales/{moz.build,Makefile.in} altogether, and fold this work
into m/a/base.  As it stands, we're already reaching from
m/a/base/locales all the way out to
mobile/locales/.../region.properties, so the existing code doesn't
follow the layout expected between mozilla-central and
l10n-central/$(AB_CD).  But that'll impedance will get worse as we
improve the build system dependencies, not better, so we should grow
support for localized resources that aren't exactly as expected.

- I chose to follow Python's syntax for string substitutions.  I
would have preferred to mark files that should be localized with a
leading '%'... but I took that for filesystem absolute paths in
moz.build files already.  I also considered @AB_CD@ to echo the
preprocessor, but didn't want to open the door to an expecation that
_all_ preprocessor DEFINEs will work in the way {AB_CD} does.

- The generate_*py script changes required a bit of a hack to "turn
off" locale dependent resources.  This would have been nicer if we had
marked localized resources with '%'... but we didn't.  See the
--fallback flag.  The real reason this is needed is that we're doing
work which is more like the work of compare-locales (merging
locale-dependent resources) at build-time rather than repack time.  I
don't know why that's the case -- probably when we (I) implemented it,
compare-locales and the whole l10n process was entirely opaque.  It's
not worth changing it now, so we use this --fallback flag approach.

- I didn't get to tup support.  This should gently fail without
breaking tup builds: any {AB_CD} substitutions just won't be
expanded.  I haven't a clue how this should work in tup in the future
(or, more generally, how to make any sense of repacks without
declaring the full set of expected locales at configure time.)

- strings.xml can't be a LOCALIZED_PP_FILES, since we need to
customize the output location based on AB_rCD, and since we need a
little more flexibility than PP_FILES gives for our inputs.

MozReview-Commit-ID: MyfIkNSEzt

--HG--
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/foo-data => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/foo-data
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/generate-foo.py => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/generate-foo.py
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/en-US/localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/inner/locales/en-US/localized-input
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/moz.build => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/moz.build
rename : python/mozbuild/mozbuild/test/backend/data/localized-generated-files/non-localized-input => python/mozbuild/mozbuild/test/backend/data/localized-generated-files-AB_CD/non-localized-input
extra : rebase_source : 816b6f220758f2bb3bdd3ec81a2cb02269c6de5b
2018-02-21 17:12:17 -08:00
Mike Shal e43bc408dc Bug 1441275 - ignore js/src/shell OBJDIR_FILES in the tup backend; r=chmanchester
Without linking support in the tup backend, we don't produce a js
binary, so we can't copy it via OBJDIR_FILES yet.

MozReview-Commit-ID: AxqhHi84HIg

--HG--
extra : rebase_source : 1011bc6296be81646004a6bd6572193c34f367d8
2018-02-22 16:15:18 -05:00
Ralph Giles ef7e020a97 Bug 1440449 - Remove codegen-units limit for debug builds. r=froydnj
Starting with Rust 1.24, the default codegen-units limit is 16,
with jobserver control to avoid overprovisioning. Remove our
previous fixed limit of 4 threads for debug builds.

For release, retain codegen-units=1 to make sure we get the
most complete optimization results.

Thanks to Simon Sapin for the suggestion.

MozReview-Commit-ID: FmYF4DcmBvt

--HG--
extra : rebase_source : 307ad8fad2874636adb3ce95a5cd47339e83f40c
2018-02-22 11:58:50 -08:00
Nick Alexander 5e6cdade8e Bug 1440428 - Fix: Don't install Proguard JAR in |mach bootstrap|. r=jchen
MozReview-Commit-ID: EOvKSE5z28P
2018-02-26 11:37:41 -08:00