andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 1 | # 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.org | f7795df | 2014-05-13 18:00:26 +0000 | [diff] [blame^] | 13 | '../base/base_tests.gyp:webrtc_base_tests_utils', |
pbos@webrtc.org | 6726cce | 2014-01-24 10:43:47 +0000 | [diff] [blame] | 14 | '../webrtc.gyp:webrtc', |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 15 | ], |
| 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.org | 4112a51 | 2014-02-11 18:22:29 +0000 | [diff] [blame] | 35 | 'output_lib_name': 'webrtc_merged', |
andrew@webrtc.org | a7b57da | 2012-10-22 18:19:23 +0000 | [diff] [blame] | 36 | '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 | } |