diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/action-envvars')
-rw-r--r-- | media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.gyp | 34 | ||||
-rwxr-xr-x | media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.sh | 8 |
2 files changed, 42 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.gyp b/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.gyp new file mode 100644 index 000000000..d9d65745c --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.gyp @@ -0,0 +1,34 @@ +# Copyright (c) 2012 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'targets': [ + { + 'target_name': 'action', + 'type': 'none', + 'actions': [ + { + 'inputs': [ ], + 'outputs': [ + '<(PRODUCT_DIR)/result', + '<(SHARED_INTERMEDIATE_DIR)/tempfile', + ], + 'action_name': 'Test action', + 'action': ['./action.sh', '<(SHARED_INTERMEDIATE_DIR)/tempfile' ], + }, + { + 'inputs': [ + '<(SHARED_INTERMEDIATE_DIR)/tempfile', + ], + 'outputs': [ + '<(PRODUCT_DIR)/other_result', + ], + 'action_name': 'Other test action', + 'action': ['cp', '<(SHARED_INTERMEDIATE_DIR)/tempfile', + '<(PRODUCT_DIR)/other_result' ], + }, + ], + }, + ], +} + diff --git a/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.sh b/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.sh new file mode 100755 index 000000000..48d5f6bf8 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/action-envvars/action/action.sh @@ -0,0 +1,8 @@ +# Copyright (c) 2012 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +echo 'Test output' > "${BUILT_PRODUCTS_DIR}/result" +echo 'Other output' > "$1" |