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

Side by Side Diff: third_party/libexif/BUILD.gn

Issue 960413003: Apply gn format with 'sources' sorting to src/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-format-sort-2
Patch Set: . Created 5 years, 9 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
OLDNEW
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 # Linux should use system libexif 5 # Linux should use system libexif
6 if (!is_linux || is_chromeos) { 6 if (!is_linux || is_chromeos) {
7 # TODO(thestig): Properly support building on Linux. 7 # TODO(thestig): Properly support building on Linux.
8 config("libexif_config") { 8 config("libexif_config") {
9 include_dirs = [ "sources" ] 9 include_dirs = [ "sources" ]
10 if (is_clang) { 10 if (is_clang) {
11 cflags = [ 11 cflags = [
12 "-Wno-enum-conversion", 12 "-Wno-enum-conversion",
13 "-Wno-switch", 13 "-Wno-switch",
14 "-Wno-format", 14 "-Wno-format",
15 15
16 # libexif uses fabs(int) to cast to float. 16 # libexif uses fabs(int) to cast to float.
17 "-Wno-absolute-value", 17 "-Wno-absolute-value",
18 ] 18 ]
19 } 19 }
20 } 20 }
21 21
22 static_library("libexif") { 22 static_library("libexif") {
23 sources = [ 23 sources = [
24 "sources/libexif/canon/exif-mnote-data-canon.c",
25 "sources/libexif/canon/mnote-canon-entry.c",
26 "sources/libexif/canon/mnote-canon-tag.c",
24 "sources/libexif/exif-byte-order.c", 27 "sources/libexif/exif-byte-order.c",
25 "sources/libexif/exif-content.c", 28 "sources/libexif/exif-content.c",
26 "sources/libexif/exif-data.c", 29 "sources/libexif/exif-data.c",
27 "sources/libexif/exif-entry.c", 30 "sources/libexif/exif-entry.c",
28 "sources/libexif/exif-format.c", 31 "sources/libexif/exif-format.c",
29 "sources/libexif/exif-ifd.c", 32 "sources/libexif/exif-ifd.c",
30 "sources/libexif/exif-loader.c", 33 "sources/libexif/exif-loader.c",
31 "sources/libexif/exif-log.c", 34 "sources/libexif/exif-log.c",
32 "sources/libexif/exif-mem.c", 35 "sources/libexif/exif-mem.c",
33 "sources/libexif/exif-mnote-data.c", 36 "sources/libexif/exif-mnote-data.c",
34 "sources/libexif/exif-tag.c", 37 "sources/libexif/exif-tag.c",
35 "sources/libexif/exif-utils.c", 38 "sources/libexif/exif-utils.c",
36 "sources/libexif/canon/exif-mnote-data-canon.c",
37 "sources/libexif/canon/mnote-canon-entry.c",
38 "sources/libexif/canon/mnote-canon-tag.c",
39 "sources/libexif/fuji/exif-mnote-data-fuji.c", 39 "sources/libexif/fuji/exif-mnote-data-fuji.c",
40 "sources/libexif/fuji/mnote-fuji-entry.c", 40 "sources/libexif/fuji/mnote-fuji-entry.c",
41 "sources/libexif/fuji/mnote-fuji-tag.c", 41 "sources/libexif/fuji/mnote-fuji-tag.c",
42 "sources/libexif/olympus/exif-mnote-data-olympus.c", 42 "sources/libexif/olympus/exif-mnote-data-olympus.c",
43 "sources/libexif/olympus/mnote-olympus-entry.c", 43 "sources/libexif/olympus/mnote-olympus-entry.c",
44 "sources/libexif/olympus/mnote-olympus-tag.c", 44 "sources/libexif/olympus/mnote-olympus-tag.c",
45 "sources/libexif/pentax/exif-mnote-data-pentax.c", 45 "sources/libexif/pentax/exif-mnote-data-pentax.c",
46 "sources/libexif/pentax/mnote-pentax-entry.c", 46 "sources/libexif/pentax/mnote-pentax-entry.c",
47 "sources/libexif/pentax/mnote-pentax-tag.c", 47 "sources/libexif/pentax/mnote-pentax-tag.c",
48 ] 48 ]
(...skipping 17 matching lines...) Expand all
66 } else if (is_linux) { 66 } else if (is_linux) {
67 libs = [ "m" ] 67 libs = [ "m" ]
68 } 68 }
69 69
70 configs -= [ "//build/config/compiler:chromium_code" ] 70 configs -= [ "//build/config/compiler:chromium_code" ]
71 configs += [ "//build/config/compiler:no_chromium_code" ] 71 configs += [ "//build/config/compiler:no_chromium_code" ]
72 72
73 public_configs = [ ":libexif_config" ] 73 public_configs = [ ":libexif_config" ]
74 } 74 }
75 } 75 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698