| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 static_library("mime_util") { | 5 static_library("mime_util") { |
| 6 sources = [ | 6 sources = [ |
| 7 "mime_util.cc", | 7 "mime_util.cc", |
| 8 "mime_util.h", | 8 "mime_util.h", |
| 9 ] | 9 ] |
| 10 | 10 |
| 11 deps = [ | 11 deps = [ |
| 12 "//base", | 12 "//base", |
| 13 "//net", | 13 "//net", |
| 14 ] | 14 ] |
| 15 |
| 16 # iOS doesn't use and must not depend on //media |
| 17 if (!is_ios) { |
| 18 deps += [ "//media" ] |
| 19 } |
| 15 } | 20 } |
| 16 | 21 |
| 17 source_set("unit_tests") { | 22 source_set("unit_tests") { |
| 18 testonly = true | 23 testonly = true |
| 19 sources = [ | 24 sources = [ |
| 20 "mime_util_unittest.cc", | 25 "mime_util_unittest.cc", |
| 21 ] | 26 ] |
| 22 | 27 |
| 23 deps = [ | 28 deps = [ |
| 24 ":mime_util", | 29 ":mime_util", |
| 25 "//base", | 30 "//base", |
| 26 "//testing/gtest", | 31 "//testing/gtest", |
| 27 ] | 32 ] |
| 28 } | 33 } |
| OLD | NEW |