Ihor Dutchak

Results 428 comments of Ihor Dutchak

Maybe the build directory has to be outside of the sourse tree? E.g.: `meson ../build_darwin && cd ../build_darwin`

There is no way right now. Unless one writes a Mason build script for hidtest

The way you're building it right now is the cleanest possible with CMake at the moment. The only implication of the overwriting CMake files is that when a CMake user...

> https://gitlab.com/nomadic-labs/hidapi-apk/-/blob/main/APKBUILD#L30 BTW: I recommend installing static version first, and then shared, so by default your CMake users would use a shared version of the library - to be consistent...

> This may be somethign that could be improved on HIDAPI side My analysis: --- > LIBHIDAPI_LIBS="-l:libhidapi-libusb.a" I'd say this is practically a "manually hard-coding the path" (library name). >...

> pkg-config --libs hidapi-libusb-static --static Technically that is an entirely different library, which happens to have (almost) the same name. But thanks for suggestion. > I was just answering the...

So far I haven't seen a single pkg-config package, that would provide link options to link against static version of the library, when pass `--static` paramater to `pkg-config`.

> a common CMake question A common question of those who started using CMake _after Autotools_. _Context/bias_ is important.

> mcuee@UbuntuSwift3:~/build/hidapi/build$ pkg-config --static --libs libusb-1.0 -L/usr/local/lib -lusb-1.0 -ludev -latomic -lpthread True, but pass those to the linker of you own library/application - you're still going to be linked against...

🤯 Agree, there is absolutely no reasons for that.