blob: 739841d3932989f83c7711f6fd325ac0a0a35a93 [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': [
pbos@webrtc.orgfd0f2672014-01-24 10:43:47 +000013 '../webrtc.gyp:webrtc',
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000014 ],
15 },
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000016 'targets': [
17 {
andrew@webrtc.orge858d132011-12-20 22:07:48 +000018 'target_name': 'no_op',
19 'type': 'executable',
20 'dependencies': [
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000021 '<@(merge_libs_dependencies)',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000022 ],
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000023 'sources': ['no_op.cc',],
andrew@webrtc.orge858d132011-12-20 22:07:48 +000024 },
25 {
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000026 'target_name': 'merged_lib',
27 'type': 'none',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000028 'dependencies': [
andrew@webrtc.orge858d132011-12-20 22:07:48 +000029 'no_op',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000030 ],
31 'actions': [
32 {
33 'variables': {
34 'output_lib_name': 'webrtc',
mflodman@webrtc.org7597a852012-05-22 08:32:20 +000035 'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000036 },
37 'action_name': 'merge_libs',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000038 'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000039 'outputs': ['<(output_lib)'],
40 'action': ['python',
41 'merge_libs.py',
42 '<(PRODUCT_DIR)',
andrew@webrtc.orgf33dfa82012-01-20 01:32:16 +000043 '<(output_lib)',],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000044 },
45 ],
46 },
47 ],
48}