2016-11-11 16:39:44 +00:00
|
|
|
# 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() {
|
2017-03-03 14:21:30 +00:00
|
|
|
skia_use_system_lua = is_official_build
|
2016-11-11 16:39:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
import("../third_party.gni")
|
|
|
|
|
|
|
|
if (skia_use_system_lua) {
|
|
|
|
system("lua") {
|
|
|
|
libs = [ "lua" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
third_party("lua") {
|
|
|
|
public_include_dirs = [ "src" ]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/lapi.c",
|
|
|
|
"src/lauxlib.c",
|
|
|
|
"src/lbaselib.c",
|
|
|
|
"src/lbitlib.c",
|
|
|
|
"src/lcode.c",
|
|
|
|
"src/lcorolib.c",
|
|
|
|
"src/lctype.c",
|
|
|
|
"src/ldblib.c",
|
|
|
|
"src/ldebug.c",
|
|
|
|
"src/ldo.c",
|
|
|
|
"src/ldump.c",
|
|
|
|
"src/lfunc.c",
|
|
|
|
"src/lgc.c",
|
|
|
|
"src/linit.c",
|
|
|
|
"src/liolib.c",
|
|
|
|
"src/llex.c",
|
|
|
|
"src/lmathlib.c",
|
|
|
|
"src/lmem.c",
|
|
|
|
"src/loadlib.c",
|
|
|
|
"src/lobject.c",
|
|
|
|
"src/lopcodes.c",
|
|
|
|
"src/loslib.c",
|
|
|
|
"src/lparser.c",
|
|
|
|
"src/lstate.c",
|
|
|
|
"src/lstring.c",
|
|
|
|
"src/lstrlib.c",
|
|
|
|
"src/ltable.c",
|
|
|
|
"src/ltablib.c",
|
|
|
|
"src/ltm.c",
|
|
|
|
"src/lundump.c",
|
|
|
|
"src/lvm.c",
|
|
|
|
"src/lzio.c",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|