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

Unified Diff: Source/bindings/core/dart/dart-native-extensions.gyp

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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/core/dart/dart-extras.gypi ('k') | Source/bindings/core/dart/dart-native-extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/dart/dart-native-extensions.gyp
diff --git a/Source/bindings/core/dart/dart-native-extensions.gyp b/Source/bindings/core/dart/dart-native-extensions.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..465a874344f70e3d39d26124d654bc8a852df300
--- /dev/null
+++ b/Source/bindings/core/dart/dart-native-extensions.gyp
@@ -0,0 +1,58 @@
+{
+ 'variables': {
+ 'dart_dir': '../../../../../../dart',
+ },
+
+ 'targets': [
+ {
+ 'target_name': 'dart_library',
+ 'type': 'shared_library',
+ 'dependencies': [
+ '<(dart_dir)/runtime/dart-runtime.gyp:libdart',
+ ],
+ 'sources': [
+ 'shared_lib/DartLibraryMain.cpp',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+ '-fPIC',
+ ],
+ 'ldflags!': [
+ # Remove to allow Dart_ APIs to be exported.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ }],
+ ['OS=="android"', {
+ 'cflags': [
+ '-fPIC',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '-landroid',
+ '-llog',
+ ],
+ },
+ 'ldflags!': [
+ # Remove to allow Dart_ APIs to be exported.
+ '-Wl,--exclude-libs=ALL',
+ ],
+ 'ldflags': [
+ '-rdynamic',
+ ],
+ 'all_dependent_settings': {
+ 'ldflags!': [
+ # See https://code.google.com/p/chromium/issues/detail?id=266155
+ # When compiling dependent shared libraries, Android's GCC linker
+ # reports a warning that this library is referencing isspace from
+ # libjingle.
+ # isspace should be inlined and is not reported as unresolved in
+ # this library.
+ '-Wl,--fatal-warnings',
+ ],
+ },
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « Source/bindings/core/dart/dart-extras.gypi ('k') | Source/bindings/core/dart/dart-native-extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698