| 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',
|
| + ],
|
| + },
|
| + }],
|
| + ],
|
| + },
|
| + ],
|
| +}
|
|
|