diff options
author | dpranke <dpranke@chromium.org> | 2015-02-23 22:52:39 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-24 06:53:29 +0000 |
commit | ff30e3de333305ccdaa103aa7f9e46765da83e99 (patch) | |
tree | b7b1013ae34ca464347636085a3fa3abb45db2d9 /third_party/libexif | |
parent | f428c79fe88b2458ea659c889227a40383e65e23 (diff) | |
download | chromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.zip chromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.tar.gz chromium_src-ff30e3de333305ccdaa103aa7f9e46765da83e99.tar.bz2 |
add gn_all, gyp_all targets to the build files, remove GN's //:root
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.
R=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/936193004
Cr-Commit-Position: refs/heads/master@{#317760}
Diffstat (limited to 'third_party/libexif')
-rw-r--r-- | third_party/libexif/BUILD.gn | 15 |
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) { |