skia2/third_party/lua/BUILD.gn
Mike Klein b19737d78a make lua a rollable dep, roll it
This rolls from 5.2.1 (2013) to 5.3.4 (2017).

I was looking at why the GomaNoFallback bot was failing,
and noticed that we had a static copy of Lua here instead
of a DEPS entry.  This doesn't do anything to change the
GomaNoFallback situation.

Change-Id: Ia3cdca85551fe680b60b38cb8c5a8fb5349e177f
Reviewed-on: https://skia-review.googlesource.com/93120
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
2018-01-10 17:54:00 +00:00

57 lines
1.5 KiB
Plaintext

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
skia_use_system_lua = is_official_build
}
import("../third_party.gni")
if (skia_use_system_lua) {
system("lua") {
libs = [ "lua" ]
}
} else {
third_party("lua") {
public_include_dirs = [ "../externals/lua" ]
sources = [
"../externals/lua/lapi.c",
"../externals/lua/lauxlib.c",
"../externals/lua/lbaselib.c",
"../externals/lua/lbitlib.c",
"../externals/lua/lcode.c",
"../externals/lua/lcorolib.c",
"../externals/lua/lctype.c",
"../externals/lua/ldblib.c",
"../externals/lua/ldebug.c",
"../externals/lua/ldo.c",
"../externals/lua/ldump.c",
"../externals/lua/lfunc.c",
"../externals/lua/lgc.c",
"../externals/lua/linit.c",
"../externals/lua/liolib.c",
"../externals/lua/llex.c",
"../externals/lua/lmathlib.c",
"../externals/lua/lmem.c",
"../externals/lua/loadlib.c",
"../externals/lua/lobject.c",
"../externals/lua/lopcodes.c",
"../externals/lua/loslib.c",
"../externals/lua/lparser.c",
"../externals/lua/lstate.c",
"../externals/lua/lstring.c",
"../externals/lua/lstrlib.c",
"../externals/lua/ltable.c",
"../externals/lua/ltablib.c",
"../externals/lua/ltm.c",
"../externals/lua/lundump.c",
"../externals/lua/lutf8lib.c",
"../externals/lua/lvm.c",
"../externals/lua/lzio.c",
]
}
}