De-duplicate BASE_IMPLEMENTATION define in the GN build.
[chromium-blink-merge.git] / base / json / BUILD.gn
blob70830c15e55d583b71bd25de188855edee898914
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
3 # found in the LICENSE file.
5 source_set("json") {
6   sources = [
7     "json_file_value_serializer.cc",
8     "json_file_value_serializer.h",
9     "json_parser.cc",
10     "json_parser.h",
11     "json_reader.cc",
12     "json_reader.h",
13     "json_string_value_serializer.cc",
14     "json_string_value_serializer.h",
15     "json_value_converter.cc",
16     "json_value_converter.h",
17     "json_writer.cc",
18     "json_writer.h",
19     "string_escape.cc",
20     "string_escape.h",
21   ]
23   if (is_nacl) {
24     sources -= [
25       "json_file_value_serializer.cc",
26       "json_file_value_serializer.h",
27     ]
28   }
30   configs += [ "//base:base_implementation" ]
32   deps = [
33     "//base/memory",
34   ]
36   visibility = [ "//base/*" ]