| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 if (is_android) { | 5 if (is_android) { |
| 6 import("//build/config/android/config.gni") | 6 import("//build/config/android/config.gni") |
| 7 } | 7 } |
| 8 | 8 |
| 9 assert(!is_ios, "This is not used on iOS, don't drag it in unintentionally") | 9 assert(!is_ios, "This is not used on iOS, don't drag it in unintentionally") |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 public_deps = [ | 36 public_deps = [ |
| 37 "//third_party/libjpeg_turbo:libjpeg", | 37 "//third_party/libjpeg_turbo:libjpeg", |
| 38 ] | 38 ] |
| 39 public_configs = [ ":libjpeg_turbo_config" ] | 39 public_configs = [ ":libjpeg_turbo_config" ] |
| 40 } else { | 40 } else { |
| 41 public_deps = [ | 41 public_deps = [ |
| 42 "//third_party/libjpeg:libjpeg", | 42 "//third_party/libjpeg:libjpeg", |
| 43 ] | 43 ] |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 |
| 47 # This is a meta target that forwards include paths only to the system's |
| 48 # libjpeg, third_party/libjpeg, or third_party/libjpeg_turbo depending on the |
| 49 # build args declared in this file. This is needed, rarely, for targets that |
| 50 # need to reference libjpeg without explicitly building it. |
| 51 group("jpeg_includes") { |
| 52 if (use_system_libjpeg) { |
| 53 public_configs = [ ":system_libjpeg_config" ] |
| 54 } else if (use_libjpeg_turbo) { |
| 55 public_configs = [ "//third_party/libjpeg_turbo:libjpeg_config" ] |
| 56 } else { |
| 57 public_configs = [ "//third_party/libjpeg:libjpeg_config" ] |
| 58 } |
| 59 } |
| OLD | NEW |