| Index: Source/bindings/dart/gyp/dartium.gyp
|
| diff --git a/Source/bindings/dart/gyp/dartium.gyp b/Source/bindings/dart/gyp/dartium.gyp
|
| index 77314b2b4d11fddd0caa2a47815f277f64541b7c..59a8aa45836a3c145c146f58d03c0035b325edc0 100644
|
| --- a/Source/bindings/dart/gyp/dartium.gyp
|
| +++ b/Source/bindings/dart/gyp/dartium.gyp
|
| @@ -159,5 +159,55 @@
|
| },
|
| ],
|
| },
|
| + {
|
| + 'target_name': 'dart_library',
|
| + 'type': 'shared_library',
|
| + 'dependencies': [
|
| + '<(dart_dir)/runtime/dart-runtime.gyp:libdart',
|
| + ],
|
| + 'sources': [
|
| + '../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',
|
| + ],
|
| + },
|
| + }],
|
| + ],
|
| + },
|
| ],
|
| }
|
|
|