1 Star 0 Fork 0

gyy/emscripten

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
emlink.py 972 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python3
# Copyright 2013 The Emscripten Authors. All rights reserved.
# Emscripten is available under two separate licenses, the MIT license and the
# University of Illinois/NCSA Open Source License. Both these licenses can be
# found in the LICENSE file.
"""Fast static linker for emscripten outputs. Specifically this links asm.js modules.
See https://github.com/emscripten-core/emscripten/wiki/Linking
"""
from __future__ import print_function
import sys
from tools import shared
from tools.asm_module import AsmModule
def run():
try:
me, main, side, out = sys.argv[:4]
except ValueError:
print('usage: emlink.py [main module] [side module] [output name]', file=sys.stderr)
sys.exit(1)
print('Main module:', main)
print('Side module:', side)
print('Output:', out)
shared.try_delete(out)
main = AsmModule(main)
side = AsmModule(side)
side.relocate_into(main)
main.write(out)
if __name__ == '__main__':
run()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/guyangyang/emscripten.git
git@gitee.com:guyangyang/emscripten.git
guyangyang
emscripten
emscripten
11880-test

搜索帮助