depends: cleanup packages.mk

This commit is contained in:
tobtoht 2024-12-24 11:39:29 +01:00
parent 941ecefab2
commit 4156bdcd16
No known key found for this signature in database
GPG Key ID: E45B10DD027D2472

View File

@ -1,28 +1,34 @@
packages:=boost openssl zeromq expat unbound sodium native_packages := native_protobuf
packages := boost openssl zeromq expat unbound sodium protobuf
hardware_packages := hidapi protobuf libusb ifneq ($(host_os),android)
hardware_native_packages := native_protobuf packages += libusb
endif
android_native_packages = android_ndk $(hardware_native_packages) ifneq ($(host_os),freebsd)
android_packages = ncurses readline protobuf ifneq ($(host_os),android)
packages += hidapi
endif
endif
darwin_native_packages = $(hardware_native_packages) ifneq ($(host_os),mingw32)
darwin_packages = ncurses readline $(hardware_packages) packages += ncurses readline
endif
# not really native...
freebsd_native_packages = freebsd_base $(hardware_native_packages)
freebsd_packages = ncurses readline protobuf libusb
linux_packages = eudev ncurses readline $(hardware_packages)
linux_native_packages = $(hardware_native_packages)
ifeq ($(build_tests),ON) ifeq ($(build_tests),ON)
packages += gtest packages += gtest
endif endif
mingw32_packages = $(hardware_packages) linux_native_packages :=
mingw32_native_packages = $(hardware_native_packages) linux_packages := eudev
freebsd_native_packages := freebsd_base
freebsd_packages :=
ifneq ($(build_os),darwin) ifneq ($(build_os),darwin)
darwin_native_packages += darwin_sdk native_cctools native_libtapi darwin_native_packages := darwin_sdk native_cctools native_libtapi
endif endif
darwin_packages :=
android_native_packages := android_ndk
android_packages :=