blob: 0248d9c98f77e5a7cf511ca9c9509668ce0af301 [file] [log] [blame]
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +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{
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000010 'includes': ['common.gypi',],
11 'variables': {
12 'merge_libs_dependencies': [
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000013 ],
14 },
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000015 'targets': [
16 {
andrew@webrtc.orge858d132011-12-20 22:07:48 +000017 'target_name': 'no_op',
18 'type': 'executable',
19 'dependencies': [
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000020 '<@(merge_libs_dependencies)',
andrew@webrtc.org7351d4d2014-09-16 18:48:53 +000021 '../webrtc.gyp:webrtc',
henrike@webrtc.org269fb4b2014-10-28 22:20:11 +000022 '../p2p/p2p.gyp:rtc_p2p',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000023 ],
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000024 'sources': ['no_op.cc',],
andrew@webrtc.orge858d132011-12-20 22:07:48 +000025 },
26 {
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000027 'target_name': 'merged_lib',
28 'type': 'none',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000029 'dependencies': [
andrew@webrtc.orge858d132011-12-20 22:07:48 +000030 'no_op',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000031 ],
32 'actions': [
33 {
34 'variables': {
andrew@webrtc.orgaa1278d2014-02-11 18:22:29 +000035 'output_lib_name': 'webrtc_merged',
mflodman@webrtc.org7597a852012-05-22 08:32:20 +000036 'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000037 },
38 'action_name': 'merge_libs',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000039 'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000040 'outputs': ['<(output_lib)'],
41 'action': ['python',
42 'merge_libs.py',
43 '<(PRODUCT_DIR)',
andrew@webrtc.orgf33dfa82012-01-20 01:32:16 +000044 '<(output_lib)',],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000045 },
46 ],
47 },
48 ],
49}