diff options
author | brettw <brettw@chromium.org> | 2015-02-25 10:46:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-25 18:48:11 +0000 |
commit | 70d2f6ea98ae618b24a7c517570b74d20b92a7c7 (patch) | |
tree | d9710e84119b831e80d1e41e9513a5d8c2f7dfb1 /crypto | |
parent | 830ccc4c45969c05684bb8e6919197706859d0ec (diff) | |
download | chromium_src-70d2f6ea98ae618b24a7c517570b74d20b92a7c7.zip chromium_src-70d2f6ea98ae618b24a7c517570b74d20b92a7c7.tar.gz chromium_src-70d2f6ea98ae618b24a7c517570b74d20b92a7c7.tar.bz2 |
Fix official build in GN
Changes process_version template. In GYP this is used in two ways and the GN version only supported one of these. This change also deletes an unnecessary fork of the template file, and fixes the dependencies for the extra files (previously they were just passed with "-f" and not added to the inputs of the target.
Adds a cdm_adapter template which basically matches the GYP version. Uses this for the media clearkey adapter and the widevine one in the official build.
Fixes for the crypto targets when compiling with the official build's checked-in sysroots.
Review URL: https://codereview.chromium.org/949233003
Cr-Commit-Position: refs/heads/master@{#318083}
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/BUILD.gn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/BUILD.gn b/crypto/BUILD.gn index d717197..6f99a8e 100644 --- a/crypto/BUILD.gn +++ b/crypto/BUILD.gn @@ -286,6 +286,14 @@ source_set("test_support") { } } +config("platform_config") { + if (!use_openssl && is_clang) { + # There is a broken header guard in /usr/include/nss/secmod.h: + # https://bugzilla.mozilla.org/show_bug.cgi?id=884072 + cflags = [ "-Wno-header-guard" ] + } +} + # This is a meta-target that forwards to NSS's SSL library or OpenSSL, # according to the state of the crypto flags. A target just wanting to depend # on the current SSL library should just depend on this. @@ -309,6 +317,7 @@ group("platform") { # Therefore, we need to explicitly list our custom libssl's config here # before the system one. public_configs = [ + ":platform_config", "//net/third_party/nss/ssl:ssl_config", "//third_party/nss:system_nss_no_ssl_config", ] |