Coder Social home page Coder Social logo

nwjs-loongarch's Introduction

环境要求

构建环境

操作系统:Windows 11

编译环境:WSL2 + debian11/Ubuntu20.04

构建额外信息

占用空间100G左右,建议磁盘拥有200G的空间。

构建脚本的使用

构建脚本编写依据:https://github.com/loongson/nw.js

目前仅支持nw80

  1. 执行 tools/install-deps.sh, 安装必要的依赖
  2. 执行 tools/setup.sh, 开始执行构建流程

模拟验证

使用loongarch硬件或者qemu,qemu请参考: run-qemu

构建记录

CMake

https://github.com/Kitware/CMake/releases?page=9

binutil-gdb

apt install -y libmpc-dev texinfo bison flex

llvm-project

apt install -y ninja-build python3

boto配置

export NO_AUTH_BOTO_CONFIG="/home/msojocs/.boto"

.boto内容

[Boto]
debug = 0
num_retries = 10

proxy = 127.0.0.1
proxy_port = 7890

nwjs

./build/install-build-deps.sh
sudo apt install xz-utils python curl libcups2-dev libglib2.0-dev \
libnss3-dev \
libxkbcommon-dev \
libdrm-dev \
libgbm-dev \
libpango1.0-dev \
libdbus-1-dev \
gperf \
libx11-xcb-dev \
libkrb5-dev \
libpulse-dev \
libpci-dev \
libglx-dev

修改:nwjs/src/build/config/linux/libffi/BUILD.gn link:

config("libffi") {
  #libs = [ ":libffi_pic.a" ] # 注释掉
  libs = [ "ffi" ] # 新增一行
}

ninja -C out/Release node

sudo apt-get install gcc-multilib g++-multilib

ninja -C out/nw payload

如果构建失败,参考 payload.patch 修改;

就是把 base::ListValue 替换成 base::Value::List,把 base::DictionaryValue 替换成 base::Value::Dict

然后,还有把对应方法替换一下。

LoongArch

项目
ABI loongarch64-unknown-linux-gnu
ARCH loong64
libdir lib64
sysroot debian_bullseye_loong64-sysroot

sysroot

"bullseye_loong64": {
    "Key": "20230611T210420Z-2",
    "Sha1Sum": "1b857baabd7999ff0d6949a8973f896836ac45ac",
    "SysrootDir": "debian_bullseye_loong64-sysroot",
    "Tarball": "debian_bullseye_loong64_sysroot.tar.xz",
    "URL": "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain"
}

nwjs-loongarch's People

Contributors

msojocs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.