diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/win/shard')
7 files changed, 107 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/hello.cc b/media/webrtc/trunk/tools/gyp/test/win/shard/hello.cc new file mode 100644 index 000000000..a9dce6245 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/hello.cc @@ -0,0 +1,7 @@ +// 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. + +int main() { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/hello1.cc b/media/webrtc/trunk/tools/gyp/test/win/shard/hello1.cc new file mode 100644 index 000000000..0eccf2861 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/hello1.cc @@ -0,0 +1,7 @@ +// Copyright (c) 2013 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. + +int f1() { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/hello2.cc b/media/webrtc/trunk/tools/gyp/test/win/shard/hello2.cc new file mode 100644 index 000000000..23fcb546c --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/hello2.cc @@ -0,0 +1,7 @@ +// Copyright (c) 2013 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. + +int f2() { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/hello3.cc b/media/webrtc/trunk/tools/gyp/test/win/shard/hello3.cc new file mode 100644 index 000000000..a72e2efb5 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/hello3.cc @@ -0,0 +1,7 @@ +// Copyright (c) 2013 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. + +int f3() { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/hello4.cc b/media/webrtc/trunk/tools/gyp/test/win/shard/hello4.cc new file mode 100644 index 000000000..a94df1949 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/hello4.cc @@ -0,0 +1,7 @@ +// Copyright (c) 2013 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. + +int f4() { + return 0; +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/shard.gyp b/media/webrtc/trunk/tools/gyp/test/win/shard/shard.gyp new file mode 100644 index 000000000..eac45fcff --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/shard.gyp @@ -0,0 +1,31 @@ +# Copyright (c) 2013 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. + +{ + 'targets': [ + { + 'target_name': 'shard', + 'type': 'static_library', + 'msvs_shard': 4, + 'sources': [ + 'hello1.cc', + 'hello2.cc', + 'hello3.cc', + 'hello4.cc', + ], + 'product_dir': '<(PRODUCT_DIR)', + }, + { + 'target_name': 'refs_to_shard', + 'type': 'executable', + 'dependencies': [ + # Make sure references are correctly updated. + 'shard', + ], + 'sources': [ + 'hello.cc', + ], + }, + ] +} diff --git a/media/webrtc/trunk/tools/gyp/test/win/shard/shard_ref.gyp b/media/webrtc/trunk/tools/gyp/test/win/shard/shard_ref.gyp new file mode 100644 index 000000000..3ec8d76f9 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/win/shard/shard_ref.gyp @@ -0,0 +1,41 @@ +# 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. + +{ + 'targets': [ + { + 'target_name': 'refs_to_shard_external_lib', + 'type': 'static_library', + 'dependencies': [ + # Make sure references in other files are updated correctly. + 'shard.gyp:shard', + ], + 'sources': [ + 'hello.cc', + ], + }, + { + 'target_name': 'refs_to_shard_external_exe', + 'type': 'executable', + 'dependencies': [ + # Make sure references in other files are updated correctly. + 'shard.gyp:shard', + ], + 'sources': [ + 'hello.cc', + ], + }, + { + 'target_name': 'refs_to_shard_external_dll', + 'type': 'shared_library', + 'dependencies': [ + # Make sure references in other files are updated correctly. + 'shard.gyp:shard', + ], + 'sources': [ + 'hello.cc', + ], + }, + ] +} |