From 3b32fa66e6260cc1cacd1c6c5f95b5bae6237f87 Mon Sep 17 00:00:00 2001 From: "gregoryd@google.com" Date: Thu, 25 Feb 2010 23:17:09 +0000 Subject: 64-bit Windows support for NaCl: update NaCl revision in Chrome, enable the 64-bit loader code and fix some build issues. Review URL: http://codereview.chromium.org/651065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40062 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/chrome_browser.gypi | 5 +++++ chrome/chrome_renderer.gypi | 5 +++++ chrome/nacl.gypi | 23 +++++++++++++++++++++++ chrome/nacl/sel_main.cc | 5 ----- 4 files changed, 33 insertions(+), 5 deletions(-) (limited to 'chrome') diff --git a/chrome/chrome_browser.gypi b/chrome/chrome_browser.gypi index 2b4952d..fe6cd31 100755 --- a/chrome/chrome_browser.gypi +++ b/chrome/chrome_browser.gypi @@ -37,6 +37,11 @@ 'defines': [ '<@(nacl_defines)', ], + 'direct_dependent_settings': { + 'defines': [ + '<@(nacl_defines)', + ], + }, 'sources': [ # All .cc, .h, .m, and .mm files under browser except for tests and # mocks. diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi index 4c22c42..155c8d2 100755 --- a/chrome/chrome_renderer.gypi +++ b/chrome/chrome_renderer.gypi @@ -33,6 +33,11 @@ 'defines': [ '<@(nacl_defines)', ], + 'direct_dependent_settings': { + 'defines': [ + '<@(nacl_defines)', + ], + }, 'sources': [ # TODO(jrg): to link ipc_tests, these files need to be in renderer.a. # But app/ is the wrong directory for them. diff --git a/chrome/nacl.gypi b/chrome/nacl.gypi index 1858f97..ff926b3 100644 --- a/chrome/nacl.gypi +++ b/chrome/nacl.gypi @@ -35,11 +35,17 @@ '__STD_C', '_CRT_SECURE_NO_DEPRECATE', '_SCL_SECURE_NO_DEPRECATE', + '__STDC_LIMIT_MACROS=1', ], 'include_dirs': [ 'third_party/wtl/include', ], },], + ['OS=="linux"', { + 'defines': [ + '__STDC_LIMIT_MACROS=1', + ], + },], ], }], ], @@ -69,6 +75,13 @@ '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate', '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib', ], + 'direct_dependent_settings': { + 'defines': [ + 'NACL_BLOCK_SHIFT=5', + 'NACL_BLOCK_SIZE=32', + '<@(nacl_defines)', + ], + }, }, ], 'conditions': [ @@ -88,6 +101,9 @@ 'chrome_resources', 'chrome_strings', 'common_nacl_win64', + '../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome64', + '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel64', + '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib64', ], 'sources': [ 'nacl/broker_thread.cc', @@ -101,6 +117,13 @@ 'msvs_target_platform': 'x64', }, }, + 'direct_dependent_settings': { + 'defines': [ + 'NACL_BLOCK_SHIFT=5', + 'NACL_BLOCK_SIZE=32', + '<@(nacl_defines)', + ], + }, }, ], }], diff --git a/chrome/nacl/sel_main.cc b/chrome/nacl/sel_main.cc index 4a2427b..5086d1e 100644 --- a/chrome/nacl/sel_main.cc +++ b/chrome/nacl/sel_main.cc @@ -54,10 +54,6 @@ static void StopForDebuggerInit(const struct NaClApp *state) { } int SelMain(const int desc, const NaClHandle handle) { -#ifdef _WIN64 - /* TODO(gregoryd): remove this when NaCl's service_runtime supports Win64 */ - return 0; -#else char *av[1]; int ac = 1; @@ -204,6 +200,5 @@ int SelMain(const int desc, const NaClHandle handle) { NaClAllModulesFini(); return ret_code; -#endif } -- cgit v1.1