OLD | NEW |
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', |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 'sources': [ | 50 'sources': [ |
51 'nacl/common/nacl_messages.cc', | 51 'nacl/common/nacl_messages.cc', |
52 'nacl/common/nacl_switches.cc', | 52 'nacl/common/nacl_switches.cc', |
53 'nacl/common/nacl_types.cc', | 53 'nacl/common/nacl_types.cc', |
54 'nacl/common/nacl_types_param_traits.cc', | 54 'nacl/common/nacl_types_param_traits.cc', |
55 'nacl/loader/nacl_helper_linux.cc', | 55 'nacl/loader/nacl_helper_linux.cc', |
56 'nacl/loader/nacl_trusted_listener.cc', | 56 'nacl/loader/nacl_trusted_listener.cc', |
57 'nacl/loader/nonsfi/nonsfi_listener.cc', | 57 'nacl/loader/nonsfi/nonsfi_listener.cc', |
58 'nacl/loader/nonsfi/nonsfi_main.cc', | 58 'nacl/loader/nonsfi/nonsfi_main.cc', |
59 'nacl/loader/nonsfi/nonsfi_sandbox.cc', | |
60 'nacl/loader/sandbox_linux/nacl_sandbox_linux.cc', | |
61 ], | 59 ], |
62 | 60 |
63 'link_flags': [ | 61 'link_flags': [ |
64 '-lbase_nacl_nonsfi', | 62 '-lbase_nacl_nonsfi', |
65 '-lcommand_buffer_client_nacl', | 63 '-lcommand_buffer_client_nacl', |
66 '-lcommand_buffer_common_nacl', | 64 '-lcommand_buffer_common_nacl', |
67 '-lcontent_common_nacl_nonsfi', | 65 '-lcontent_common_nacl_nonsfi', |
68 '-lelf_loader', | 66 '-lelf_loader', |
69 '-levent_nacl_nonsfi', | 67 '-levent_nacl_nonsfi', |
70 '-lgio', | 68 '-lgio', |
71 '-lgles2_cmd_helper_nacl', | 69 '-lgles2_cmd_helper_nacl', |
72 '-lgles2_implementation_nacl', | 70 '-lgles2_implementation_nacl', |
73 '-lgles2_utils_nacl', | 71 '-lgles2_utils_nacl', |
74 '-lgpu_ipc_nacl', | 72 '-lgpu_ipc_nacl', |
75 '-lipc_nacl_nonsfi', | 73 '-lipc_nacl_nonsfi', |
76 '-llatency_info_nacl', | 74 '-llatency_info_nacl', |
| 75 '-lnacl_helper_nonsfi_sandbox', |
77 '-lplatform', | 76 '-lplatform', |
78 '-lppapi_ipc_nacl', | 77 '-lppapi_ipc_nacl', |
79 '-lppapi_proxy_nacl', | 78 '-lppapi_proxy_nacl', |
80 '-lppapi_shared_nacl', | 79 '-lppapi_shared_nacl', |
81 '-lsandbox_nacl_nonsfi', | 80 '-lsandbox_nacl_nonsfi', |
82 '-lshared_memory_support_nacl', | 81 '-lshared_memory_support_nacl', |
83 '-ltracing_nacl', | 82 '-ltracing_nacl', |
84 ], | 83 ], |
85 | 84 |
86 'conditions': [ | 85 'conditions': [ |
87 ['target_arch=="ia32" or target_arch=="x64"', { | 86 ['target_arch=="ia32" or target_arch=="x64"', { |
88 'extra_deps_newlib32_nonsfi': [ | 87 'extra_deps_newlib32_nonsfi': [ |
89 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', | 88 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', |
90 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_client_nacl.a
', | 89 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_client_nacl.a
', |
91 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_common_nacl.a
', | 90 '>(tc_lib_dir_nonsfi_helper32)/libcommand_buffer_common_nacl.a
', |
92 '>(tc_lib_dir_nonsfi_helper32)/libcontent_common_nacl_nonsfi.a
', | 91 '>(tc_lib_dir_nonsfi_helper32)/libcontent_common_nacl_nonsfi.a
', |
93 '>(tc_lib_dir_nonsfi_helper32)/libelf_loader.a', | 92 '>(tc_lib_dir_nonsfi_helper32)/libelf_loader.a', |
94 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', | 93 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', |
95 '>(tc_lib_dir_nonsfi_helper32)/libgio.a', | 94 '>(tc_lib_dir_nonsfi_helper32)/libgio.a', |
96 '>(tc_lib_dir_nonsfi_helper32)/libgles2_cmd_helper_nacl.a', | 95 '>(tc_lib_dir_nonsfi_helper32)/libgles2_cmd_helper_nacl.a', |
97 '>(tc_lib_dir_nonsfi_helper32)/libgles2_implementation_nacl.a'
, | 96 '>(tc_lib_dir_nonsfi_helper32)/libgles2_implementation_nacl.a'
, |
98 '>(tc_lib_dir_nonsfi_helper32)/libgles2_utils_nacl.a', | 97 '>(tc_lib_dir_nonsfi_helper32)/libgles2_utils_nacl.a', |
99 '>(tc_lib_dir_nonsfi_helper32)/libgpu_ipc_nacl.a', | 98 '>(tc_lib_dir_nonsfi_helper32)/libgpu_ipc_nacl.a', |
100 '>(tc_lib_dir_nonsfi_helper32)/libipc_nacl_nonsfi.a', | 99 '>(tc_lib_dir_nonsfi_helper32)/libipc_nacl_nonsfi.a', |
101 '>(tc_lib_dir_nonsfi_helper32)/liblatency_info_nacl.a', | 100 '>(tc_lib_dir_nonsfi_helper32)/liblatency_info_nacl.a', |
| 101 '>(tc_lib_dir_nonsfi_helper32)/libnacl_helper_nonsfi_sandbox.a
', |
102 '>(tc_lib_dir_nonsfi_helper32)/libplatform.a', | 102 '>(tc_lib_dir_nonsfi_helper32)/libplatform.a', |
103 '>(tc_lib_dir_nonsfi_helper32)/libppapi_ipc_nacl.a', | 103 '>(tc_lib_dir_nonsfi_helper32)/libppapi_ipc_nacl.a', |
104 '>(tc_lib_dir_nonsfi_helper32)/libppapi_proxy_nacl.a', | 104 '>(tc_lib_dir_nonsfi_helper32)/libppapi_proxy_nacl.a', |
105 '>(tc_lib_dir_nonsfi_helper32)/libppapi_shared_nacl.a', | 105 '>(tc_lib_dir_nonsfi_helper32)/libppapi_shared_nacl.a', |
106 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_nacl_nonsfi.a', | 106 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_nacl_nonsfi.a', |
107 '>(tc_lib_dir_nonsfi_helper32)/libshared_memory_support_nacl.a
', | 107 '>(tc_lib_dir_nonsfi_helper32)/libshared_memory_support_nacl.a
', |
108 '>(tc_lib_dir_nonsfi_helper32)/libtracing_nacl.a', | 108 '>(tc_lib_dir_nonsfi_helper32)/libtracing_nacl.a', |
109 ], | 109 ], |
110 }], | 110 }], |
111 ['target_arch=="arm"', { | 111 ['target_arch=="arm"', { |
112 'extra_deps_newlib_arm_nonsfi': [ | 112 'extra_deps_newlib_arm_nonsfi': [ |
113 '>(tc_lib_dir_nonsfi_helper_arm)/libbase_nacl_nonsfi.a', | 113 '>(tc_lib_dir_nonsfi_helper_arm)/libbase_nacl_nonsfi.a', |
114 '>(tc_lib_dir_nonsfi_helper_arm)/libcommand_buffer_client_nacl
.a', | 114 '>(tc_lib_dir_nonsfi_helper_arm)/libcommand_buffer_client_nacl
.a', |
115 '>(tc_lib_dir_nonsfi_helper_arm)/libcommand_buffer_common_nacl
.a', | 115 '>(tc_lib_dir_nonsfi_helper_arm)/libcommand_buffer_common_nacl
.a', |
116 '>(tc_lib_dir_nonsfi_helper_arm)/libcontent_common_nacl_nonsfi
.a', | 116 '>(tc_lib_dir_nonsfi_helper_arm)/libcontent_common_nacl_nonsfi
.a', |
117 '>(tc_lib_dir_nonsfi_helper_arm)/libelf_loader.a', | 117 '>(tc_lib_dir_nonsfi_helper_arm)/libelf_loader.a', |
118 '>(tc_lib_dir_nonsfi_helper_arm)/libevent_nacl_nonsfi.a', | 118 '>(tc_lib_dir_nonsfi_helper_arm)/libevent_nacl_nonsfi.a', |
119 '>(tc_lib_dir_nonsfi_helper_arm)/libgio.a', | 119 '>(tc_lib_dir_nonsfi_helper_arm)/libgio.a', |
120 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_cmd_helper_nacl.a', | 120 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_cmd_helper_nacl.a', |
121 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_implementation_nacl.
a', | 121 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_implementation_nacl.
a', |
122 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_utils_nacl.a', | 122 '>(tc_lib_dir_nonsfi_helper_arm)/libgles2_utils_nacl.a', |
123 '>(tc_lib_dir_nonsfi_helper_arm)/libgpu_ipc_nacl.a', | 123 '>(tc_lib_dir_nonsfi_helper_arm)/libgpu_ipc_nacl.a', |
124 '>(tc_lib_dir_nonsfi_helper_arm)/libipc_nacl_nonsfi.a', | 124 '>(tc_lib_dir_nonsfi_helper_arm)/libipc_nacl_nonsfi.a', |
125 '>(tc_lib_dir_nonsfi_helper_arm)/liblatency_info_nacl.a', | 125 '>(tc_lib_dir_nonsfi_helper_arm)/liblatency_info_nacl.a', |
| 126 '>(tc_lib_dir_nonsfi_helper_arm)/libnacl_helper_nonsfi_sandbox
.a', |
126 '>(tc_lib_dir_nonsfi_helper_arm)/libplatform.a', | 127 '>(tc_lib_dir_nonsfi_helper_arm)/libplatform.a', |
127 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_ipc_nacl.a', | 128 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_ipc_nacl.a', |
128 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_proxy_nacl.a', | 129 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_proxy_nacl.a', |
129 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_shared_nacl.a', | 130 '>(tc_lib_dir_nonsfi_helper_arm)/libppapi_shared_nacl.a', |
130 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_nacl_nonsfi.a', | 131 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_nacl_nonsfi.a', |
131 '>(tc_lib_dir_nonsfi_helper_arm)/libshared_memory_support_nacl
.a', | 132 '>(tc_lib_dir_nonsfi_helper_arm)/libshared_memory_support_nacl
.a', |
132 '>(tc_lib_dir_nonsfi_helper_arm)/libtracing_nacl.a', | 133 '>(tc_lib_dir_nonsfi_helper_arm)/libtracing_nacl.a', |
133 ], | 134 ], |
134 }], | 135 }], |
135 ], | 136 ], |
136 }, | 137 }, |
137 'dependencies': [ | 138 'dependencies': [ |
138 '../base/base_nacl.gyp:base_nacl_nonsfi', | 139 '../base/base_nacl.gyp:base_nacl_nonsfi', |
139 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', | 140 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', |
140 '../ipc/ipc_nacl.gyp:ipc_nacl_nonsfi', | 141 '../ipc/ipc_nacl.gyp:ipc_nacl_nonsfi', |
141 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', | 142 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', |
142 '../native_client/src/nonsfi/loader/loader.gyp:elf_loader', | 143 '../native_client/src/nonsfi/loader/loader.gyp:elf_loader', |
143 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 144 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
144 '../ppapi/ppapi_proxy_nacl.gyp:ppapi_proxy_nacl', | 145 '../ppapi/ppapi_proxy_nacl.gyp:ppapi_proxy_nacl', |
145 '../sandbox/sandbox_nacl_nonsfi.gyp:sandbox_nacl_nonsfi', | 146 '../sandbox/sandbox_nacl_nonsfi.gyp:sandbox_nacl_nonsfi', |
| 147 'nacl_helper_nonsfi_sandbox', |
146 ], | 148 ], |
147 }, | 149 }, |
148 # TODO(hidehiko): Add Non-SFI version of nacl_loader_unittests. | 150 |
| 151 { |
| 152 'target_name': 'nacl_helper_nonsfi_sandbox', |
| 153 'type': 'none', |
| 154 'variables': { |
| 155 'nacl_untrusted_build': 1, |
| 156 'nlib_target': 'libnacl_helper_nonsfi_sandbox.a', |
| 157 |
| 158 'build_glibc': 0, |
| 159 'build_newlib': 0, |
| 160 'build_irt': 0, |
| 161 'build_pnacl_newlib': 0, |
| 162 'build_nonsfi_helper': 1, |
| 163 |
| 164 'sources': [ |
| 165 'nacl/loader/nonsfi/nonsfi_sandbox.cc', |
| 166 'nacl/loader/sandbox_linux/nacl_sandbox_linux.cc', |
| 167 ], |
| 168 }, |
| 169 'dependencies': [ |
| 170 '../base/base_nacl.gyp:base_nacl_nonsfi', |
| 171 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', |
| 172 '../sandbox/sandbox_nacl_nonsfi.gyp:sandbox_nacl_nonsfi', |
| 173 ], |
| 174 }, |
| 175 |
| 176 { |
| 177 'target_name': 'nacl_helper_nonsfi_unittests', |
| 178 'type': 'none', |
| 179 'variables': { |
| 180 'nacl_untrusted_build': 1, |
| 181 'nexe_target': 'nacl_helper_nonsfi_unittests', |
| 182 # Rename the output binary file to nacl_helper_nonsfi_unittests |
| 183 # and put it directly under out/{Debug,Release}/, so that this is |
| 184 # in the standard location, for running on the buildbots. |
| 185 'out_newlib32_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unittests'
, |
| 186 'out_newlib_arm_nonsfi': '<(PRODUCT_DIR)/nacl_helper_nonsfi_unitttes
ts', |
| 187 |
| 188 'build_glibc': 0, |
| 189 'build_newlib': 0, |
| 190 'build_irt': 0, |
| 191 'build_pnacl_newlib': 0, |
| 192 'build_nonsfi_helper': 1, |
| 193 |
| 194 'sources': [ |
| 195 'nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc', |
| 196 'nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc', |
| 197 ], |
| 198 |
| 199 'link_flags': [ |
| 200 '-lbase_nacl_nonsfi', |
| 201 '-lcontent_common_nacl_nonsfi', |
| 202 '-levent_nacl_nonsfi', |
| 203 '-lgio', |
| 204 '-lgtest_main_nacl', |
| 205 '-lgtest_nacl', |
| 206 '-lnacl_helper_nonsfi_sandbox', |
| 207 '-lplatform', |
| 208 '-lsandbox_nacl_nonsfi', |
| 209 '-lsandbox_linux_test_utils_nacl_nonsfi', |
| 210 ], |
| 211 |
| 212 'conditions': [ |
| 213 ['target_arch=="ia32" or target_arch=="x64"', { |
| 214 'extra_deps_newlib32_nonsfi': [ |
| 215 '>(tc_lib_dir_nonsfi_helper32)/libbase_nacl_nonsfi.a', |
| 216 '>(tc_lib_dir_nonsfi_helper32)/libcontent_common_nacl_nonsfi.a
', |
| 217 '>(tc_lib_dir_nonsfi_helper32)/libevent_nacl_nonsfi.a', |
| 218 '>(tc_lib_dir_nonsfi_helper32)/libgio.a', |
| 219 '>(tc_lib_dir_nonsfi_helper32)/libgtest_main_nacl.a', |
| 220 '>(tc_lib_dir_nonsfi_helper32)/libgtest_nacl.a', |
| 221 '>(tc_lib_dir_nonsfi_helper32)/libnacl_helper_nonsfi_sandbox.a
', |
| 222 '>(tc_lib_dir_nonsfi_helper32)/libplatform.a', |
| 223 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_nacl_nonsfi.a', |
| 224 '>(tc_lib_dir_nonsfi_helper32)/libsandbox_linux_test_utils_nac
l_nonsfi.a', |
| 225 ], |
| 226 }], |
| 227 ['target_arch=="arm"', { |
| 228 'extra_deps_newlib_arm_nonsfi': [ |
| 229 '>(tc_lib_dir_nonsfi_helper_arm)/libbase_nacl_nonsfi.a', |
| 230 '>(tc_lib_dir_nonsfi_helper_arm)/libcontent_common_nacl_nonsfi
.a', |
| 231 '>(tc_lib_dir_nonsfi_helper_arm)/libevent_nacl_nonsfi.a', |
| 232 '>(tc_lib_dir_nonsfi_helper_arm)/libgio.a', |
| 233 '>(tc_lib_dir_nonsfi_helper_arm)/libgtest_main_nacl.a', |
| 234 '>(tc_lib_dir_nonsfi_helper_arm)/libgtest_nacl.a', |
| 235 '>(tc_lib_dir_nonsfi_helper_arm)/libnacl_helper_nonsfi_sandbox
.a', |
| 236 '>(tc_lib_dir_nonsfi_helper_arm)/libplatform.a', |
| 237 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_nacl_nonsfi.a', |
| 238 '>(tc_lib_dir_nonsfi_helper_arm)/libsandbox_linux_test_utils_n
acl_nonsfi.a', |
| 239 ], |
| 240 }], |
| 241 ], |
| 242 }, |
| 243 |
| 244 'dependencies': [ |
| 245 '../base/base_nacl.gyp:base_nacl_nonsfi', |
| 246 '../content/content_nacl_nonsfi.gyp:content_common_nacl_nonsfi', |
| 247 '../native_client/src/nonsfi/irt/irt.gyp:nacl_sys_private', |
| 248 '../native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| 249 '../sandbox/sandbox_nacl_nonsfi.gyp:sandbox_nacl_nonsfi', |
| 250 '../sandbox/sandbox_nacl_nonsfi.gyp:sandbox_linux_test_utils_nacl_no
nsfi', |
| 251 '../testing/gtest_nacl.gyp:gtest_main_nacl', |
| 252 '../testing/gtest_nacl.gyp:gtest_nacl', |
| 253 'nacl_helper_nonsfi_sandbox', |
| 254 ], |
| 255 }, |
| 256 ], |
| 257 }], |
| 258 ['disable_nacl==0 and disable_nacl_untrusted==0 and test_isolation_mode!="no
op"', { |
| 259 'targets': [ |
| 260 { |
| 261 'target_name': 'nacl_helper_nonsfi_unittests_run', |
| 262 'type': 'none', |
| 263 'dependencies': [ |
| 264 'nacl_helper_nonsfi_unittests', |
| 265 ], |
| 266 'includes': [ |
| 267 '../build/isolate.gypi', |
| 268 ], |
| 269 'sources': [ |
| 270 'nacl_helper_nonsfi_unittests.isolate', |
| 271 ], |
| 272 }, |
149 ], | 273 ], |
150 }], | 274 }], |
151 ], | 275 ], |
152 } | 276 } |
OLD | NEW |