blob: 56080e47fa55318d3ec24a4ca36624daf90ad488 [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 ],
halcanary3d5942e2016-05-23 14:02:54 -070062 'variables': {
63 'skia_lua_flags' : [
halcanarye76ca8b2016-05-20 10:36:50 -070064 '-Wno-parentheses-equality',
65 '-Wno-pointer-bool-conversion',
halcanary3d5942e2016-05-23 14:02:54 -070066 '-Wno-array-bounds',
halcanarye76ca8b2016-05-20 10:36:50 -070067 ],
68 },
halcanary3d5942e2016-05-23 14:02:54 -070069 'cflags': [ '<@(skia_lua_flags)' ],
70 'xcode_settings': { 'WARNING_CFLAGS': [ '<@(skia_lua_flags)' ], },
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000071 'conditions': [
72 ['skia_os != "win"',
73 {
74 'defines': [
75 'LUA_USE_POSIX', # Fix warning re dangerous tmpnam.
76 ],
77 }
78 ],
djsollenf9deeb62016-03-07 12:30:47 -080079 [ 'skia_clang_build == 1', {
80 'cflags':[
djsollen460f4052016-04-25 11:45:35 -070081 '-w',
djsollenf9deeb62016-03-07 12:30:47 -080082 ],
83 }],
reed@google.com1ef08bb2013-05-15 20:55:49 +000084 ],
reed@google.comdff7e112013-05-15 19:34:20 +000085 },
86 ],
87}