blob: 02f420b7edc28dc72e3cd25a2609f0f3771c194e [file] [log] [blame]
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +00001# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9{
10 'includes': ['common.gypi',],
11 'variables': {
12 'merge_libs_dependencies': [
henrike@webrtc.orgf7795df2014-05-13 18:00:26 +000013 '../base/base_tests.gyp:webrtc_base_tests_utils',
pbos@webrtc.org6726cce2014-01-24 10:43:47 +000014 '../webrtc.gyp:webrtc',
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000015 ],
16 },
17 'targets': [
18 {
19 'target_name': 'no_op',
20 'type': 'executable',
21 'dependencies': [
22 '<@(merge_libs_dependencies)',
23 ],
24 'sources': ['no_op.cc',],
25 },
26 {
27 'target_name': 'merged_lib',
28 'type': 'none',
29 'dependencies': [
30 'no_op',
31 ],
32 'actions': [
33 {
34 'variables': {
andrew@webrtc.org4112a512014-02-11 18:22:29 +000035 'output_lib_name': 'webrtc_merged',
andrew@webrtc.orga7b57da2012-10-22 18:19:23 +000036 'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
37 },
38 'action_name': 'merge_libs',
39 'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
40 'outputs': ['<(output_lib)'],
41 'action': ['python',
42 'merge_libs.py',
43 '<(PRODUCT_DIR)',
44 '<(output_lib)',],
45 },
46 ],
47 },
48 ],
49}