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

Side by Side Diff: components/nacl_nonsfi.gyp

Issue 659243002: Non-SFI Mode: Build ipc/ library by PNaCl toolchain for nacl_helper_nonsfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 | « no previous file | ipc/ipc_channel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/common_untrusted.gypi', 10 '../build/common_untrusted.gypi',
11 ], 11 ],
12 'conditions': [ 12 'conditions': [
13 ['disable_nacl==0 and disable_nacl_untrusted==0', { 13 ['disable_nacl==0 and disable_nacl_untrusted==0', {
14 'targets': [ 14 'targets': [
15 { 15 {
16 # nacl_helper_nonsfi is similar to nacl_helper (built in nacl.gyp)
17 # but for the NaCl plugin in Non-SFI mode.
18 # This binary is built using the PNaCl toolchain, but it is native
19 # linux binary and will run on Linux directly.
20 # Most library code can be shared with the one for untrusted build
21 # (i.e. the one for irt.nexe built by the NaCl/PNaCl toolchain), but
22 # as nacl_helper_nonsfi runs on Linux, there are some differences,
23 # such as MessageLoopForIO (which is based on libevent in Non-SFI
24 # mode) or ipc_channel implementation.
25 # Because of the toolchain, in both builds, OS_NACL macro (derived
26 # from __native_client__ macro) is defined. Code can test whether
27 # __native_client_nonsfi__ is #defined in order to determine
28 # whether it is being compiled for SFI mode or Non-SFI mode.
29 #
16 # Currently, nacl_helper_nonsfi is under development and the binary 30 # Currently, nacl_helper_nonsfi is under development and the binary
17 # does nothing (i.e. it has only empty main(), now). 31 # does nothing (i.e. it has only empty main(), now).
18 # TODO(crbug.com/358465): Implement it then switch nacl_helper in 32 # TODO(crbug.com/358465): Implement it then switch nacl_helper in
19 # Non-SFI mode to nacl_helper_nonsfi. 33 # Non-SFI mode to nacl_helper_nonsfi.
20 'target_name': 'nacl_helper_nonsfi', 34 'target_name': 'nacl_helper_nonsfi',
21 'type': 'none', 35 'type': 'none',
22 'variables': { 36 'variables': {
23 'nacl_untrusted_build': 1, 37 'nacl_untrusted_build': 1,
24 'nexe_target': 'nacl_helper_nonsfi', 38 'nexe_target': 'nacl_helper_nonsfi',
25 # Rename the output binary file to nacl_helper_nonsfi and put it 39 # Rename the output binary file to nacl_helper_nonsfi and put it
(...skipping 15 matching lines...) Expand all
41 ['target_arch=="ia32" or target_arch=="x64"', { 55 ['target_arch=="ia32" or target_arch=="x64"', {
42 'extra_deps_newlib32_nonsfi': [ 56 'extra_deps_newlib32_nonsfi': [
43 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', 57 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a',
44 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_client_nacl.a ', 58 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_client_nacl.a ',
45 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_common_nacl.a ', 59 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_common_nacl.a ',
46 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', 60 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a',
47 '>(tc_lib_dir_nonsfi_helper32)/libgles2_cmd_helper_nacl.a', 61 '>(tc_lib_dir_nonsfi_helper32)/libgles2_cmd_helper_nacl.a',
48 '>(tc_lib_dir_nonsfi_helper32)/libgles2_implementation_nacl.a' , 62 '>(tc_lib_dir_nonsfi_helper32)/libgles2_implementation_nacl.a' ,
49 '>(tc_lib_dir_nonsfi_helper32)/libgles2_utils_nacl.a', 63 '>(tc_lib_dir_nonsfi_helper32)/libgles2_utils_nacl.a',
50 '>(tc_lib_dir_nonsfi_helper32)/libgpu_ipc_nacl.a', 64 '>(tc_lib_dir_nonsfi_helper32)/libgpu_ipc_nacl.a',
65 '>(tc_lib_dir_nonsfi_helper32)/libipc_nacl_nonsfi.a',
51 '>(tc_lib_dir_nonsfi_helper32)/libshared_memory_support_nacl.a ', 66 '>(tc_lib_dir_nonsfi_helper32)/libshared_memory_support_nacl.a ',
52 ], 67 ],
53 }], 68 }],
54 ], 69 ],
55 }, 70 },
56 'dependencies': [ 71 'dependencies': [
57 '../base/base_nacl.gyp:base_nacl_nonsfi', 72 '../base/base_nacl.gyp:base_nacl_nonsfi',
73 '../ipc/ipc_nacl.gyp:ipc_nacl_nonsfi',
58 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', 74 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private',
59 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', 75 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib',
60 '../native_client/tools.gyp:prep_toolchain', 76 '../native_client/tools.gyp:prep_toolchain',
61 77
62 # Temporarily depends on some libraries to make sure they can be 78 # Temporarily depends on some libraries to make sure they can be
63 # built properly. These are depended on by PPAPI library. 79 # built properly. These are depended on by PPAPI library.
64 # TODO(hidehiko): Remove them when PPAPI library is introduced. 80 # TODO(hidehiko): Remove them when PPAPI library is introduced.
65 '../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl', 81 '../gpu/command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
66 '../gpu/gpu_nacl.gyp:command_buffer_client_nacl', 82 '../gpu/gpu_nacl.gyp:command_buffer_client_nacl',
67 '../gpu/gpu_nacl.gyp:command_buffer_common_nacl', 83 '../gpu/gpu_nacl.gyp:command_buffer_common_nacl',
68 '../gpu/gpu_nacl.gyp:gles2_cmd_helper_nacl', 84 '../gpu/gpu_nacl.gyp:gles2_cmd_helper_nacl',
69 '../gpu/gpu_nacl.gyp:gles2_implementation_nacl', 85 '../gpu/gpu_nacl.gyp:gles2_implementation_nacl',
70 '../gpu/gpu_nacl.gyp:gpu_ipc_nacl', 86 '../gpu/gpu_nacl.gyp:gpu_ipc_nacl',
71 '../media/media_nacl.gyp:shared_memory_support_nacl', 87 '../media/media_nacl.gyp:shared_memory_support_nacl',
72 ], 88 ],
73 }, 89 },
74 # TODO(hidehiko): Add Non-SFI version of nacl_loader_unittests. 90 # TODO(hidehiko): Add Non-SFI version of nacl_loader_unittests.
75 ], 91 ],
76 }], 92 }],
77 ], 93 ],
78 } 94 }
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698