Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: third_party/BUILD.gn

Issue 2779393002: Add an include-paths only jpeg group (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698