Skip to content

Commit 1ac78c9

Browse files
committed
added automatic platform detection
1 parent 12e9eaf commit 1ac78c9

File tree

7 files changed

+25
-166
lines changed

7 files changed

+25
-166
lines changed

binding.gyp

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
'targets': [
3+
{
4+
"target_name": "listcom",
5+
"sources": [ "jsListCom.cpp" ].
6+
"conditions": [
7+
['OS=="win"',
8+
{
9+
"sources": [
10+
"src_win\listCom.c"]
11+
],
12+
}
13+
],
14+
['OS!="win"',
15+
{
16+
"sources": [
17+
"src_mac/listCom.c"
18+
19+
],
20+
}
21+
],
22+
],
23+
},
24+
],
25+
}

src_mac/jsListCom.cpp jsListCom.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <stdio.h>
77
#include <stdlib.h>
88
#include <string.h>
9-
#include "listCom.c"
109

1110

1211
uv_mutex_t write_queue_mutex;

src_mac/binding.gyp

-8
This file was deleted.

src_win/binding.gyp

-8
This file was deleted.

src_win/jsListCom.cpp

-133
This file was deleted.

src_win/test.js

-16
This file was deleted.

src_mac/test.js test.js

File renamed without changes.

0 commit comments

Comments
 (0)