Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp

Issue 10134056: Refactor the process of choosing validators. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: The actual refactoring Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_ldr.h » ('j') | src/trusted/service_runtime/sel_ldr.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp
diff --git a/src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp b/src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp
index 08037d9536a3891dbc22244df3ca5a068e470c2c..3bfdb79b3cb987eef36ecf926123063a9b12c37c 100644
--- a/src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp
+++ b/src/trusted/service_runtime/arch/x86/service_runtime_x86.gyp
@@ -22,6 +22,11 @@
}],
],
},
+ # For standalone binaries (nacl_standalone=1) we link validator_ragel in
+ # addition to the main validator for testing. For chrome we avoid this
+ # dependency to keep download size to a minimum. TODO(pasko): eliminate the
+ # difference when validator_ragel is proven to allow a subset of what the
+ # current validator allows.
'targets': [
{
'target_name': 'service_runtime_x86_common',
@@ -33,13 +38,23 @@
'<(SHARED_INTERMEDIATE_DIR)',
],
'conditions': [
- ['target_arch=="ia32"', {
+ ['nacl_standalone==0 and target_arch=="ia32"', {
Nick Bray 2012/04/25 20:57:42 I think you should split the "standalone" change f
+ 'dependencies': [
+ '<(DEPTH)/native_client/src/trusted/validator/x86/32/validator_x86_32.gyp:ncvalidate_x86_32',
+ ],
+ }],
+ ['nacl_standalone==1 and target_arch=="ia32"', {
'dependencies': [
'<(DEPTH)/native_client/src/trusted/validator/x86/32/validator_x86_32.gyp:ncvalidate_x86_32',
'<(DEPTH)/native_client/src/trusted/validator_ragel/dfa_validator_x86_32.gyp:dfa_validate_x86_32',
],
}],
- ['OS!="win" and target_arch=="x64"', {
+ ['nacl_standalone==0 and OS!="win" and target_arch=="x64"', {
+ 'dependencies': [
+ '<(DEPTH)/native_client/src/trusted/validator/x86/64/validator_x86_64.gyp:ncvalidate_x86_64',
+ ],
+ }],
+ ['nacl_standalone==1 and OS!="win" and target_arch=="x64"', {
'dependencies': [
'<(DEPTH)/native_client/src/trusted/validator/x86/64/validator_x86_64.gyp:ncvalidate_x86_64',
'<(DEPTH)/native_client/src/trusted/validator_ragel/dfa_validator_x86_64.gyp:dfa_validate_x86_64',
@@ -49,7 +64,22 @@
},
],
'conditions': [
- ['OS=="win"', {
+ ['nacl_standalone==0 and OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'service_runtime_x86_common64',
+ 'type': 'static_library',
+ 'variables': {
+ 'target_base': 'srt_x86_cmn',
+ 'win_target': 'x64',
+ },
+ 'dependencies': [
+ '<(DEPTH)/native_client/src/trusted/validator/x86/64/validator_x86_64.gyp:ncvalidate_x86_64',
+ ],
+ },
+ ],
+ }],
+ ['nacl_standalone==1 and OS=="win"', {
'targets': [
{
'target_name': 'service_runtime_x86_common64',
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_ldr.h » ('j') | src/trusted/service_runtime/sel_ldr.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698