| OLD | NEW |
| (Empty) |
| 1 { | |
| 2 'variables': { | |
| 3 'dart_dir': '../../../../../../dart', | |
| 4 }, | |
| 5 | |
| 6 'targets': [ | |
| 7 { | |
| 8 'target_name': 'dart_library', | |
| 9 'type': 'shared_library', | |
| 10 'dependencies': [ | |
| 11 '<(dart_dir)/runtime/dart-runtime.gyp:libdart', | |
| 12 ], | |
| 13 'sources': [ | |
| 14 'shared_lib/DartLibraryMain.cpp', | |
| 15 ], | |
| 16 'conditions': [ | |
| 17 ['OS=="linux"', { | |
| 18 'cflags': [ | |
| 19 '-fPIC', | |
| 20 ], | |
| 21 'ldflags!': [ | |
| 22 # Remove to allow Dart_ APIs to be exported. | |
| 23 '-Wl,--exclude-libs=ALL', | |
| 24 ], | |
| 25 }], | |
| 26 ['OS=="android"', { | |
| 27 'cflags': [ | |
| 28 '-fPIC', | |
| 29 ], | |
| 30 'link_settings': { | |
| 31 'libraries': [ | |
| 32 '-landroid', | |
| 33 '-llog', | |
| 34 ], | |
| 35 }, | |
| 36 'ldflags!': [ | |
| 37 # Remove to allow Dart_ APIs to be exported. | |
| 38 '-Wl,--exclude-libs=ALL', | |
| 39 ], | |
| 40 'ldflags': [ | |
| 41 '-rdynamic', | |
| 42 ], | |
| 43 'all_dependent_settings': { | |
| 44 'ldflags!': [ | |
| 45 # See https://code.google.com/p/chromium/issues/detail?id=266155 | |
| 46 # When compiling dependent shared libraries, Android's GCC linker | |
| 47 # reports a warning that this library is referencing isspace from | |
| 48 # libjingle. | |
| 49 # isspace should be inlined and is not reported as unresolved in | |
| 50 # this library. | |
| 51 '-Wl,--fatal-warnings', | |
| 52 ], | |
| 53 }, | |
| 54 }], | |
| 55 ], | |
| 56 }, | |
| 57 ], | |
| 58 } | |
| OLD | NEW |