|
126 | 126 | "<!@(find <(OZW_INC) -name OZWException.h -exec echo -n \"-fno-exceptions\" \\;)"
|
127 | 127 | ]
|
128 | 128 | }],
|
| 129 | + ['OS=="freebsd"', { |
| 130 | + "variables": { |
| 131 | + "OZW_INC" : "<!(pkg-config --cflags-only-I libopenzwave | sed s/-I//g)", |
| 132 | + "OZW_LIB_PATH" : "<!(pkg-config --variable=libdir libopenzwave)", |
| 133 | + "OZW_GITVERSION" : "<!(pkg-config --variable=gitversion libopenzwave)", |
| 134 | + "OZW_ETC" : "<!(pkg-config --variable=sysconfdir libopenzwave)", |
| 135 | + "OZW_DOC" : "<!(pkg-config --variable=docdir libopenzwave)" |
| 136 | + }, |
| 137 | + "defines": [ |
| 138 | + "OPENZWAVE_ETC=<(OZW_ETC)/config", |
| 139 | + "OPENZWAVE_DOC=<!@(node -p -e \"'<(OZW_DOC)'.length ? '<(OZW_DOC)' : '/usr/local/share/doc/openzwave'\")", |
| 140 | + "OPENZWAVE_SECURITY=<!@(find <(OZW_INC) -name ZWSecurity.h | wc -l)", |
| 141 | + "OPENZWAVE_EXCEPTIONS=<!@(find <(OZW_INC) -name OZWException.h | wc -l)", |
| 142 | + "OPENZWAVE_16=<!@(find <(OZW_INC) -name ValueBitSet.h | wc -l)", |
| 143 | + "OPENZWAVE_VALUETYPE_FROM_ENUM=<!@(grep -r GetTypeNameFromEnum <(OZW_INC)/value_classes | wc -l)", |
| 144 | + "OPENZWAVE_VALUETYPE_FROM_VALUEID=<!@(grep -r GetTypeAsString <(OZW_INC)/value_classes | wc -l)" |
| 145 | + ], |
| 146 | + "cflags": [ |
| 147 | + "-Wno-ignored-qualifiers", |
| 148 | + "-Wno-write-strings", |
| 149 | + "-Wno-unknown-pragmas", |
| 150 | + "<!@(find <(OZW_INC) -name OZWException.h -exec echo -n \"-fexceptions\" \\;)" |
| 151 | + ], |
| 152 | + "cflags_cc!": [ |
| 153 | + "<!@(find <(OZW_INC) -name OZWException.h -exec echo -n \"-fno-exceptions\" \\;)" |
| 154 | + ], |
| 155 | + "link_settings": { |
| 156 | + "libraries": [ |
| 157 | + "-L/usr/local/lib/", "-lopenzwave" |
| 158 | + ] |
| 159 | + }, |
| 160 | + "include_dirs": [ |
| 161 | + "<!(node -p -e \"require('path').dirname(require.resolve('nan'))\")", |
| 162 | + '/usr/local/include/openzwave/', |
| 163 | + '/usr/local/include/openzwave/value_classes/' |
| 164 | + ], |
| 165 | + }], |
129 | 166 | ['OS=="win"', {
|
130 | 167 | "variables": {
|
131 | 168 | "OZW_HOME": "<!(node lib/install-ozw.js --get-ozw-home)"
|
|
0 commit comments