blob: d257c9916870dcd6a735fd7951186eb114aa2072 [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',
henrike@webrtc.org66a35822014-08-26 22:04:04 +000014 '../sound/sound.gyp:rtc_sound',
henrike@webrtc.orgd72a7592014-09-02 15:41:12 +000015 '../libjingle/xmllite/xmllite.gyp:rtc_xmllite',
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000016 ],
17 },
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000018 'targets': [
19 {
andrew@webrtc.orge858d132011-12-20 22:07:48 +000020 'target_name': 'no_op',
21 'type': 'executable',
22 'dependencies': [
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000023 '<@(merge_libs_dependencies)',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000024 ],
andrew@webrtc.org0be1f232012-09-15 02:50:52 +000025 'sources': ['no_op.cc',],
andrew@webrtc.orge858d132011-12-20 22:07:48 +000026 },
27 {
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000028 'target_name': 'merged_lib',
29 'type': 'none',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000030 'dependencies': [
andrew@webrtc.orge858d132011-12-20 22:07:48 +000031 'no_op',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000032 ],
33 'actions': [
34 {
35 'variables': {
andrew@webrtc.orgaa1278d2014-02-11 18:22:29 +000036 'output_lib_name': 'webrtc_merged',
mflodman@webrtc.org7597a852012-05-22 08:32:20 +000037 'output_lib': '<(PRODUCT_DIR)/<(STATIC_LIB_PREFIX)<(output_lib_name)<(STATIC_LIB_SUFFIX)',
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000038 },
39 'action_name': 'merge_libs',
andrew@webrtc.orge858d132011-12-20 22:07:48 +000040 'inputs': ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)no_op<(EXECUTABLE_SUFFIX)'],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000041 'outputs': ['<(output_lib)'],
42 'action': ['python',
43 'merge_libs.py',
44 '<(PRODUCT_DIR)',
andrew@webrtc.orgf33dfa82012-01-20 01:32:16 +000045 '<(output_lib)',],
andrew@webrtc.org3ce62fc2011-10-06 01:03:18 +000046 },
47 ],
48 },
49 ],
50}