74 lines
2.5 KiB
YAML
74 lines
2.5 KiB
YAML
id: "com.vscodium.codium.tool.NPM"
|
|
build-extension: true
|
|
branch: "20.08"
|
|
|
|
runtime: com.vscodium.codium
|
|
sdk: org.freedesktop.Sdk//20.08
|
|
runtime-version: stable
|
|
|
|
separate-locales: false
|
|
build-options:
|
|
append-ld-library-path: /app/tools/NPM/lib
|
|
append-path: /app/tools/NPM/bin
|
|
append-pkg-config-path: /app/tools/NPM/lib/pkgconfig
|
|
env:
|
|
- SOURCE_DATE_EPOCH=1
|
|
prefix: /app/tools/NPM
|
|
|
|
modules:
|
|
- name: libuv
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/libuv/libuv.git
|
|
tag: v1.41.0
|
|
commit: 1dff88e5161cba5c59276d2070d2e304e4dcb242
|
|
build-options:
|
|
cflags: -flto -Os
|
|
cxxflags: -flto -Os
|
|
ldflags: -flto -Os
|
|
- name: libnghttp2
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/nghttp2/nghttp2.git
|
|
tag: v1.43.0
|
|
commit: fb0bd22979711c89d92d98ac5db57ebc6f4fd148
|
|
buildsystem: cmake-ninja
|
|
config-opts:
|
|
- -DENABLE_PYTHON_BINDINGS=OFF
|
|
build-options:
|
|
cflags: -flto -Os
|
|
cxxflags: -flto -Os
|
|
ldflags: -flto -Os
|
|
- name: npm
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/nodejs/node.git
|
|
tag: v14.17.2
|
|
commit: 8ef3b0fc59370c90d885a6d1bc516af0a63f9962
|
|
config-opts:
|
|
- --enable-lto
|
|
- --enable-pgo-generate
|
|
- --gdb
|
|
- --no-cross-compiling
|
|
- --shared-brotli
|
|
- --shared-libuv
|
|
- --shared-nghttp2
|
|
- --shared-openssl
|
|
- --shared-zlib
|
|
build-options:
|
|
cflags: -flto -Os
|
|
cxxflags: -flto -Os
|
|
ldflags: -flto -Os
|
|
- name: yarn
|
|
sources:
|
|
- type: file
|
|
url: https://github.com/yarnpkg/yarn/releases/download/v1.22.11/yarn-1.22.11.js
|
|
sha256: a74f1b00e38e139f96b2a5baed6db153841f8f5ab5a057992fa23962f292aec3
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Dm755 yarn-* /app/tools/NPM/bin/yarn
|
|
- name: finish
|
|
buildsystem: simple
|
|
build-commands:
|
|
- find /app/tools/NPM/bin -type f | xargs -I{} bash -c 'mv "$0" "$0_" && cp -a "$0_" "$0" && rm "$0_" && strip --strip-unneeded "$0"' {}
|
|
- find /app/tools/NPM/lib -maxdepth 0 -type f | xargs -I{} bash -c 'mv "$0" "$0_" && cp -a "$0_" "$0" && rm "$0_" && strip --strip-unneeded "$0"' {} |