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

Unified Diff: components/webcrypto/webcrypto.gyp

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/test/test_helpers.cc ('k') | components/webcrypto/webcrypto_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/webcrypto.gyp
diff --git a/components/webcrypto/webcrypto.gyp b/components/webcrypto/webcrypto.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..91b44762aa9763eb3dfcdf2d2e89abeadeee851b
--- /dev/null
+++ b/components/webcrypto/webcrypto.gyp
@@ -0,0 +1,131 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'webcrypto',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../../base/base.gyp:base',
+ '../tracing.gyp:tracing',
+ '../../skia/skia.gyp:skia',
+ '../../ui/base/ui_base.gyp:ui_base',
+ '../../ui/events/events.gyp:gestures_blink',
+ '../../url/url.gyp:url_lib',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'export_dependent_settings': [
+ '../../base/base.gyp:base',
+ ],
+ # Disable c4267 warnings until we fix size_t to int truncations.
+ 'msvs_disabled_warnings': [ 4267, ],
+ 'variables': {
+ 'webcrypto_sources': [
+ 'algorithm_dispatch.cc',
+ 'algorithm_dispatch.h',
+ 'algorithm_implementation.cc',
+ 'algorithm_implementation.h',
+ 'algorithm_registry.cc',
+ 'algorithm_registry.h',
+ 'crypto_data.cc',
+ 'crypto_data.h',
+ 'generate_key_result.cc',
+ 'generate_key_result.h',
+ 'jwk.cc',
+ 'jwk.h',
+ 'platform_crypto.h',
+ 'status.cc',
+ 'status.h',
+ 'webcrypto_impl.cc',
+ 'webcrypto_impl.h',
+ 'webcrypto_util.cc',
+ 'webcrypto_util.h',
+ ],
+ 'webcrypto_nss_sources': [
+ 'nss/aes_algorithm_nss.cc',
+ 'nss/aes_algorithm_nss.h',
+ 'nss/aes_cbc_nss.cc',
+ 'nss/aes_gcm_nss.cc',
+ 'nss/aes_kw_nss.cc',
+ 'nss/hmac_nss.cc',
+ 'nss/key_nss.cc',
+ 'nss/key_nss.h',
+ 'nss/rsa_hashed_algorithm_nss.cc',
+ 'nss/rsa_hashed_algorithm_nss.h',
+ 'nss/rsa_oaep_nss.cc',
+ 'nss/rsa_ssa_nss.cc',
+ 'nss/sha_nss.cc',
+ 'nss/sym_key_nss.cc',
+ 'nss/sym_key_nss.h',
+ 'nss/util_nss.cc',
+ 'nss/util_nss.h',
+ ],
+ 'webcrypto_openssl_sources': [
+ 'openssl/aes_algorithm_openssl.cc',
+ 'openssl/aes_algorithm_openssl.h',
+ 'openssl/aes_cbc_openssl.cc',
+ 'openssl/aes_ctr_openssl.cc',
+ 'openssl/aes_gcm_openssl.cc',
+ 'openssl/aes_kw_openssl.cc',
+ 'openssl/ec_algorithm_openssl.cc',
+ 'openssl/ec_algorithm_openssl.h',
+ 'openssl/ecdh_openssl.cc',
+ 'openssl/ecdsa_openssl.cc',
+ 'openssl/hkdf_openssl.cc',
+ 'openssl/hmac_openssl.cc',
+ 'openssl/key_openssl.cc',
+ 'openssl/key_openssl.h',
+ 'openssl/pbkdf2_openssl.cc',
+ 'openssl/rsa_hashed_algorithm_openssl.cc',
+ 'openssl/rsa_hashed_algorithm_openssl.h',
+ 'openssl/rsa_oaep_openssl.cc',
+ 'openssl/rsa_pss_openssl.cc',
+ 'openssl/rsa_sign_openssl.cc',
+ 'openssl/rsa_sign_openssl.h',
+ 'openssl/rsa_ssa_openssl.cc',
+ 'openssl/sha_openssl.cc',
+ 'openssl/util_openssl.cc',
+ 'openssl/util_openssl.h',
+ ],
+ },
+ 'sources': [
+ '<@(webcrypto_sources)',
+ ],
+ 'conditions': [
+ ['OS=="android"', {
+ 'dependencies': [
+ '../../build/android/ndk.gyp:cpu_features',
+ ],
+ }],
+ ['use_openssl==1', {
+ 'sources': [
+ '<@(webcrypto_openssl_sources)',
+ ],
+ 'dependencies': [
+ '../../third_party/boringssl/boringssl.gyp:boringssl',
+ ],
+ }, {
+ 'sources': [
+ '<@(webcrypto_nss_sources)',
+ ],
+ 'conditions': [
+ ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
+ 'dependencies': [
+ '../../build/linux/system.gyp:ssl',
+ ],
+ }, {
+ 'dependencies': [
+ '../../third_party/nss/nss.gyp:nspr',
+ '../../third_party/nss/nss.gyp:nss',
+ ],
+ }],
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « components/webcrypto/test/test_helpers.cc ('k') | components/webcrypto/webcrypto_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698