Skip to content

Commit

Permalink
Make the Windows sandbox support a normal x64 build
Browse files Browse the repository at this point in the history
I've fixed the dependencies, so we can now support building the sandbox and running the tests as part of a normal Win64 build.

BUG=168414

Review URL: https://chromiumcodereview.appspot.com/11788002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175278 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
jschuh@chromium.org committed Jan 5, 2013
1 parent 71fa7fd commit 57ba269
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 26 deletions.
54 changes: 30 additions & 24 deletions sandbox/win/sandbox_win.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
'target_defaults': {
'variables': {
'sandbox_windows_target': 0,
'target_arch%': 'ia32',
},
'target_conditions': [
['sandbox_windows_target==1', {
Expand Down Expand Up @@ -133,6 +134,34 @@
'src/window.cc',
'src/window.h',
],
'target_conditions': [
['target_arch=="x64"', {
'sources': [
'src/interceptors_64.cc',
'src/interceptors_64.h',
'src/resolver_64.cc',
'src/service_resolver_64.cc',
'src/Wow64_64.cc',
],
}],
['target_arch=="ia32"', {
'sources': [
'src/resolver_32.cc',
'src/service_resolver_32.cc',
'src/sidestep_resolver.cc',
'src/sidestep_resolver.h',
'src/sidestep\ia32_modrm_map.cpp',
'src/sidestep\ia32_opcode_map.cpp',
'src/sidestep\mini_disassembler_types.h',
'src/sidestep\mini_disassembler.cpp',
'src/sidestep\mini_disassembler.h',
'src/sidestep\preamble_patcher_with_stub.cpp',
'src/sidestep\preamble_patcher.h',
'src/Wow64.cc',
'src/Wow64.h',
],
}],
],
}],
],
},
Expand All @@ -151,22 +180,6 @@
'export_dependent_settings': [
'../base/base.gyp:base',
],
'sources': [
# Files that are used by the 32-bit version of Windows sandbox only.
'src/resolver_32.cc',
'src/service_resolver_32.cc',
'src/sidestep_resolver.cc',
'src/sidestep_resolver.h',
'src/sidestep\ia32_modrm_map.cpp',
'src/sidestep\ia32_opcode_map.cpp',
'src/sidestep\mini_disassembler_types.h',
'src/sidestep\mini_disassembler.cpp',
'src/sidestep\mini_disassembler.h',
'src/sidestep\preamble_patcher_with_stub.cpp',
'src/sidestep\preamble_patcher.h',
'src/Wow64.cc',
'src/Wow64.h',
],
'include_dirs': [
'../..',
],
Expand All @@ -191,6 +204,7 @@
'type': 'static_library',
'variables': {
'sandbox_windows_target': 1,
'target_arch': 'x64',
},
'dependencies': [
'../testing/gtest.gyp:gtest',
Expand All @@ -202,14 +216,6 @@
'msvs_target_platform': 'x64',
},
},
'sources': [
# Files that are used by the 64-bit version of Windows sandbox only.
'src/interceptors_64.cc',
'src/interceptors_64.h',
'src/resolver_64.cc',
'src/service_resolver_64.cc',
'src/Wow64_64.cc',
],
'include_dirs': [
'../..',
],
Expand Down
4 changes: 2 additions & 2 deletions sandbox/win/src/sandbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#if defined(_WIN64) && !defined(NACL_WIN64)
// We allow building this code for Win64 as part of NaCl to enable development
#error Sandbox code was not tested on 64-bit Windows. See \
http://crbug.com/27218 for details and progress log.
#pragma message("Sandbox code was not fully tested on 64-bit Windows.\
crbug.com/168414 ")
#endif
Expand Down

0 comments on commit 57ba269

Please sign in to comment.