| OLD | NEW |
| 1 # Copyright 2016 The Native Client Authors. All rights reserved. | 1 # Copyright 2016 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("xdiff_config") { | 5 config("xdiff_config") { |
| 6 visibility = [ ":*" ] | 6 visibility = [ ":*" ] |
| 7 | 7 if (!is_clang && target_os == "win") { |
| 8 cflags = [ "-Wno-sign-compare" ] | 8 cflags = [ |
| 9 "-wd4018", |
| 10 "-wd4267", |
| 11 "-wd4706", |
| 12 ] |
| 13 } else { |
| 14 cflags = [ "-Wno-sign-compare" ] |
| 15 } |
| 9 } | 16 } |
| 10 | 17 |
| 11 static_library("xdiff") { | 18 static_library("xdiff") { |
| 12 configs += [ ":xdiff_config" ] | 19 configs += [ ":xdiff_config" ] |
| 13 | 20 |
| 14 sources = [ | 21 sources = [ |
| 15 "xdiff.h", | 22 "xdiff.h", |
| 16 "xdiffi.c", | 23 "xdiffi.c", |
| 17 "xdiffi.h", | 24 "xdiffi.h", |
| 18 "xemit.c", | 25 "xemit.c", |
| 19 "xemit.h", | 26 "xemit.h", |
| 20 "xhistogram.c", | 27 "xhistogram.c", |
| 21 "xinclude.h", | 28 "xinclude.h", |
| 22 "xmacros.h", | 29 "xmacros.h", |
| 23 "xmerge.c", | 30 "xmerge.c", |
| 24 "xpatience.c", | 31 "xpatience.c", |
| 25 "xprepare.c", | 32 "xprepare.c", |
| 26 "xprepare.h", | 33 "xprepare.h", |
| 27 "xtypes.h", | 34 "xtypes.h", |
| 28 "xutils.c", | 35 "xutils.c", |
| 29 "xutils.h", | 36 "xutils.h", |
| 30 ] | 37 ] |
| 31 } | 38 } |
| OLD | NEW |