a9bd960ed4d489c6c9708a50d1788d022631b608
[platform/framework/web/crosswalk.git] / src / xwalk / extensions / external_extension_sample.gyp
1 {
2   'target_defaults': {
3     'include_dirs': [
4       '../..',
5     ],
6   },
7   'targets': [
8     {
9       'target_name': 'echo_extension',
10       'type': 'loadable_module',
11       'variables': {
12         # We do not strip the binaries on Mac because the tool that does that
13         # gets confused when you change the 'product_dir' (the binary output
14         # directory). Since these are only for testing, no harm is done.
15         'mac_strip': 0,
16       },
17       'sources': [
18         'test/echo_extension.c',
19       ],
20       'conditions': [
21         ['OS=="win"', {
22           'product_dir': '<(PRODUCT_DIR)\\tests\\extension\\echo_extension\\'
23         }, {
24           'product_dir': '<(PRODUCT_DIR)/tests/extension/echo_extension/'
25         }],
26       ],
27     },
28     {
29       'target_name': 'bad_extension',
30       'type': 'loadable_module',
31       'variables': {
32         'mac_strip': 0,
33       },
34       'sources': [
35         'test/bad_extension.c',
36       ],
37       'conditions': [
38         ['OS=="win"', {
39           'product_dir': '<(PRODUCT_DIR)\\tests\\extension\\bad_extension\\'
40         }, {
41           'product_dir': '<(PRODUCT_DIR)/tests/extension/bad_extension/'
42         }],
43       ],
44     },
45     {
46       'target_name': 'get_runtime_variable',
47       'type': 'loadable_module',
48       'variables': {
49         'mac_strip': 0,
50       },
51       'sources': [
52         'test/get_runtime_variable.c',
53       ],
54       'conditions': [
55         ['OS=="win"', {
56           'product_dir': '<(PRODUCT_DIR)\\tests\\extension\\get_runtime_variable\\'
57         }, {
58           'product_dir': '<(PRODUCT_DIR)/tests/extension/get_runtime_variable/'
59         }],
60       ],
61     },
62     {
63       'target_name': 'multiple_entry_points_extension',
64       'type': 'loadable_module',
65       'variables': {
66         'mac_strip': 0,
67       },
68       'sources': [
69         'test/multiple_entry_points_extension.c',
70       ],
71       'conditions': [
72         ['OS=="win"', {
73           'product_dir': '<(PRODUCT_DIR)\\tests\\extension\\multiple_extension\\'
74         }, {
75           'product_dir': '<(PRODUCT_DIR)/tests/extension/multiple_extension/'
76         }],
77       ],
78     },
79     {
80       'target_name': 'crash_extension',
81       'type': 'loadable_module',
82       'variables': {
83         'mac_strip': 0,
84       },
85       'sources': [
86         'test/crash_extension.c',
87       ],
88       'conditions': [
89         ['OS=="win"', {
90           'product_dir': '<(PRODUCT_DIR)\\tests\\extension\\crash_extension\\'
91         }, {
92           'product_dir': '<(PRODUCT_DIR)/tests/extension/crash_extension/'
93         }],
94       ],
95     },
96   ],
97 }