build: Convert ppapi/native_client/src/untrusted/pnacl_support_extension/BUILD.gn to py3
Bug: 11850 Change-Id: Iefe17308b14099a6c39f58a6079cad335855bed4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2915273 Auto-Submit: Nico Weber <thakis@chromium.org> Commit-Queue: Raymes Khoury <raymes@chromium.org> Reviewed-by: Raymes Khoury <raymes@chromium.org> Cr-Commit-Position: refs/heads/master@{#886109}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
8769b99398
commit
bd7b67794f
ppapi/native_client/src/untrusted/pnacl_support_extension
@ -2,7 +2,6 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/python.gni")
|
||||
import("//components/nacl/features.gni")
|
||||
|
||||
assert(enable_nacl)
|
||||
@ -11,8 +10,7 @@ assert(enable_nacl)
|
||||
# toolchain and copies the latest PNaCl IRT shim library.
|
||||
# We could use 'copies', but we want to rename the files in a white-listed
|
||||
# way first. Thus use an action.
|
||||
# TODO(crbug.com/1112471): Get this to run cleanly under Python 3.
|
||||
python2_action("pnacl_support_extension") {
|
||||
action("pnacl_support_extension") {
|
||||
script = "pnacl_component_crx_gen.py"
|
||||
inputs = [
|
||||
"//native_client/build/package_version/package_version.py",
|
||||
|
@ -128,14 +128,14 @@ class PnaclPackaging(object):
|
||||
# by the NaCl repo, while abi_version is bumped when the NaCl sandbox
|
||||
# actually changes.
|
||||
pnacl_version = PnaclPackaging.PnaclToolsRevision()
|
||||
with open(PnaclPackaging.pnacl_template, 'r') as pnacl_template_fd:
|
||||
with open(PnaclPackaging.pnacl_template, 'rb') as pnacl_template_fd:
|
||||
pnacl_template = json.load(pnacl_template_fd)
|
||||
out_name = J(target_dir, UseWhitelistedChars(PnaclPackaging.pnacl_json,
|
||||
None))
|
||||
with open(out_name, 'w') as output_fd:
|
||||
pnacl_template['pnacl-arch'] = arch
|
||||
pnacl_template['pnacl-version'] = pnacl_version
|
||||
json.dump(pnacl_template, output_fd, sort_keys=True, indent=4)
|
||||
out_name = J(target_dir, UseWhitelistedChars(PnaclPackaging.pnacl_json,
|
||||
None))
|
||||
with open(out_name, 'w') as output_fd:
|
||||
pnacl_template['pnacl-arch'] = arch
|
||||
pnacl_template['pnacl-version'] = pnacl_version.decode()
|
||||
json.dump(pnacl_template, output_fd, sort_keys=True, indent=4)
|
||||
|
||||
|
||||
######################################################################
|
||||
|
Reference in New Issue
Block a user