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

Side by Side Diff: chrome/nacl.gypi

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create a zygote folder Created 7 years, 5 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/nacl/DEPS » ('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) 2012 The Chromium Authors. 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 {
6 'include': [
7 '../native_client/build/untrusted.gypi',
8 ],
9 'target_defaults': {
10 'variables': {
11 'nacl_target': 0,
12 },
13 'target_conditions': [
14 # This part is shared between the targets defined below. Only files and
15 # settings relevant for building the Win64 target should be added here.
16 ['nacl_target==1', {
17 'include_dirs': [
18 '<(INTERMEDIATE_DIR)',
19 ],
20 'defines': [
21 '<@(nacl_defines)',
22 ],
23 'sources': [
24 # .cc, .h, and .mm files under nacl that are used on all
25 # platforms, including both 32-bit and 64-bit Windows.
26 # Test files are also not included.
27 'nacl/nacl_ipc_adapter.cc',
28 'nacl/nacl_ipc_adapter.h',
29 'nacl/nacl_main.cc',
30 'nacl/nacl_main_platform_delegate.h',
31 'nacl/nacl_main_platform_delegate_linux.cc',
32 'nacl/nacl_main_platform_delegate_mac.mm',
33 'nacl/nacl_main_platform_delegate_win.cc',
34 'nacl/nacl_listener.cc',
35 'nacl/nacl_listener.h',
36 'nacl/nacl_validation_db.h',
37 'nacl/nacl_validation_query.cc',
38 'nacl/nacl_validation_query.h',
39 ],
40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
41 'conditions': [
42 ['OS=="win"', {
43 'defines': [
44 '__STDC_LIMIT_MACROS=1',
45 ],
46 'include_dirs': [
47 '<(DEPTH)/third_party/wtl/include',
48 ],
49 },],
50 ['OS=="linux"', {
51 'defines': [
52 '__STDC_LIMIT_MACROS=1',
53 ],
54 'sources': [
55 'app/nacl_fork_delegate_linux.cc',
56 'app/nacl_fork_delegate_linux.h',
57 'common/nacl_paths.cc',
58 'common/nacl_paths.h',
59 ],
60 },],
61 ],
62 }],
63 ],
64 },
65 'conditions': [
66 ['disable_nacl!=1', {
67 'targets': [
68 {
69 'target_name': 'nacl',
70 'type': 'static_library',
71 'variables': {
72 'nacl_target': 1,
73 },
74 'dependencies': [
75 '../base/base.gyp:base',
76 '../ipc/ipc.gyp:ipc',
77 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome',
78 '../ppapi/ppapi_internal.gyp:ppapi_shared',
79 '../ppapi/ppapi_internal.gyp:ppapi_ipc',
80 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l_main_chrome',
81 ],
82 'conditions': [
83 ['disable_nacl_untrusted==0', {
84 'dependencies': [
85 '../ppapi/native_client/native_client.gyp:nacl_irt',
86 '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_s him.gyp:pnacl_irt_shim',
87 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pn acl_support_extension.gyp:pnacl_support_extension',
88 ],
89 }],
90 ],
91 'direct_dependent_settings': {
92 'defines': [
93 '<@(nacl_defines)',
94 ],
95 },
96 },
97 ],
98 'conditions': [
99 ['OS=="win" and target_arch=="ia32"', {
100 'targets': [
101 {
102 'target_name': 'nacl_win64',
103 'type': 'static_library',
104 'variables': {
105 'nacl_target': 1,
106 },
107 'dependencies': [
108 '../native_client/src/trusted/service_runtime/service_runtime.gy p:sel_main_chrome64',
109 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
110 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
111 ],
112 'export_dependent_settings': [
113 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
114 ],
115 'sources': [
116 'common/nacl_cmd_line.cc',
117 'common/nacl_debug_exception_handler_win.cc',
118 'common/nacl_messages.cc',
119 'common/nacl_types.cc',
120 'nacl/nacl_broker_listener.cc',
121 'nacl/nacl_broker_listener.h',
122 ],
123 'include_dirs': [
124 '..',
125 ],
126 'defines': [
127 '<@(nacl_win64_defines)',
128 'COMPILE_CONTENT_STATICALLY',
129 ],
130 'configurations': {
131 'Common_Base': {
132 'msvs_target_platform': 'x64',
133 },
134 },
135 'direct_dependent_settings': {
136 'defines': [
137 '<@(nacl_defines)',
138 ],
139 },
140 },
141 ],
142 }],
143 ['OS=="linux"', {
144 'targets': [
145 {
146 'target_name': 'nacl_helper',
147 'type': 'executable',
148 'include_dirs': [
149 '..',
150 ],
151 'dependencies': [
152 '../crypto/crypto.gyp:crypto',
153 '../sandbox/sandbox.gyp:libc_urandom_override',
154 '../sandbox/sandbox.gyp:sandbox',
155 'nacl',
156 ],
157 'sources': [
158 'nacl/nacl_helper_linux.cc',
159 'nacl/nacl_sandbox_linux.cc',
160 '../base/posix/unix_domain_socket_linux.cc',
161 '../chrome/common/nacl_messages.cc',
162 '../chrome/common/nacl_types.cc',
163 '../content/common/child_process_sandbox_support_impl_shm_linux. cc',
164 '../content/common/sandbox_init_linux.cc',
165 '../content/common/sandbox_seccomp_bpf_linux.cc',
166 '../content/public/common/content_switches.cc',
167 ],
168 'conditions': [
169 ['toolkit_uses_gtk == 1', {
170 'dependencies': [
171 '../build/linux/system.gyp:gtk',
172 ],
173 }],
174 ['use_glib == 1', {
175 'dependencies': [
176 '../build/linux/system.gyp:glib',
177 ],
178 }],
179 ['os_posix == 1 and OS != "mac"', {
180 'conditions': [
181 ['linux_use_tcmalloc==1', {
182 'dependencies': [
183 '../base/allocator/allocator.gyp:allocator',
184 ],
185 }],
186 ],
187 }],
188 ],
189 'cflags': ['-fPIE'],
190 'link_settings': {
191 'ldflags': ['-pie'],
192 },
193 },
194 ],
195 }],
196 ],
197 }, { # else (disable_nacl==1)
198 'targets': [
199 {
200 'target_name': 'nacl',
201 'type': 'none',
202 'sources': [],
203 },
204 ],
205 'conditions': [
206 ['OS=="win"', {
207 'targets': [
208 {
209 'target_name': 'nacl_win64',
210 'type': 'none',
211 'sources': [],
212 },
213 ],
214 }],
215 ],
216 }],
217 ],
218 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/nacl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698