mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
Remove fuchsia_test from gyp build
Review URL: https://codereview.chromium.org/2168073003 .
This commit is contained in:
parent
43668b55c7
commit
7cc544696f
|
@ -1,41 +0,0 @@
|
|||
This is a README file describing how to build Dart for Fuchsia. It assumes that
|
||||
you have built the magenta kernel under //magenta, its toolchains are
|
||||
under //toolchains, and that you have a Dart checkout under //dart. It is early
|
||||
days and this is crufty. The process will improve from here.
|
||||
|
||||
1. First, set up some symlinks in your Dart checkout:
|
||||
|
||||
//dart/third_party/fuchsia_tools/toolchains
|
||||
-> symlinked to //toolchains
|
||||
//dart/third_party/fuchsia_tools/sysroot/x86_64/usr
|
||||
-> symlinked to //magenta/build-magenta-qemu-x86-64/sysroot/
|
||||
|
||||
Also, copy the linker script:
|
||||
|
||||
//magenta$ cp kernel/arch/x86/64/user.ld build-magenta-qemu-x86-64/sysroot/
|
||||
|
||||
and similarly for arm64.
|
||||
|
||||
2. Build:
|
||||
|
||||
//dart$ tools/build.py -m product -a x64 --os=fuchsia fuchsia_test
|
||||
|
||||
This will produce //dart/out/ProductFuchsiaX64/fuchsia_test
|
||||
|
||||
3. Strip it:
|
||||
|
||||
//dart$ third_party/fuchsia_tools/toolchains/x86_64-elf-5.3.0-Linux-x86_64/bin/x86_64-elf-strip out/ProductFuchsiaX64/fuchsia_test -o out/ProductFuchsiaX64/fuchsia_test.stripped
|
||||
|
||||
4. Make a file //magenta/fuchsia_test.manifest containing:
|
||||
|
||||
bin/fuchsia_test=//dart/out/ProductFuchsiaX64/fuchsia_test.stripped
|
||||
|
||||
Where //dart is the actual path to your Dart checkout.
|
||||
|
||||
5. Make an extra bootfs:
|
||||
|
||||
//magenta$ build-magenta-qemu-x86-64/tools/mkbootfs -o fuchsia_test.bootfs fuchsia_test.manifest
|
||||
|
||||
6. Run:
|
||||
|
||||
//magenta$ ./scripts/run-magenta-x86-64 -x fuchsia_test.bootfs
|
7
dart.gyp
7
dart.gyp
|
@ -34,13 +34,6 @@
|
|||
'runtime/dart-runtime.gyp:sample_extension',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'fuchsia_test',
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'runtime/dart-runtime.gyp:fuchsia_test',
|
||||
],
|
||||
},
|
||||
{
|
||||
# This is the target that is built on the VM build bots. It
|
||||
# must depend on anything that is required by the VM test
|
||||
|
|
|
@ -1069,25 +1069,6 @@
|
|||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
'target_name': 'fuchsia_test',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'libdart_nosnapshot',
|
||||
],
|
||||
'include_dirs': [
|
||||
'..',
|
||||
'../include',
|
||||
],
|
||||
'sources': [
|
||||
'fuchsia_test.cc',
|
||||
'log_android.cc',
|
||||
'log_fuchsia.cc', # TODO(zra): Move to libdart_builtin when ready.
|
||||
'log_linux.cc',
|
||||
'log_macos.cc',
|
||||
'log_win.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
# dart binary with a snapshot of corelibs built in.
|
||||
'target_name': 'dart',
|
||||
|
|
Loading…
Reference in a new issue