Home | History | Annotate | Download | only in lua
      1 # Copyright 2016 Google Inc.
      2 #
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 
      6 declare_args() {
      7   skia_use_system_lua = is_official_build
      8 }
      9 
     10 import("../third_party.gni")
     11 
     12 if (skia_use_system_lua) {
     13   system("lua") {
     14     libs = [ "lua" ]
     15   }
     16 } else {
     17   third_party("lua") {
     18     public_include_dirs = [ "src" ]
     19 
     20     sources = [
     21       "src/lapi.c",
     22       "src/lauxlib.c",
     23       "src/lbaselib.c",
     24       "src/lbitlib.c",
     25       "src/lcode.c",
     26       "src/lcorolib.c",
     27       "src/lctype.c",
     28       "src/ldblib.c",
     29       "src/ldebug.c",
     30       "src/ldo.c",
     31       "src/ldump.c",
     32       "src/lfunc.c",
     33       "src/lgc.c",
     34       "src/linit.c",
     35       "src/liolib.c",
     36       "src/llex.c",
     37       "src/lmathlib.c",
     38       "src/lmem.c",
     39       "src/loadlib.c",
     40       "src/lobject.c",
     41       "src/lopcodes.c",
     42       "src/loslib.c",
     43       "src/lparser.c",
     44       "src/lstate.c",
     45       "src/lstring.c",
     46       "src/lstrlib.c",
     47       "src/ltable.c",
     48       "src/ltablib.c",
     49       "src/ltm.c",
     50       "src/lundump.c",
     51       "src/lvm.c",
     52       "src/lzio.c",
     53     ]
     54   }
     55 }
     56