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

Unified Diff: third_party/snappy/snappy.gyp

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 years, 3 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 | « third_party/snappy/mac/snappy-stubs-public.h ('k') | third_party/snappy/snappy.target.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/snappy/snappy.gyp
diff --git a/third_party/snappy/snappy.gyp b/third_party/snappy/snappy.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..ac0186f5da70bc03d43438e516b2802fb1c142e5
--- /dev/null
+++ b/third_party/snappy/snappy.gyp
@@ -0,0 +1,99 @@
+# Copyright (c) 2012 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.
+
+{
+'variables': {
+ 'conditions': [
+ # Define an "os_include" variable that points at the OS-specific generated
+ # headers. These were generated by running the configure script offline.
+ ['os_posix == 1 and OS != "mac"', {
+ 'os_include': 'linux'
+ }],
+ ['OS=="mac"', {'os_include': 'mac'}],
+ ['OS=="win"', {'os_include': 'win32'}],
+ ],
+ 'use_system_libxml%': 0,
+ },
+ 'targets': [
+ {
+ 'target_name': 'snappy',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '<(os_include)',
+ 'src',
+ '../..',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ '<(os_include)',
+ 'src',
+ ],
+ },
+ 'variables': {
+ 'clang_warning_flags_unset': [
+ # snappy-stubs-internal.h unapologetically has: using namespace std
+ # https://code.google.com/p/snappy/issues/detail?id=70
+ '-Wheader-hygiene',
+ ],
+ },
+ 'sources': [
+ 'src/snappy-internal.h',
+ 'src/snappy-sinksource.cc',
+ 'src/snappy-sinksource.h',
+ 'src/snappy-stubs-internal.cc',
+ 'src/snappy-stubs-internal.h',
+ 'src/snappy.cc',
+ 'src/snappy.h',
+ ],
+ 'conditions': [
+ ['OS=="linux" or OS=="mac"', {
+ 'defines': [
+ # TODO(tfarina): Only Mac and Linux has the generated config.h for
+ # now. Generate the config.h for Windows too and enable this there
+ # as well.
+ 'HAVE_CONFIG_H=1',
+ ],
+ }],
+ ['OS=="win"', {
+ # Signed/unsigned comparison
+ 'msvs_disabled_warnings': [
+ # https://code.google.com/p/snappy/issues/detail?id=71
+ 4018,
+ # https://code.google.com/p/snappy/issues/detail?id=75
+ 4267,
+ ],
+ }],
+ ],
+ },
+ {
+ 'target_name': 'snappy_unittest',
+ 'type': 'executable',
+ 'sources': [
+ 'src/snappy-test.cc',
+ 'src/snappy-test.h',
+ 'src/snappy_unittest.cc',
+ ],
+ 'dependencies': [
+ 'snappy',
+ '../../base/base.gyp:base',
+ '../../testing/gtest.gyp:gtest',
+ '../../third_party/zlib/zlib.gyp:zlib',
+ ],
+ 'variables': {
+ 'clang_warning_flags': [ '-Wno-return-type' ],
+ 'clang_warning_flags_unset': [ '-Wheader-hygiene' ],
+ },
+ 'conditions': [
+ ['OS=="linux" or OS=="mac"', {
+ 'defines': [
+ # TODO(tfarina): Only Mac and Linux has the generated config.h for
+ # now. Generate the config.h for Windows too and enable this there
+ # as well.
+ 'HAVE_CONFIG_H=1',
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « third_party/snappy/mac/snappy-stubs-public.h ('k') | third_party/snappy/snappy.target.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698