1#
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
8{
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      },
59      'defines': [
60        "getlocaledecpoint()='.'",
61      ],
62      'conditions': [
63        ['skia_os != "win"',
64         {
65            'defines': [
66              'LUA_USE_POSIX',  # Fix warning re dangerous tmpnam.
67            ],
68          }
69        ],
70      ],
71    },
72  ],
73}
74