Commit Graph

61 Commits

Author SHA1 Message Date
johnmccutchan@google.com 261200c587 Build Observatory as part of runtime
Relanding https://codereview.chromium.org/810623005/

Review URL: https://codereview.chromium.org//837723004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42645 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-06 21:59:42 +00:00
whesse@google.com aa5a986d5d Revert "Build Observatory with runtime"
This reverts commit 76df7b3c1bf83c08d3994d61df4c9c530fadb4e5.
This commit breaks dartium compilation.

BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//839543002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42619 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-06 10:07:58 +00:00
johnmccutchan@google.com 9d6ac72b46 1) Remove prebuilt Observatory sources
2) Move observatory from runtime/bin/vmservice/observatory to runtime/observatory

3) Add two tools scripts:
- tools/run_pub.py (runs pub before SDK is built)
- tools/obs_tool.py (helper for get, build, and deploy stages)

4) Build Observatory with runtime:
- pub get --offline
- pub build
- deploy

5) Build artifacts are now in standard output directory, for example, out/DebugIA32/observatory.

6) Add a new 'dart_boostrap' host target (no snapshot, no observatory) that can be used as the Dart executable to run pub when building Observatory. This is behind a build.py flag --use-bootstrap-for-observatory because:

- It is only necessary on older Linux distributions that are incompatible with the prebuilt Dart testing executable.
- running pub build with the boostrap Debug build is significantly slower.

7) Detect if the prebuilt executable doesn't work and automatically switch to the 'dart_bootstrap' executable. Also, warn the user and provide a Wiki link with more information.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//810623005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42614 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 21:26:52 +00:00
zra@google.com 3af5c2e52d Builds 32-bit arm and intel for Android using gcc 4.9 against L-release.
R=koda@google.com

Review URL: https://codereview.chromium.org//833663002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42575 260f80e4-7a28-3924-810f-c04153c831b5
2014-12-30 19:30:03 +00:00
collinsn@google.com 086555fd0d Make 'tools/build.py -h' warn the user to run it from the repo root.
The script by default runs 'make all' in the current directory. Since it's common to have a Makefile with an 'all' rule, this can lead to silent failure when a user runs the script from outside the repo root while intending
to do a default build. That behavior is error prone: in my case it made my regression tests pass when they should fail, because I was not actually rebuilding when I thought I was.

It turns out that the build script is sometimes run outside the repo root on purpose, so we can't simply require it be run from the repo root.  So, we document the relative nature of the build script.

R=ricow@google.com, jwren@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=20958

Review URL: https://codereview.chromium.org//569343003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40465 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-18 21:22:43 +00:00
zra@google.com ec1140b188 Adds support for building arm64 Android.
R=regis@google.com

Review URL: https://codereview.chromium.org//539573003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39844 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 23:31:51 +00:00
zra@google.com 12e83bbd84 Allows building debian packages for ARM.
This change adds arm as a possible architecture to
the create_debian_packages.py script and additionally
adds a toolchain flag so that arm packages can be
built using different cross-compilers that target
different ARM versions. The specified cross-compiler
is passed on to the debian/rules file through an
environment variable.

R=ricow@google.com, sgjesse@google.com

Review URL: https://codereview.chromium.org//396123003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39291 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-15 15:20:42 +00:00
whesse@google.com 4b9def5115 Fix merge problems in r38573, a cleanup of build scripts.
BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org//423483002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38574 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 12:47:48 +00:00
whesse@google.com c7d5711688 Build Tools Cleanup
Cleans up Python Code in Build Tools

TEST: build everything and run tests
BUG: https://code.google.com/p/dart/issues/detail?id=19592

R=ricow@google.com

Review URL: https://codereview.chromium.org//350483003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38573 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 11:47:59 +00:00
iposva@google.com ad7cbdeb05 - Fail if toolchain is not set instead of warning always even if not necessary.
R=whesse@google.com

Review URL: https://codereview.chromium.org//404333004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38460 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-22 15:01:05 +00:00
zra@google.com 2e6e3133f0 Fixes create_sdk target for cross-builds.
Building an sdk requires snapshots to be generated for
pub, analyzer, dart2js, etc. using a Dart VM binary that
has been built for the host. Currently, when we cross-build,
we do not build a Dart VM binary for the host.

Rather than monkey with the gyp files to do that, this
change modifies build.py to explicitly build:
1. The create_sdk target for the host arch,
2. The runtime target for the target arch,
After which files are copied to create a dart-sdk
directory for the target archetecture.

After this change, we *should* be able to cross-build Debian
packages for arm, which I'll work on in a subsequent change.

R=iposva@google.com, whesse@google.com

Review URL: https://codereview.chromium.org//397593006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38337 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 18:05:42 +00:00
vegorov@google.com d30ecd3fcd Fix Win64 build of Dart VM.
1. Build script tools/build.py now actually builds X64 target when x64
is passed as an architecture:

- GYP files set 'msvs_configuration_platform': 'x64' for Win_x64
configuration;

- NSS related files are fixed to have correct set of defines for ia32
and x64 builds and include right files. A os_windows.c file added to
work-around inability to have different sets of source files per
configuration. Originally this was controlled through target_arch GYP
define and required regeneration of the solution.

- build.py passes Win32 or x64 platform to devenv as part of build
configuration argument;

2. Dart VM now supports Win64 ABI. ABI description is moved into a
separate class CallingConventions in constants_x64.h.

BUG=http://dartbug.com/7792
R=iposva@google.com, ricow@google.com, srdjan@google.com

Review URL: https://codereview.chromium.org//317773002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37078 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 12:14:15 +00:00
zra@google.com 9c73009ff9 Prepares for arm64 cross-build.
With this change, the cross-build succeeds with the Linaro arm64 toolchain.

R=regis@google.com

Review URL: https://codereview.chromium.org//303443010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36698 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 18:05:20 +00:00
aprelev@gmail.com 0ed82805e5 Support build completion notification on Windows.
Build notifications looks cool on Linux and Mac. Let Windows folks have fun with them too.

BUG=dartbug.com/18808
R=ahe@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//284743007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36199 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-15 01:02:04 +00:00
ahe@google.com 76ba04eec9 Add DART_BUILD_NOTIFICATION_DELAY to control notifications
BUG=http://dartbug.com/17965
R=ricow@google.com

Review URL: https://codereview.chromium.org//223703002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34691 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-03 11:09:02 +00:00
zra@google.com 2fe51715e5 Begins work on ARM64, first assembler test.
Most new code is in constants_arm64.h and
{assembler,disassembler,simulator}_arm64.{h,cc}

The rest of the CL just #def's out tests, modifies status files,
and adds UNIMPLEMENTED functions, etc.

R=regis@google.com

Review URL: https://codereview.chromium.org//221133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34654 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-02 17:39:32 +00:00
ahe@google.com 350a33f8ac Display notification when build is done.
For now, only works on Mac and Linux.

R=ricow@google.com

Review URL: https://codereview.chromium.org//219513003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34593 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-01 12:11:45 +00:00
iposva@google.com d20121e855 - Enable automatic cross-builds across ARM and MIPS architectures.
R=ricow@google.com

Review URL: https://codereview.chromium.org//192543002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33482 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-10 12:00:06 +00:00
ahe@google.com bd2ad26d7a Don't eat non-empty chunks.
R=kustermann@google.com

Review URL: https://codereview.chromium.org//138943005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31838 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 17:05:05 +00:00
ahe@google.com 974911e404 Update build.py to handle tweaked Xcode output in newer versions of Xcode.
R=ricow@google.com

Review URL: https://codereview.chromium.org//139443002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31832 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 14:57:58 +00:00
zra@google.com 6c84dd1c0f Updates build scripts for updated android_tools.
R=asiva@google.com

Review URL: https://codereview.chromium.org//120283002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31355 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 22:23:49 +00:00
zra@google.com 3508d336dd Simplifies standalone VM Android build.
This change also avoids the need to
do another 'gclient runhooks' when switching
between Android and Linux builds, and between
IA32 and ARM Android builds.

gyp does not allow 'libraries' sections inside of
configurations. Therefore, since some architecture
specific paths, libraries, etc. must be specified
on the Android NDK's linker command line, to avoid
re-gyping when switching between Android IA32 and ARM,
this change moves the architecture specific linker
flags to a script, android_link.py.

To avoid re-gyping when swtiching between Linux and
Android, this change creates new configurations
that specify the target OS as well as the the target
architecture, e.g. ReleaseLinuxARM or ReleaseAndroidARM
instead of ReleaseARM.

This change also adds a --toolchain flag to build.py,
and removes obsoleted logic for setting up the Android
build.

R=iposva@google.com

Review URL: https://codereview.chromium.org//105223002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31340 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-20 17:51:34 +00:00
zra@google.com df1e5247fe Adds support for ARM softfp calling convention.
The cross-compiler with the Android NDK doesn't support
the 'hard' calling convention, so we need both. I've
added a preprocessor define to the gyp file for the
standalone vm indicating support for 'hard' so that I
don't have to modify the Dartium gyp files.

R=srdjan@google.com

Review URL: https://codereview.chromium.org//52803002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29577 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-30 18:57:55 +00:00
zra@google.com e155ff8c53 Revert last commit
Review URL: https://codereview.chromium.org//23889034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27507 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 23:36:32 +00:00
zra@google.com a61d0c66b0 Allows build of the standalone VM for ARM adroid.
R=iposva@google.com, vsm@google.com

Review URL: https://codereview.chromium.org//23788009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27506 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-13 23:29:14 +00:00
kustermann@google.com 0d8293ef34 Initial support for mac installers. Currently only on our editor builders on FYI
R=devoncarew@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//16831019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24271 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-21 08:37:25 +00:00
kustermann@google.com f73188d127 Use gnueabihf for ARM + enabled corelib/isolate/lib/standalone tests on ARM again
R=regis@google.com

Review URL: https://codereview.chromium.org//16638009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23854 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-11 14:21:28 +00:00
kustermann@google.com 8464ae2ed2 Remove hack for codesourcery crosscompiler since we've precise VMs now
R=ricow@google.com

Review URL: https://codereview.chromium.org//16168004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23334 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 09:36:18 +00:00
kustermann@google.com cfa3c09596 Support for overriding the target toolchain when cross compiling
R=ricow@google.com

Review URL: https://codereview.chromium.org//16143002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23248 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 10:43:08 +00:00
gram@google.com 0eacf440b3 Fix the Skia build for Android.
This will allow the APKs to build successfully, but they are not working anymore. It's a useful step towards fixing them at least.

R=vsm@google.com

Review URL: https://codereview.chromium.org//15317012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22952 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 18:50:12 +00:00
zra@google.com dae5068650 Enables cross-compilation of the VM for ARM.
Uses the "toolset" feature of gyp to build the dart VM
for ARM, but restricts building of snapshot generation
to the host machine.

For generated source files, it also changes to using
LIB_DIR instead of SHARED_INTERMEDIATE_DIR to avoid
generation of duplicate Makefile rules (gyp doesn't
know that generated source files from toolchains it
thinks are different will be the same.)

Review URL: https://codereview.chromium.org//12726011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21757 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-19 18:05:44 +00:00
iposva@google.com 22d42207be - Avoid failing on the buildbot on Mac OS X 10.6.
Review URL: https://codereview.chromium.org//14188003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21306 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 20:14:21 +00:00
kustermann@google.com 28436e163d Change back to building everything if no argument to build.py was given
Review URL: https://codereview.chromium.org//13674027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21073 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 13:58:16 +00:00
ahe@google.com 649f3fa360 Redirect tput stderr to /dev/null.
Review URL: https://codereview.chromium.org//13794003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21070 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:56:43 +00:00
ahe@google.com da25a12caf Only build apidoc in release mode.
Review URL: https://codereview.chromium.org//13784002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21068 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:43:25 +00:00
ahe@google.com 2fec283320 Shorten "progress" information, and make sure it never extend 80 columns.
Review URL: https://codereview.chromium.org//13724018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21067 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:37:41 +00:00
ahe@google.com 22a82af86d Restore incremental output.
Review URL: https://codereview.chromium.org//13601019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21065 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:26:22 +00:00
kustermann@google.com 66455f6e2a Removed the temporary "packages" dependency of create_sdk and switched to "default" target in build.py
Review URL: https://codereview.chromium.org//13754002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21051 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 08:11:35 +00:00
ahe@google.com 76f2ff3197 Catch CalledProcessError which is throw if the command has non-zero exit code.
Review URL: https://codereview.chromium.org//13674014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20992 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 18:15:39 +00:00
ahe@google.com 6d1d524511 Only emit "interactive" output if stdout supports colors.
Review URL: https://codereview.chromium.org//13726008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20991 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 18:02:21 +00:00
ahe@google.com 33c724ab95 Parse output from xcodebuild to make it easier to spot problems with non-incremental builds.
Review URL: https://codereview.chromium.org//13470019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20975 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 15:46:36 +00:00
iposva@google.com ee927443e0 - Add simarm and simmips to --arch=all for builds and tests.
Review URL: https://codereview.chromium.org//12690002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19684 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:46:56 +00:00
aprelev@gmail.com bed78686b6 Try to better guess Visual Studio path.
BUG=

Review URL: https://codereview.chromium.org//12298006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18736 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 03:58:19 +00:00
regis@google.com 350fa57800 Add mips and simmips build targets.
Review URL: https://codereview.chromium.org//11859034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17319 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 21:34:53 +00:00
kustermann@google.com 7e1503cff0 Bugfix in tools/build.py: Error -> Exception rename
Review URL: https://codereview.chromium.org//11440014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15770 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 08:54:40 +00:00
iposva@google.com ffa06389eb - Remove '-parallelizeTargets' from xcodebuild invocation as it eats
the error messages if a build fails when using Xcode 4.4.
Review URL: https://codereview.chromium.org//11280006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14950 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 10:13:30 +00:00
sgjesse@google.com e905ac6fc4 Add -a option to tools/build.py
Short for --arch=

R=ager@google.com

BUG=

Review URL: https://codereview.chromium.org//11275255

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14784 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 12:55:02 +00:00
ricow@google.com 8d38bd7a68 Revert r13932, sys.stdout is not available.
Review URL: https://codereview.chromium.org//11189137

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13934 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 09:20:03 +00:00
ricow@google.com d3fa9bf981 Redirect stderr to sys.stdout for build output.
The stderr is currently not being displayed on the buildbot.
Review URL: https://codereview.chromium.org//11228050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13932 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 09:05:57 +00:00
efortuna@google.com 4d6fc3b482 Change Windows build default to build with VS 2010.
Review URL: https://codereview.chromium.org//11184008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13702 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 21:28:18 +00:00