summaryrefslogtreecommitdiffstats
path: root/third_party/libexif
diff options
context:
space:
mode:
authordpranke <dpranke@chromium.org>2015-02-24 13:42:18 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-24 21:43:06 +0000
commite2ef382dd208417056acbd579620a428fa1b7af4 (patch)
tree70823f07fbe8a02bae915cec09aa5d2a3ab8fdc9 /third_party/libexif
parent70857a1fbe037a8b3666af95ac843cea1585b024 (diff)
downloadchromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.zip
chromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.tar.gz
chromium_src-e2ef382dd208417056acbd579620a428fa1b7af4.tar.bz2
Reland #317760 - add gn_all, gyp_all targets
In order to be able to make sure we are building the same list of targets in both the GYP and GN builds, this patch adds new 'gn_all' and 'gyp_all' targets. Eventually, we should make sure that if one builds 'gn_all', then building 'gyp_all', 'All', or 'all' then has nothing to do. We're not there yet, but this is a start. The 'gn_all' target replaces the //:root target in the GN builds. TBR=brettw@chromium.org BUG=461019 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:android_chromium_gn_compile_dbg,android_chromium_gn_compile_rel;tryserver.chromium.win:win8_chromium_gn_rel,win8_chromium_gn_dbg;tryserver.chromium.mac:mac_chromium_gn_rel,mac_chromium_gn_dbg Review URL: https://codereview.chromium.org/953463003 Cr-Commit-Position: refs/heads/master@{#317893}
Diffstat (limited to 'third_party/libexif')
-rw-r--r--third_party/libexif/BUILD.gn15
1 files changed, 11 insertions, 4 deletions
diff --git a/third_party/libexif/BUILD.gn b/third_party/libexif/BUILD.gn
index be8caf6..de9b2ef 100644
--- a/third_party/libexif/BUILD.gn
+++ b/third_party/libexif/BUILD.gn
@@ -4,10 +4,19 @@
# Linux should use system libexif
if (!is_linux || is_chromeos) {
-
# TODO(thestig): Properly support building on Linux.
config("libexif_config") {
include_dirs = [ "sources" ]
+ if (is_clang) {
+ cflags = [
+ "-Wno-enum-conversion",
+ "-Wno-switch",
+ "-Wno-format",
+
+ # libexif uses fabs(int) to cast to float.
+ "-Wno-absolute-value",
+ ]
+ }
}
static_library("libexif") {
@@ -51,9 +60,7 @@ if (!is_linux || is_chromeos) {
ldflags = [ "/DEF:" + rebase_path("libexif.def") ]
- cflags = [
- "/wd4018", # size/unsigned mismatch
- ]
+ cflags = [ "/wd4018" ] # size/unsigned mismatch
# TODO(GYP): Handle /analyze switch, when it will be used in GN.
} else if (is_linux) {