GN: build Lua tools when skia_use_lua.
authorMike Klein <mtklein@chromium.org>
Fri, 11 Nov 2016 16:39:44 +0000 (11:39 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 11 Nov 2016 17:34:36 +0000 (17:34 +0000)
commit38af9438d7b7fa838aff2931d9afb4dd4a82549d
tree6e6b5484bf2e6d1bd880eacffd395dd4c55b158d
parent64dded3d95be625b65120a91ed29dd58112489d3
GN: build Lua tools when skia_use_lua.

When we opt into Lua, this builds SampleLua into SampleApp, and the lua_app and lua_pictures tools.

I've tested this builds with and without skia_use_system_lua on my Mac laptop and Linux desktop.

I've made lua_pictures.cpp's flags static to avoid conflicts with flags in SkCommonFlags.cpp.

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

DOCS_PREVIEW= https://skia.org/?cl=4699

Change-Id: I8176fd51d8a38746e7d730cfcce66da42b9a015a
Reviewed-on: https://skia-review.googlesource.com/4699
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
BUILD.gn
site/user/special/lua.md
third_party/lua/BUILD.gn [new file with mode: 0644]
tools/lua/lua_pictures.cpp