1
- /** **************************************************************************
2
- Copyright (c) 2015 Roland Ruckerbauer All Rights Reserved.
3
-
4
- This file is part of hidapi_rust.
5
-
6
- hidapi_rust is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU General Public License as published by
8
- the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- hidapi_rust is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU General Public License for more details.
15
-
16
- You should have received a copy of the GNU General Public License
17
- along with hidapi_rust. If not, see <http://www.gnu.org/licenses/>.
18
- ****************************************************************************/
1
+ // **************************************************************************
2
+ // Copyright (c) 2015 Roland Ruckerbauer All Rights Reserved.
3
+ //
4
+ // This file is part of hidapi_rust.
5
+ //
6
+ // hidapi_rust is free software: you can redistribute it and/or modify
7
+ // it under the terms of the GNU General Public License as published by
8
+ // the Free Software Foundation, either version 3 of the License, or
9
+ // (at your option) any later version.
10
+ //
11
+ // hidapi_rust is distributed in the hope that it will be useful,
12
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ // GNU General Public License for more details.
15
+ //
16
+ // You should have received a copy of the GNU General Public License
17
+ // along with hidapi_rust. If not, see <http://www.gnu.org/licenses/>.
18
+ // *************************************************************************
19
19
20
20
extern crate gcc;
21
21
extern crate pkg_config;
@@ -38,18 +38,18 @@ fn compile() {
38
38
#[ cfg( target_os = "windows" ) ]
39
39
fn compile ( ) {
40
40
gcc:: Config :: new ( )
41
- . file ( "etc/hidapi/windows/hid.c" )
42
- . include ( "etc/hidapi/hidapi" )
43
- . compile ( "libhidapi.a" ) ;
41
+ . file ( "etc/hidapi/windows/hid.c" )
42
+ . include ( "etc/hidapi/hidapi" )
43
+ . compile ( "libhidapi.a" ) ;
44
44
println ! ( "cargo:rustc-link-lib=setupapi" ) ;
45
45
}
46
46
47
47
#[ cfg( target_os = "macos" ) ]
48
48
fn compile ( ) {
49
49
gcc:: Config :: new ( )
50
- . file ( "etc/hidapi/mac/hid.c" )
51
- . include ( "etc/hidapi/hidapi" )
52
- . compile ( "libhidapi.a" ) ;
50
+ . file ( "etc/hidapi/mac/hid.c" )
51
+ . include ( "etc/hidapi/hidapi" )
52
+ . compile ( "libhidapi.a" ) ;
53
53
println ! ( "cargo:rustc-link-lib=framework=IOKit" ) ;
54
54
println ! ( "cargo:rustc-link-lib=framework=CoreFoundation" ) ;
55
55
}
0 commit comments