OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 config("snappy_config") { | 7 config("snappy_config") { |
8 include_dirs = [ "src" ] | 8 include_dirs = [ "src" ] |
9 | 9 |
10 # These OS-specific generated headers were made by running the configure | 10 # These OS-specific generated headers were made by running the configure |
(...skipping 25 matching lines...) Expand all Loading... |
36 sources = [ | 36 sources = [ |
37 "src/snappy-internal.h", | 37 "src/snappy-internal.h", |
38 "src/snappy-sinksource.cc", | 38 "src/snappy-sinksource.cc", |
39 "src/snappy-sinksource.h", | 39 "src/snappy-sinksource.h", |
40 "src/snappy-stubs-internal.cc", | 40 "src/snappy-stubs-internal.cc", |
41 "src/snappy-stubs-internal.h", | 41 "src/snappy-stubs-internal.h", |
42 "src/snappy.cc", | 42 "src/snappy.cc", |
43 "src/snappy.h", | 43 "src/snappy.h", |
44 ] | 44 ] |
45 | 45 |
| 46 if (is_win) { |
| 47 sources += [ "win32/snappy-stubs-public.h" ] |
| 48 } else if (is_mac) { |
| 49 sources += [ "mac/snappy-stubs-public.h" ] |
| 50 } else { |
| 51 sources += [ "linux/snappy-stubs-public.h" ] |
| 52 } |
| 53 |
46 configs -= [ "//build/config/compiler:chromium_code" ] | 54 configs -= [ "//build/config/compiler:chromium_code" ] |
47 configs += [ | 55 configs += [ |
48 "//build/config/compiler:no_chromium_code", | 56 "//build/config/compiler:no_chromium_code", |
49 | 57 |
50 # Must be after no_chromium_code for warning flags to be ordered correctly. | 58 # Must be after no_chromium_code for warning flags to be ordered correctly. |
51 ":snappy_warnings", | 59 ":snappy_warnings", |
52 ] | 60 ] |
53 public_configs = [ ":snappy_config" ] | 61 public_configs = [ ":snappy_config" ] |
54 | 62 |
55 # Chromium doesn't use automake, but we generated config.h offline for all the | 63 # Chromium doesn't use automake, but we generated config.h offline for all the |
56 # platforms that we build for. | 64 # platforms that we build for. |
57 defines = [ "HAVE_CONFIG_H" ] | 65 defines = [ "HAVE_CONFIG_H" ] |
58 } | 66 } |
OLD | NEW |