Skip to content

Commit

Permalink
depends: cleanup packages.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Dec 24, 2024
1 parent 941ecef commit 4156bdc
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions contrib/depends/packages/packages.mk
Original file line number Diff line number Diff line change
@@ -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
hardware_native_packages := native_protobuf

android_native_packages = android_ndk $(hardware_native_packages)
android_packages = ncurses readline protobuf

darwin_native_packages = $(hardware_native_packages)
darwin_packages = ncurses readline $(hardware_packages)
ifneq ($(host_os),android)
packages += libusb
endif

# not really native...
freebsd_native_packages = freebsd_base $(hardware_native_packages)
freebsd_packages = ncurses readline protobuf libusb
ifneq ($(host_os),freebsd)
ifneq ($(host_os),android)
packages += hidapi
endif
endif

linux_packages = eudev ncurses readline $(hardware_packages)
linux_native_packages = $(hardware_native_packages)
ifneq ($(host_os),mingw32)
packages += ncurses readline
endif

ifeq ($(build_tests),ON)
packages += gtest
endif

mingw32_packages = $(hardware_packages)
mingw32_native_packages = $(hardware_native_packages)
linux_native_packages :=
linux_packages := eudev

freebsd_native_packages := freebsd_base
freebsd_packages :=

ifneq ($(build_os),darwin)
darwin_native_packages += darwin_sdk native_cctools native_libtapi
darwin_native_packages := darwin_sdk native_cctools native_libtapi
endif
darwin_packages :=

android_native_packages := android_ndk
android_packages :=

0 comments on commit 4156bdc

Please sign in to comment.