Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / nonnacl_util / nonnacl_util.gyp
1 # -*- python -*-
2 #
3 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6 #
7
8 # TODO(sehr): remove need for the warning flag removals below
9 {
10   'includes': [
11     '../../../build/common.gypi',
12   ],
13   'target_defaults': {
14     'variables': {
15       'target_base': 'none',
16     },
17     'target_conditions': [
18       ['target_base=="sel_ldr_launcher"', {
19         'sources': [
20           'launcher_factory.cc',
21           'sel_ldr_launcher_standalone.cc',
22         ],
23         'conditions':[
24           ['OS=="win"', {
25             'sources': [
26               'win/sel_ldr_launcher_win.cc',
27             ],
28           }],
29           ['OS=="linux" or OS=="android"', {
30             'sources': [
31               'posix/sel_ldr_launcher_posix.cc',
32               'posix/sel_ldr_launcher_zygote_posix.cc',
33               'posix/get_plugin_dirname.cc',
34             ],
35           }],
36           ['OS=="mac"', {
37             'sources': [
38               'posix/sel_ldr_launcher_posix.cc',
39               'posix/sel_ldr_launcher_zygote_posix.cc',
40               'osx/get_plugin_dirname.mm',
41             ],
42           }]
43         ],
44         'cflags!': [
45           '-Wextra',
46         ],
47         'xcode_settings': {
48           'WARNING_CFLAGS!': [
49             '-pedantic',  # import is a gcc extension
50             '-Wextra',
51           ]
52         },
53       }],
54     ]
55   },
56   'targets': [
57     # ----------------------------------------------------------------------
58     {
59       'target_name': 'sel_ldr_launcher_base',
60       'type': 'static_library',
61       'dependencies': [
62         '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio',
63         '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc',
64         '<(DEPTH)/native_client/src/shared/serialization/serialization.gyp:serialization',
65         '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc',
66         '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer',
67         '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:env_cleanser',
68         '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:nacl_error_code',
69       ],
70       'sources': [
71         'sel_ldr_launcher.h',
72         'sel_ldr_launcher_base.cc',
73       ]
74     },
75     # ----------------------------------------------------------------------
76     {
77       'target_name': 'sel_ldr_launcher',
78       'type': 'static_library',
79       'variables': {
80         'target_base': 'sel_ldr_launcher',
81       },
82       'dependencies': [
83         'sel_ldr_launcher_base',
84         '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio',
85         '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc',
86         '<(DEPTH)/native_client/src/shared/serialization/serialization.gyp:serialization',
87         '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc',
88         '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer',
89         '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:env_cleanser',
90         '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:nacl_error_code',
91       ],
92     },
93     # ----------------------------------------------------------------------
94     {
95       'target_name': 'nonnacl_util',
96       'type': 'static_library',
97       'dependencies': [
98         'sel_ldr_launcher',
99       ],
100       'includes': [
101         'nonnacl_util.gypi',
102       ],
103     },
104   ],
105   # ----------------------------------------------------------------------
106   'conditions': [
107     ['OS=="win" and target_arch=="ia32"', {
108       'targets': [
109         # --------------------------------------------------------------------
110         {
111           'target_name': 'sel_ldr_launcher_base64',
112           'type': 'static_library',
113           'variables': {
114             'win_target': 'x64',
115           },
116           'dependencies': [
117             '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio64',
118             '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc64',
119             '<(DEPTH)/native_client/src/shared/serialization/serialization.gyp:serialization64',
120             '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc64',
121             '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer64',
122             '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:env_cleanser64',
123             '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:nacl_error_code64',
124           ],
125           'sources': [
126             'sel_ldr_launcher.h',
127             'sel_ldr_launcher_base.cc',
128           ]
129         },
130         # --------------------------------------------------------------------
131         {
132           'target_name': 'sel_ldr_launcher64',
133           'type': 'static_library',
134           'variables': {
135             'target_base': 'sel_ldr_launcher',
136             'win_target': 'x64',
137           },
138           'dependencies': [
139             'sel_ldr_launcher_base64',
140             '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio64',
141             '<(DEPTH)/native_client/src/shared/imc/imc.gyp:imc64',
142             '<(DEPTH)/native_client/src/shared/serialization/serialization.gyp:serialization64',
143             '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:nonnacl_srpc64',
144             '<(DEPTH)/native_client/src/trusted/desc/desc.gyp:nrd_xfer64',
145             '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:env_cleanser64',
146             '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:nacl_error_code64',
147           ],
148         },
149         # --------------------------------------------------------------------
150         {
151           'target_name': 'nonnacl_util64',
152           'type': 'static_library',
153           'variables': {
154             'win_target': 'x64',
155           },
156           'dependencies': [
157             'sel_ldr_launcher64',
158           ],
159           'includes': [
160             'nonnacl_util.gypi',
161           ],
162         },
163       ],
164     }],
165   ],
166 }