Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: test/mac/bundle-resources/test.gyp

Issue 23681007: mac: Add a test for various bundle resource scenarious. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mac/bundle-resources/secret.txt ('k') | test/mac/gyptest-bundle-resources.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2013 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 {
5 'targets': [
6 {
7 'target_name': 'resource',
8 'type': 'executable',
9 'mac_bundle': 1,
10 'mac_bundle_resources': [
11 'secret.txt',
12 ],
13 },
14 # A rule with process_outputs_as_mac_bundle_resources should copy files
15 # into the Resources folder.
16 {
17 'target_name': 'source_rule',
18 'type': 'executable',
19 'mac_bundle': 1,
20 'sources': [
21 'secret.txt',
22 ],
23 'rules': [
24 {
25 'rule_name': 'bundlerule',
26 'extension': 'txt',
27 'outputs': [
28 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).txt',
29 ],
30 'action': ['bash', './change.sh', '<(RULE_INPUT_PATH)', '<@(_outputs)' ],
31 'message': 'Running rule on <(RULE_INPUT_PATH)',
32 'process_outputs_as_mac_bundle_resources': 1,
33 },
34 ],
35 },
36 # So should an ordinary rule acting on mac_bundle_resources.
37 {
38 'target_name': 'resource_rule',
39 'type': 'executable',
40 'mac_bundle': 1,
41 'mac_bundle_resources': [
42 'secret.txt',
43 ],
44 'rules': [
45 {
46 'rule_name': 'bundlerule',
47 'extension': 'txt',
48 'outputs': [
49 '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).txt',
50 ],
51 'action': ['bash', './change.sh', '<(RULE_INPUT_PATH)', '<@(_outputs)' ],
52 'message': 'Running rule on <(RULE_INPUT_PATH)',
53 },
54 ],
55 },
56 ],
57 }
58
OLDNEW
« no previous file with comments | « test/mac/bundle-resources/secret.txt ('k') | test/mac/gyptest-bundle-resources.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698