blob: e030ffe5ed2cc37a48280cac867fce0f9193f779 [file] [log] [blame]
reed@google.comdff7e112013-05-15 19:34:20 +00001#
2# Copyright 2013 Google Inc.
3#
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6#
7
reed@google.comdff7e112013-05-15 19:34:20 +00008{
9 'targets': [
10 {
11 'target_name': 'lua',
12 'type': 'static_library',
13 'suppress_wildcard': '1',
14 'sources': [
15 # core
16 '../third_party/lua/src/lapi.c',
17 '../third_party/lua/src/lcode.c',
18 '../third_party/lua/src/lctype.c',
19 '../third_party/lua/src/ldebug.c',
20 '../third_party/lua/src/ldo.c',
21 '../third_party/lua/src/ldump.c',
22 '../third_party/lua/src/lfunc.c',
23 '../third_party/lua/src/lgc.c',
24 '../third_party/lua/src/llex.c',
25 '../third_party/lua/src/lmem.c',
26 '../third_party/lua/src/lobject.c',
27 '../third_party/lua/src/lopcodes.c',
28 '../third_party/lua/src/lparser.c',
29 '../third_party/lua/src/lstate.c',
30 '../third_party/lua/src/lstring.c',
31 '../third_party/lua/src/ltable.c',
32 '../third_party/lua/src/ltm.c',
33 '../third_party/lua/src/lundump.c',
34 '../third_party/lua/src/lvm.c',
35 '../third_party/lua/src/lzio.c',
36
37 # libraries
38 '../third_party/lua/src/lauxlib.c',
39 '../third_party/lua/src/lbaselib.c',
40 '../third_party/lua/src/lbitlib.c',
41 '../third_party/lua/src/lcorolib.c',
42 '../third_party/lua/src/ldblib.c',
43 '../third_party/lua/src/liolib.c',
44 '../third_party/lua/src/lmathlib.c',
45 '../third_party/lua/src/loslib.c',
46 '../third_party/lua/src/lstrlib.c',
47 '../third_party/lua/src/ltablib.c',
48 '../third_party/lua/src/loadlib.c',
49 '../third_party/lua/src/linit.c',
50 ],
51 'include_dirs': [
52 '../third_party/lua/src/',
53 ],
54 'all_dependent_settings': {
55 'include_dirs': [
56 '../third_party/lua/src/',
57 ],
58 },
reed@google.com1ef08bb2013-05-15 20:55:49 +000059 'defines': [
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000060 "getlocaledecpoint()='.'",
61 ],
62 'conditions': [
63 ['skia_os != "win"',
64 {
65 'defines': [
66 'LUA_USE_POSIX', # Fix warning re dangerous tmpnam.
67 ],
68 }
69 ],
reed@google.com1ef08bb2013-05-15 20:55:49 +000070 ],
reed@google.comdff7e112013-05-15 19:34:20 +000071 },
72 ],
73}