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

Unified Diff: Source/bindings/dart/gyp/overrides.gypi

Issue 446733003: Tue Aug 5 16:08:45 PDT 2014 Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Created 6 years, 4 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 | « Source/bindings/dart/gyp/dartium.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/gyp/overrides.gypi
diff --git a/Source/bindings/dart/gyp/overrides.gypi b/Source/bindings/dart/gyp/overrides.gypi
index 9adccff3753afd0ee6841eb6a17b4fa0b7efadbe..d5d8f9488aa41d4ca1e75005bcffa59fc37c81d5 100644
--- a/Source/bindings/dart/gyp/overrides.gypi
+++ b/Source/bindings/dart/gyp/overrides.gypi
@@ -1,8 +1,13 @@
{
'variables': {
+ # We have to nest variables inside variables so that they can be overridden
+ # through GYP_DEFINES.
+ 'variables': {
+ 'enable_dart_native_extensions%': 0,
+ },
+ 'enable_dart_native_extensions%': '<(enable_dart_native_extensions)',
'additional_target_deps': [
'../bindings/dart/gyp/dartium.gyp:dart_snapshot#host',
- '../../../../dart/runtime/dart-runtime.gyp:libdart',
],
'additional_webcore_include_dirs': [
'..',
@@ -20,5 +25,18 @@
# FIXMEDART: make conditional.
'<@(dart_class_id_files)',
],
+ 'conditions': [
+ ['enable_dart_native_extensions==1', {
+ 'additional_target_deps': [
+ # Reference Dart from a shared library which can be used outside of Dartium
+ '../bindings/dart/gyp/dartium.gyp:dart_library',
+ ],
+ }, {
+ 'additional_target_deps': [
+ # Link in Dart directly
+ '../../../../dart/runtime/dart-runtime.gyp:libdart',
+ ],
+ }],
+ ],
},
}
« no previous file with comments | « Source/bindings/dart/gyp/dartium.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698