File tree Expand file tree Collapse file tree 6 files changed +54
-10
lines changed Expand file tree Collapse file tree 6 files changed +54
-10
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,29 @@ packages:
6
6
- eudev-dev
7
7
- libusb-dev
8
8
- linux-headers
9
+ - cmake
10
+ - ninja
9
11
sources :
10
12
- https://github.com/libusb/hidapi
11
13
tasks :
12
- - setup : |
14
+ - configure : |
13
15
cd hidapi
16
+ echo Configure Autotools build
14
17
./bootstrap
15
18
./configure
16
- - build : |
19
+ echo Configure CMake build
20
+ mkdir -p build install_cmake
21
+ cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
22
+ - build-autotools : |
17
23
cd hidapi
18
24
make
19
25
make DESTDIR=$PWD/root install
20
26
make clean
27
+ - build-cmake : |
28
+ cd hidapi/build
29
+ ninja
30
+ ninja install
31
+ ninja clean
21
32
- build-manual : |
22
33
cd hidapi/linux
23
34
make -f Makefile-manual
Original file line number Diff line number Diff line change @@ -5,18 +5,29 @@ packages:
5
5
- libtool
6
6
- libusb
7
7
- libudev0
8
+ - cmake
9
+ - ninja
8
10
sources :
9
11
- https://github.com/libusb/hidapi
10
12
tasks :
11
- - setup : |
13
+ - configure : |
12
14
cd hidapi
15
+ echo Configure Autotools build
13
16
./bootstrap
14
17
./configure
15
- - build : |
18
+ echo Configure CMake build
19
+ mkdir -p build install_cmake
20
+ cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
21
+ - build-autotools : |
16
22
cd hidapi
17
23
make
18
24
make DESTDIR=$PWD/root install
19
25
make clean
26
+ - build-cmake : |
27
+ cd hidapi/build
28
+ ninja
29
+ ninja install
30
+ ninja clean
20
31
- build-manual : |
21
32
cd hidapi/linux
22
33
make -f Makefile-manual
Original file line number Diff line number Diff line change @@ -5,18 +5,29 @@ packages:
5
5
- libtool
6
6
- mingw64-gcc
7
7
- mingw64-gcc-c++
8
+ - cmake
9
+ - ninja-build
8
10
sources :
9
11
- https://github.com/libusb/hidapi
10
12
tasks :
11
- - setup : |
13
+ - configure : |
12
14
cd hidapi
15
+ echo Configure Autotools build
13
16
./bootstrap
14
17
mingw64-configure
15
- - build : |
18
+ echo Configure CMake build
19
+ mkdir -p build install_cmake
20
+ mingw64-cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
21
+ - build-autotools : |
16
22
cd hidapi
17
23
make
18
24
make DESTDIR=$PWD/root install
19
25
make clean
26
+ - build-cmake : |
27
+ cd hidapi/build
28
+ ninja
29
+ DESTDIR=$PWD/../install_cmake ninja install
30
+ ninja clean
20
31
- build-manual : |
21
32
cd hidapi/windows
22
33
make -f Makefile-manual OS=MINGW CC=x86_64-w64-mingw32-gcc
Original file line number Diff line number Diff line change @@ -6,18 +6,29 @@ packages:
6
6
- libiconv
7
7
- libtool
8
8
- pkgconf
9
+ - cmake
10
+ - ninja
9
11
sources :
10
12
- https://github.com/libusb/hidapi
11
13
tasks :
12
- - setup : |
14
+ - configure : |
13
15
cd hidapi
16
+ echo Configure Autotools build
14
17
./bootstrap
15
18
./configure
16
- - build : |
19
+ echo Configure CMake build
20
+ mkdir -p build install_cmake
21
+ cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install_cmake
22
+ - build-autotools : |
17
23
cd hidapi
18
24
make
19
25
make DESTDIR=$PWD/root install
20
26
make clean
27
+ - build-cmake : |
28
+ cd hidapi/build
29
+ ninja
30
+ ninja install
31
+ ninja clean
21
32
- build-manual : |
22
33
cd hidapi/libusb
23
34
gmake -f Makefile-manual
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
7
7
sources :
8
8
- https://github.com/libusb/hidapi
9
9
tasks :
10
- - setup : |
10
+ - configure : |
11
11
cd hidapi
12
12
mkdir -p build install
13
13
cmake -B build -S . -DCMAKE_INSTALL_PREFIX=install
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ packages:
8
8
sources :
9
9
- https://github.com/libusb/hidapi
10
10
tasks :
11
- - setup : |
11
+ - configure : |
12
12
cd hidapi
13
13
mkdir -p build install
14
14
cmake -GNinja -B build -S . -DCMAKE_INSTALL_PREFIX=install
You can’t perform that action at this time.
0 commit comments