2014-02-14 23:21:05 +00:00
|
|
|
# Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file or at
|
|
|
|
# https://developers.google.com/open-source/licenses/bsd
|
2014-02-13 23:56:38 +00:00
|
|
|
|
|
|
|
{
|
2014-07-02 16:58:40 +00:00
|
|
|
'includes': [
|
|
|
|
'../../common.gypi',
|
|
|
|
],
|
2014-02-13 23:56:38 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'file',
|
|
|
|
'type': '<(component)',
|
|
|
|
'sources': [
|
|
|
|
'file.cc',
|
|
|
|
'file.h',
|
|
|
|
'file_closer.h',
|
2015-03-13 00:54:12 +00:00
|
|
|
'io_cache.cc',
|
|
|
|
'io_cache.h',
|
2014-02-13 23:56:38 +00:00
|
|
|
'local_file.cc',
|
|
|
|
'local_file.h',
|
2015-03-19 18:28:04 +00:00
|
|
|
'threaded_io_file.cc',
|
|
|
|
'threaded_io_file.h',
|
2014-04-30 23:22:15 +00:00
|
|
|
'udp_file.h',
|
2014-02-13 23:56:38 +00:00
|
|
|
],
|
2015-03-21 02:18:38 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS == "win"', {
|
|
|
|
'sources': [
|
|
|
|
'udp_file_win.cc',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'sources': [
|
|
|
|
'udp_file_posix.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-02-13 23:56:38 +00:00
|
|
|
'dependencies': [
|
|
|
|
'../../base/base.gyp:base',
|
2014-04-30 23:22:15 +00:00
|
|
|
'../../third_party/gflags/gflags.gyp:gflags',
|
2015-03-19 18:28:04 +00:00
|
|
|
'../base/media_base.gyp:base',
|
2014-02-13 23:56:38 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'file_unittest',
|
|
|
|
'type': '<(gtest_target_type)',
|
|
|
|
'sources': [
|
|
|
|
'file_unittest.cc',
|
2015-03-13 00:54:12 +00:00
|
|
|
'io_cache_unittest.cc',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'../../testing/gtest.gyp:gtest',
|
|
|
|
'../../testing/gtest.gyp:gtest_main',
|
|
|
|
'file',
|
|
|
|
],
|
|
|
|
},
|
2014-02-13 23:56:38 +00:00
|
|
|
],
|
|
|
|
}
|