diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:30:37 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 00:30:37 +0000 |
commit | ef89167e5f06602db67c2bee729fe4534a567257 (patch) | |
tree | ea298c2a9e07502312b2c0734eb0d27d11add353 /native_client_sdk | |
parent | 19df700233f425265497f0d85da6381cc6d665e3 (diff) | |
download | chromium_src-ef89167e5f06602db67c2bee729fe4534a567257.zip chromium_src-ef89167e5f06602db67c2bee729fe4534a567257.tar.gz chromium_src-ef89167e5f06602db67c2bee729fe4534a567257.tar.bz2 |
[NaCl SDK] Two fixes for the windows builders.
1) windows-sdk-multi builder tries to access a path that is a little too long
-- temporarily change the output directory (gypbuild) to something shorter (gb)
so it will work.
2) dump_syms doesn't build on windows yet. Remove it from the build.
BUG=245453
R=sbc@chromium.org
Review URL: https://codereview.chromium.org/15841016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rwxr-xr-x | native_client_sdk/src/build_tools/build_sdk.py | 34 | ||||
-rw-r--r-- | native_client_sdk/src/build_tools/sdk_files.list | 4 |
2 files changed, 27 insertions, 11 deletions
diff --git a/native_client_sdk/src/build_tools/build_sdk.py b/native_client_sdk/src/build_tools/build_sdk.py index 5b79353..c5c0453 100755 --- a/native_client_sdk/src/build_tools/build_sdk.py +++ b/native_client_sdk/src/build_tools/build_sdk.py @@ -56,6 +56,13 @@ CYGTAR = os.path.join(NACL_DIR, 'build', 'cygtar.py') NACLPORTS_URL = 'https://naclports.googlecode.com/svn/trunk/src' NACLPORTS_REV = 757 +# TODO(binji): horrible hack to make the Windows builders go green... +# Windows has a path length limit of 255 characters, after joining cwd with a +# relative path. Some of the Windows builders are over by just a little bit, so +# we'll temporarily use a shorter build directory name to make it all work. +# See http://crbug.com/245453 +GYPBUILD_DIR = 'gb' # Was 'gypbuild' + options = None @@ -434,10 +441,9 @@ TOOLCHAIN_LIBS = { def GypNinjaInstall(pepperdir, platform, toolchains): - build_dir = 'gypbuild' + build_dir = GYPBUILD_DIR ninja_out_dir = os.path.join(OUT_DIR, build_dir, 'Release') tools_files = [ - ['dump_syms', 'dump_syms'], ['sel_ldr', 'sel_ldr_x86_32'], ['ncval_x86_32', 'ncval_x86_32'], ['ncval_arm', 'ncval_arm'], @@ -445,6 +451,11 @@ def GypNinjaInstall(pepperdir, platform, toolchains): ['irt_core_newlib_x64.nexe', 'irt_core_x86_64.nexe'], ] + # TODO(binji): dump_syms doesn't currently build on Windows. See + # http://crbug.com/245456 + if platform != 'win': + tools_files.append(['dump_syms', 'dump_syms']) + if platform != 'mac': # Mac doesn't build 64-bit binaries. tools_files.append(['sel_ldr64', 'sel_ldr_x86_64']) @@ -473,10 +484,10 @@ def GypNinjaInstall(pepperdir, platform, toolchains): tc_dir = 'tc_' + tc lib_dir = 'lib' + archname if archname == 'arm': - build_dir = 'gypbuild-arm' + build_dir = GYPBUILD_DIR + '-arm' tcdir = '%s_arm_%s' % (platform, tc) else: - build_dir = 'gypbuild' + build_dir = GYPBUILD_DIR tcdir = '%s_x86_%s' % (platform, tc) ninja_out_dir = os.path.join(OUT_DIR, build_dir, 'Release') @@ -528,6 +539,11 @@ def GypNinjaBuild_NaCl(platform, rel_out_dir): def GypNinjaBuild_Breakpad(platform, rel_out_dir): + # TODO(binji): dump_syms doesn't currently build on Windows. See + # http://crbug.com/245456 + if platform == 'win': + return + gyp_py = os.path.join(SRC_DIR, 'build', 'gyp_chromium') out_dir = MakeNinjaRelPath(rel_out_dir) gyp_file = os.path.join(SRC_DIR, 'breakpad', 'breakpad.gyp') @@ -593,8 +609,8 @@ def NinjaBuild(targets, out_dir): def BuildStepBuildToolchains(pepperdir, platform, toolchains): buildbot_common.BuildStep('SDK Items') - GypNinjaBuild_NaCl(platform, 'gypbuild') - GypNinjaBuild_Breakpad(platform, 'gypbuild') + GypNinjaBuild_NaCl(platform, GYPBUILD_DIR) + GypNinjaBuild_Breakpad(platform, GYPBUILD_DIR) tcname = platform + '_x86' newlibdir = os.path.join(pepperdir, 'toolchain', tcname + '_newlib') @@ -602,10 +618,10 @@ def BuildStepBuildToolchains(pepperdir, platform, toolchains): pnacldir = os.path.join(pepperdir, 'toolchain', tcname + '_pnacl') if set(toolchains) & set(['glibc', 'newlib']): - GypNinjaBuild_PPAPI('ia32', 'gypbuild') + GypNinjaBuild_PPAPI('ia32', GYPBUILD_DIR) if 'arm' in toolchains: - GypNinjaBuild_PPAPI('arm', 'gypbuild-arm') + GypNinjaBuild_PPAPI('arm', GYPBUILD_DIR + '-arm') GypNinjaInstall(pepperdir, platform, toolchains) @@ -632,7 +648,7 @@ def BuildStepBuildToolchains(pepperdir, platform, toolchains): for arch in ('ia32', 'arm'): # Fill in the latest native pnacl shim library from the chrome build. - build_dir = 'gypbuild-pnacl-' + arch + build_dir = GYPBUILD_DIR + '-pnacl-' + arch GypNinjaBuild_Pnacl(build_dir, arch) pnacl_libdir_map = {'ia32': 'x86-64', 'arm': 'arm'} release_build_dir = os.path.join(OUT_DIR, build_dir, 'Release', diff --git a/native_client_sdk/src/build_tools/sdk_files.list b/native_client_sdk/src/build_tools/sdk_files.list index 5d9e62c..4681a08 100644 --- a/native_client_sdk/src/build_tools/sdk_files.list +++ b/native_client_sdk/src/build_tools/sdk_files.list @@ -145,12 +145,13 @@ examples/demo/pi_generator/index.html examples/demo/pi_generator/Makefile examples/demo/pi_generator/manifest.json examples/demo/pi_generator/pi_generator.cc -examples/demo/voronoi/Makefile examples/demo/voronoi/background.js examples/demo/voronoi/common.js examples/demo/voronoi/example.js examples/demo/voronoi/icon128.png examples/demo/voronoi/index.html +examples/demo/voronoi/Makefile +[win]examples/demo/voronoi/make.bat examples/demo/voronoi/manifest.json examples/demo/voronoi/threadpool.cc examples/demo/voronoi/threadpool.h @@ -964,7 +965,6 @@ tools/compiler-wrapper.py tools/create_nmf.py tools/decode_dump.py [linux,mac]tools/dump_syms -[win]tools/dump_syms.exe tools/genhttpfs.py tools/getos.py tools/host_gcc.mk |