-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbinding.gyp
More file actions
84 lines (82 loc) · 2.66 KB
/
Copy pathbinding.gyp
File metadata and controls
84 lines (82 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
'variables': {
'module_name': 'devicestatus',#Specify the module name here
#you may override the variables found in node_module.gypi here or through command line
},
'targets': [
{
# Needed declarations for the target
'target_name': '<(module_name)',
'product_name':'nativedevicestatus',
'sources': [ #Specify your source files here
'src/nativedevicestatus.cc',
'src/aspects.cc',
'src/utils.cc',
],
'conditions': [
['OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux")', {
'defines': ['OS_LINUX'],
'sources': [
'src/aspects/platform/linux/battery.cc',
'src/aspects/platform/linux/cpu.cc',
'src/aspects/platform/linux/device.cc',
'src/aspects/platform/linux/display.cc',
'src/aspects/platform/linux/input_device.cc',
'src/aspects/platform/linux/memory_unit.cc',
'src/aspects/platform/linux/operating_system.cc',
'src/aspects/platform/linux/wifi_hardware.cc',
'src/aspects/platform/linux/wifi_network.cc',
'src/aspects/platform/linux/wired_network.cc'
]
}],
[ 'OS=="win"', {
'defines': ['OS_WIN'],
'sources': [
'src/aspects/platform/win/battery.cc',
'src/aspects/platform/win/cpu.cc',
'src/aspects/platform/win/device.cc',
'src/aspects/platform/win/display.cc',
'src/aspects/platform/win/input_device.cc',
'src/aspects/platform/win/memory_unit.cc',
'src/aspects/platform/win/operating_system.cc',
'src/aspects/platform/win/wifi_hardware.cc',
'src/aspects/platform/win/wired_network.cc'
]
}],
[ 'OS=="mac"', {
'defines': ['OS_LINUX'],
'sources': [
'src/aspects/platform/mac/battery.cc',
'src/aspects/platform/mac/camera.cc',
'src/aspects/platform/mac/cellular_hardware.cc',
'src/aspects/platform/mac/cellular_network.cc',
'src/aspects/platform/mac/cpu.cc',
'src/aspects/platform/mac/device.cc',
'src/aspects/platform/mac/display.cc',
'src/aspects/platform/mac/input_control.cc',
'src/aspects/platform/mac/input_device.cc',
'src/aspects/platform/mac/memory_unit.cc',
'src/aspects/platform/mac/operating_system.cc',
'src/aspects/platform/mac/parental_rating.cc',
'src/aspects/platform/mac/web_runtime.cc',
'src/aspects/platform/mac/wifi_hardware.cc',
'src/aspects/platform/mac/wifi_network.cc',
'src/aspects/platform/mac/wired_network.cc'
]
}],
],
},
{
'target_name': 'webinos_wrt',
'type': 'none',
'toolsets': ['host'],
'copies': [
{
'files': [
'<(PRODUCT_DIR)/nativedevicestatus.node',
],
'destination': 'node_modules/',
}],
}, # end webinos_wrt
] # end targets
}