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

Unified Diff: src/pkg/mdns/mdns.gyp

Issue 1403303012: Re-land "Extend the mDNS package with a native extension used on Mac OS" (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Added mussing scripts Created 5 years, 1 month 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 | « src/pkg/mdns/copy_so.sh ('k') | src/pkg/mdns/mdns_extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/mdns/mdns.gyp
diff --git a/src/pkg/mdns/mdns.gyp b/src/pkg/mdns/mdns.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..8accdb0127cee0b26f006a8bf5012cac03c6b1f4
--- /dev/null
+++ b/src/pkg/mdns/mdns.gyp
@@ -0,0 +1,43 @@
+# Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE.md file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'mdns_extension_lib',
+ 'type': 'shared_library',
+ 'include_dirs': [
+ '../../../third_party/dart/runtime',
+ ],
+ 'cflags!': [
+ '-Wnon-virtual-dtor',
+ '-Woverloaded-virtual',
+ '-fno-rtti',
+ '-fvisibility-inlines-hidden',
+ '-Wno-conversion-null',
+ ],
+ 'sources': [
+ 'mdns_extension.cc',
+ 'mdns_extension_linux.cc',
+ 'mdns_extension_macos.cc',
+ ],
+ 'defines': [
+ # The only effect of DART_SHARED_LIB is to export the Dart API.
+ 'DART_SHARED_LIB',
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
+ },
+ }],
+ ['OS=="linux"', {
+ 'cflags': [
+ '-fPIC',
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « src/pkg/mdns/copy_so.sh ('k') | src/pkg/mdns/mdns_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698