OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE.md file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'mdns_extension_lib', |
| 9 'type': 'shared_library', |
| 10 'include_dirs': [ |
| 11 '../../../third_party/dart/runtime', |
| 12 ], |
| 13 'cflags!': [ |
| 14 '-Wnon-virtual-dtor', |
| 15 '-Woverloaded-virtual', |
| 16 '-fno-rtti', |
| 17 '-fvisibility-inlines-hidden', |
| 18 '-Wno-conversion-null', |
| 19 ], |
| 20 'sources': [ |
| 21 'mdns_extension.cc', |
| 22 'mdns_extension_linux.cc', |
| 23 'mdns_extension_macos.cc', |
| 24 ], |
| 25 'defines': [ |
| 26 # The only effect of DART_SHARED_LIB is to export the Dart API. |
| 27 'DART_SHARED_LIB', |
| 28 ], |
| 29 'conditions': [ |
| 30 ['OS=="mac"', { |
| 31 'xcode_settings': { |
| 32 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
| 33 }, |
| 34 }], |
| 35 ['OS=="linux"', { |
| 36 'cflags': [ |
| 37 '-fPIC', |
| 38 ], |
| 39 }], |
| 40 ], |
| 41 }, |
| 42 ], |
| 43 } |
OLD | NEW |