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

Side by Side Diff: third_party/BUILD.gn

Issue 267723015: Add GN targets for third_party/libjpeg_turbo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2014 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.
4
5 if (is_android) {
6 import("//build/config/android/config.gni")
7 }
8
9 declare_args() {
10 # Uses system libjpeg. If true, overrides use_libjpeg_turbo.
11 use_system_libjpeg = is_android && is_android_webview_build
12
13 # Uses libjpeg_turbo as the jpeg implementation. Has no effect if
14 # use_system_libjpeg is set.
15 use_libjpeg_turbo = true
16 }
17
18 config("system_libjpeg_config") {
19 defines = [ "USE_SYSTEM_LIBJPEG" ]
20 }
21
22 config("libjpeg_turbo_config") {
23 defines = [ "USE_LIBJPEG_TURBO" ]
24 }
25
26 group("jpeg") {
brettw 2014/05/03 04:38:33 Can you put an comment here about this meta-target
ckocagil 2014/05/03 06:43:46 Done!
27 if (use_system_libjpeg) {
28 libs = [ "jpeg" ]
29 direct_dependent_configs = [ ":system_libjpeg_config" ]
30 } else if (use_libjpeg_turbo) {
31 deps = [ "//third_party/libjpeg_turbo:libjpeg" ]
32 direct_dependent_configs = [ ":libjpeg_turbo_config" ]
33 } else {
34 deps = [ "//third_party/libjpeg:libjpeg" ]
35 }
36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698