OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 This is a native extension used by the mDNS package (in pkg/mdns) to | 5 This is a native extension used by the mDNS package (in pkg/mdns) to |
6 get mDNS support on Mac OS using the C API. When making changes to | 6 get mDNS support on Mac OS using the C API. When making changes to |
7 this code the native extension need to be updated namually in the | 7 this code the native extension need to be updated namually in the |
8 package. | 8 package. |
9 | 9 |
10 When testing changes on Mac OS: | 10 When testing changes on Mac OS: |
11 | 11 |
12 $ ninja -C out/ReleaseX64 | 12 $ ninja -C out/ReleaseX64 |
13 $ src/pkg/mdns/copy_dylib.sh | 13 $ src/pkg/mdns/copy_dylib.sh |
14 | 14 |
15 When the new .dylib file is working upload it to GCS | 15 When the new .dylib file is working upload it to GCS |
16 | 16 |
17 $ src/pkg/mdns/upload_dylib.sh | 17 $ src/pkg/mdns/upload_dylib.sh |
18 | 18 |
19 The resulting .sha1 file (in pkg/mdns/lib/native) is then updated and | 19 The resulting .sha1 file (in pkg/mdns/lib/native) is then updated and |
20 checked in. | 20 checked in. |
21 | 21 |
22 On Linux replace _dylib with _so in the two script names. | 22 On Linux replace _dylib with _so in the two script names. |
23 | 23 |
24 The extension is also implemented for Linux, but in a no-operation | 24 The extension is also implemented for Linux, but in a no-operation |
25 mode with just simple echo testing. The reason for this is that the | 25 mode with just simple echo testing. The reason for this is that the |
26 mDNS package can then always load the dynamic library. | 26 mDNS package can then always load the dynamic library. |
OLD | NEW |