78 lines
2.7 KiB
YAML
78 lines
2.7 KiB
YAML
id: "com.vscodium.codium.tool.NPM"
|
|
build-extension: true
|
|
branch: "21.08"
|
|
|
|
runtime: com.vscodium.codium
|
|
sdk: org.freedesktop.Sdk//21.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.43.0
|
|
commit: 988f2bfc4defb9a85a536a3e645834c161143ee0
|
|
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.47.0
|
|
commit: d9f580c3cb419e77474da507eef20f1c81ecff32
|
|
buildsystem: cmake-ninja
|
|
config-opts:
|
|
- -DENABLE_PYTHON_BINDINGS=OFF
|
|
build-options:
|
|
cflags: -flto -Os
|
|
cxxflags: -flto -Os
|
|
ldflags: -flto -Os
|
|
- name: node
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/nodejs/node.git
|
|
tag: v16.14.0
|
|
commit: 418ff70b810f0e7112d48baaa72932a56cfa213b
|
|
- type: shell
|
|
commands:
|
|
- sed -i 's/crsT/crs/g' deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py tools/gyp/pylib/gyp/generator/make.py
|
|
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.17/yarn-1.22.17.js
|
|
sha256: 0a7a650c99f34c58cca1aaa82c25424d5383c29db30678450159b035107aea69
|
|
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" || true' {}
|
|
- 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" || true' {}
|