GN: add sources_when_disabled to optional
authormtklein <mtklein@chromium.org>
Wed, 31 Aug 2016 11:58:19 +0000 (04:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 31 Aug 2016 11:58:19 +0000 (04:58 -0700)
commitcd01b03df8acefbe0e8a37fa10b97d8a6fc0b992
treef98a462722eb00a57b8b6e84191c83bd3cb3f51d
parent3ee255f259541eff1251c8007f9135e8d664346a
GN: add sources_when_disabled to optional

Also make sources_when_disabled and public_defines optional arguments.
These are the two mechanisms code uses to turn itself off...
probably at most one is ever used per optional.

Update fiddle to not crash when there's no PDF backend.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2292343003

Review-Url: https://codereview.chromium.org/2292343003
BUILD.gn
tools/fiddle/fiddle_main.cpp