897552ee4f6aa389b80c839e502a7966916f948c
[platform/framework/web/tizen-extensions-crosswalk.git] / speech / speech.gyp
1 {
2   'includes':[
3     '../common/common.gypi',
4   ],
5   'variables': {
6     'gdbus_codegen_path': '<(SHARED_INTERMEDIATE_DIR)/speech',
7   },
8   'targets': [
9     {
10       'target_name': 'tizen_speech',
11       'type': 'loadable_module',
12       'variables': {
13         'packages': [
14           'glib-2.0',
15           'gio-2.0',
16           'gio-unix-2.0',
17         ],
18       },
19       'includes': [
20         '../common/pkg-config.gypi',
21       ],
22       'dependencies': [
23         'tizen_speech_gen',
24       ],
25       'sources': [
26         'speech_api.js',
27         'speech_extension.cc',
28         'speech_extension.h',
29         'speech_instance.cc',
30         'speech_instance.h',
31         '../common/extension.cc',
32         '../common/extension.h',        
33       ],
34     },
35     {
36       'target_name': 'tizen_speech_gen',
37       'type': 'static_library',
38       'variables': {
39         'packages': [
40           'gio-2.0',
41           'gio-unix-2.0',
42         ],
43       },
44       'include_dirs': [
45         './',
46       ],
47       'actions': [
48         {
49           'variables': {
50             'generate_args': [
51               '--interface-prefix',
52               'org.tizen',
53               '--c-namespace',
54               'Tizen',
55               '--generate-c-code',
56               '<(gdbus_codegen_path)/tizen_srs_gen',
57             ],
58           },
59           'action_name': 'srs_gen',
60           'inputs': [
61             'org.tizen.srs.xml',
62           ],
63           'outputs': [
64             '<(gdbus_codegen_path)/tizen_srs_gen.c',
65             '<(gdbus_codegen_path)/tizen_srs_gen.h',
66           ],
67           'action': [
68             'gdbus-codegen',
69             '<@(generate_args)',
70             '<@(_inputs)',
71           ],
72         },
73       ],
74       'cflags!': [ '-std=c++0x' ],
75       'sources': [
76         '<(gdbus_codegen_path)/tizen_srs_gen.c',
77         '<(gdbus_codegen_path)/tizne_srs_gen.h',
78       ],
79       'includes': [
80         '../common/pkg-config.gypi',
81       ],
82     },
83   ],
84 }