reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 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 | |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 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 | }, |
reed@google.com | 1ef08bb | 2013-05-15 20:55:49 +0000 | [diff] [blame] | 59 | 'defines': [ |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 60 | "getlocaledecpoint()='.'", |
| 61 | ], |
halcanary | 3d5942e | 2016-05-23 14:02:54 -0700 | [diff] [blame] | 62 | 'variables': { |
| 63 | 'skia_lua_flags' : [ |
halcanary | e76ca8b | 2016-05-20 10:36:50 -0700 | [diff] [blame] | 64 | '-Wno-parentheses-equality', |
| 65 | '-Wno-pointer-bool-conversion', |
halcanary | 3d5942e | 2016-05-23 14:02:54 -0700 | [diff] [blame] | 66 | '-Wno-array-bounds', |
halcanary | e76ca8b | 2016-05-20 10:36:50 -0700 | [diff] [blame] | 67 | ], |
| 68 | }, |
halcanary | 3d5942e | 2016-05-23 14:02:54 -0700 | [diff] [blame] | 69 | 'cflags': [ '<@(skia_lua_flags)' ], |
| 70 | 'xcode_settings': { 'WARNING_CFLAGS': [ '<@(skia_lua_flags)' ], }, |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 71 | 'conditions': [ |
| 72 | ['skia_os != "win"', |
| 73 | { |
| 74 | 'defines': [ |
| 75 | 'LUA_USE_POSIX', # Fix warning re dangerous tmpnam. |
| 76 | ], |
| 77 | } |
| 78 | ], |
djsollen | f9deeb6 | 2016-03-07 12:30:47 -0800 | [diff] [blame] | 79 | [ 'skia_clang_build == 1', { |
| 80 | 'cflags':[ |
djsollen | 460f405 | 2016-04-25 11:45:35 -0700 | [diff] [blame] | 81 | '-w', |
djsollen | f9deeb6 | 2016-03-07 12:30:47 -0800 | [diff] [blame] | 82 | ], |
| 83 | }], |
reed@google.com | 1ef08bb | 2013-05-15 20:55:49 +0000 | [diff] [blame] | 84 | ], |
reed@google.com | dff7e11 | 2013-05-15 19:34:20 +0000 | [diff] [blame] | 85 | }, |
| 86 | ], |
| 87 | } |