2023-09-07 19:29:29 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/dart-lang/sdk/archive/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
versions:
|
|
|
|
github: dart-lang/sdk/tags
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
ninja-build.org: '*'
|
|
|
|
rust-lang.org: '*'
|
|
|
|
curl.se: '*'
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: '>=3<3.12'
|
2023-09-07 19:29:29 +03:00
|
|
|
tukaani.org/xz: '*'
|
2023-09-07 20:23:57 +03:00
|
|
|
git-scm.org: '*'
|
2023-09-07 19:29:29 +03:00
|
|
|
script:
|
|
|
|
- run: git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
|
|
working-directory: $SRCROOT/resources
|
2024-01-25 02:02:21 +03:00
|
|
|
|
|
|
|
- gclient config --name sdk https://dart.googlesource.com/sdk.git@{{version}}
|
|
|
|
- gclient sync --no-history
|
|
|
|
|
2023-09-07 19:29:29 +03:00
|
|
|
- run: ./tools/build.py --no-goma --mode=release --arch=$ARCH create_sdk
|
|
|
|
working-directory: sdk
|
|
|
|
- mkdir -p {{prefix}}/libexec
|
|
|
|
- run: cp -r ./sdk/out/Release*/dart-sdk/* {{prefix}}/libexec/
|
|
|
|
if: linux
|
|
|
|
- run: cp -r ./sdk/xcodebuild/Release*/dart-sdk/* {{prefix}}/libexec/
|
|
|
|
if: darwin
|
|
|
|
- run: |
|
|
|
|
ln -s ./../libexec/bin/dart dart
|
|
|
|
ln -s ./../libexec/bin/dartaotruntime dartaotruntime
|
2023-11-29 22:03:44 +03:00
|
|
|
working-directory: '{{prefix}}/bin'
|
2023-09-07 19:29:29 +03:00
|
|
|
env:
|
2024-01-25 02:02:21 +03:00
|
|
|
DEPOT_TOOLS_UPDATE: 0
|
2023-09-07 19:29:29 +03:00
|
|
|
PATH: $SRCROOT/resources/depot_tools:$PATH
|
|
|
|
aarch64:
|
|
|
|
ARCH: arm64
|
|
|
|
x86-64:
|
|
|
|
ARCH: x64
|
|
|
|
provides:
|
|
|
|
- bin/dart
|
|
|
|
- bin/dartaotruntime
|
|
|
|
test:
|
|
|
|
script:
|
|
|
|
- dart create dart-test
|
2024-01-25 02:02:21 +03:00
|
|
|
- run: dart run
|
|
|
|
working-directory: dart-test
|
2023-09-07 19:29:29 +03:00
|
|
|
- run: dart run | grep "Hello world"
|
|
|
|
working-directory: dart-test
|