1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/dart/dart.conf
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
15 var_insert GCC_WRAPPER_REMOVE " " "-s"
17 hook_add prepatch 4 "depot_tools_extract"
18 hook_add prepatch 5 "gn_gclient_sync"
19 hook_add inmake 5 "gn_build"
20 hook_add postmake 5 "gn_install"
22 depot_tools_extract() {
23 tar -C $builddir/ $taropt $(match_source_file -p depot)
27 git clone --recurse-submodules https://github.com/dart-lang/sdk $builddir/dart
35 "url": "https://dart.googlesource.com/sdk.git@${ver}",
42 python ${builddir}/depot_tools/gclient.py sync
52 dart_platform_sdk = false
53 verify_sdk_hash = false
54 dart_lib_export_symbols = false'
55 ninja create_sdk -C out/
59 for x in out/dart out/dart.sym out/dart-sdk/bin/snapshots/dartdev.dart.snapshot out/dart-sdk/bin/snapshots/frontend_server_aot.dart.snapshot out/dart-sdk/dartdoc_options.yaml out/dart-sdk/version; do
60 install $x $root$libdir
63 ln -svf $root$libdir/dart $root$bindir/dart
64 ln -svf $root$libdir/dart.sym $root$bindir/dart.sym