aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
AgeCommit message (Collapse)Author
2022-08-11Fix darwin build.Elliott Hughes
libusb now needs the Security framework apparently. Bug: http://b/242226728 Test: treehugger Change-Id: Iefea6d9d6d4aa70698a3f9496e47aee5df29b91b
2022-03-08Tweak linux_glibc properties for musl builds in external/libusbColin Cross
For convenience, builds against musl libc currently use the linux_glibc properties because they are almost always linux-specific and not glibc-specific. In preparation for removing this hack, tweak the linux_glibc properties by either moving them to host_linux, which will apply to linux_glibc, linux_musl and linux_bionic, or by setting appropriate musl or linux_musl properties. Properties that must not be repeated while musl uses linux_musl and also still uses the linux_glibc properties are moved to glibc properties, which don't apply to musl. Whether these stay as glibc properties or get moved back to linux_glibc later once the musl hack is removed is TBD. Bug: 223257095 Test: m checkbuild Test: m USE_HOST_MUSL=true host-native Change-Id: Ifc78a0294bd34146aa352064e071c8a7e0322e42
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to external/libusbBob Badour
Added SPDX-license-identifier-GPL SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 SPDX-license-identifier-MIT to: Android.bp Added SPDX-license-identifier-LGPL SPDX-license-identifier-LGPL-2.1 SPDX-license-identifier-LGPL-3.0 to: android/jni/examples.mk android/jni/libusb.mk android/jni/tests.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I83e2ada5cc458204d8758e5772fb561a8675e2d3
2021-01-22Silence -Wunguarded-availabilityJiyong Park
The build system recently started to use `-Wunguarded-availability` and is complaining that the calls to clock_gettime isn't properly guarded with the runtime __builtin_availability check. However, the call is already statically guarded by HAVE_CLOCK_GETTIME. Silence the unguarded availability check. Bug: 178124881 Test: watch a forrest run on mac Change-Id: I0715091620ce1a5346f21c3484f4714d760bea61
2020-12-14Upgrade libusb to v1.0.24Haibo Huang
With manual updates to Android.bp and the (darwin linux windows)/config.h files. Test: treehugger Change-Id: Ie7538ff6b1e3e08fbdca1fe4d40deca6d0656539
2020-09-08linux_bionic is linuxJiyong Park
linux_bionic is the target which means the cross-compiled (i.e. arm on x86) host target. libusb is now configured to use linux/config.h for this new target because it is also considered as Linux. Previously, the header was used only for the linux_glibc target which means the native host. Bug: 159685774 Test: HOST_CROSS_OS=linux_bionic m libusb Change-Id: I6ad6e58e6c78fc59b958f1430797a19385e7ce41
2020-03-18Track upstream changes.Josh Gao
Test: mma Change-Id: I21a2864f87c91b70510a5bff129a6d30d5b78e09
2018-06-25Disable warnings for WindowsPirama Arumuga Nainar
Bug: http://b/69933068 Disable -Wunused-parameter and -Wunused-function, which is emitted when using Clang to build Windows host modules. Test: m native-host-cross with clang Change-Id: I5d0921b960ed61449b62730bd9c73c51fc6b7332
2018-01-08Mark libusb as vendor_available.Steven Moreland
Allow vendor code to use the libusb library. Bug: 71707530 Test: BOARD_VNDK_VERSION=current builds succeed if a vendor module depends on this. Change-Id: I446ac6f5d5f43ad25de464cae4ee06ac30b5ba56
2017-12-08Compile libusb for windows.Josh Gao
Disable the usbdk backend, since all we care about is WinUSB. Bug: http://b/68993980 Test: mma Change-Id: If4ab45bbb6de1851c35a464d28a0e4fa6a36aa19
2017-11-21Suppress unused parameter and deprecated declaration warnings on Darwin.Stephen Hines
Bug: http://b/66996870 Test: Builds on darwin. Change-Id: I888903a5507b870523409fec45397cdb269669b4
2017-10-16Use target.linux for all linux kernel based targetsDan Willemsen
Now in Android.bp files, target.linux applies to all targets running a linux kernel (android, linux_glibc, linux_bionic). So common flags/sources/etc can be combined instead of copying them to each target. Test: m Change-Id: If914367757f3d091f74e9dc11034b8a1180aa113
2017-10-11Use -Werror in external/libusbChih-Hung Hsieh
* Keep sign-compare and swtich warnings, to be fixed later * Has not fixed all warnings for darwin target yet. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ie75372f2bd62cb69933fed8bffee5332b23af8a3
2017-10-11Merge "Revert "Use -Werror in external/libusb""Treehugger Robot
2017-10-11Revert "Use -Werror in external/libusb"Dan Willemsen
This reverts commit cac7beef27f73d7860d909aa4337a84c741032ba. Reason for revert: Broke the mac builds Bug: 66996870 Change-Id: Iecdfeb143cb7a03284d9e41647af3c53f679d69f
2017-10-10Merge "Use -Werror in external/libusb"Treehugger Robot
2017-10-02Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]Dan Willemsen
In the future, target.linux will apply to all targets running a linux kernel (android, linux_glibc, linux_bionic). So move all current users to the specific linux_glibc. There will be another cleanup pass later that will move some instances back to target.linux if the properties should be shared with target.android and target.linux_bionic, but target.linux needs to be removed first. Test: out/soong/build.ninja identical before/after Change-Id: I1a834354669dd32808f054ebccccff1c8d880bdb Exempt-From-Owner-Approval: build system cleanup
2017-09-28Remove default librariesDan Willemsen
libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Change-Id: Icb669676c71ef81f2f61bf77cd0391a8e382442e Exempt-From-Owner-Approval: build system cleanup
2017-09-28Use -Werror in external/libusbChih-Hung Hsieh
* Keep sign-compare and swtich warnings, to be fixed later Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I820cf90233806cf69e300dbfe1777956af0cb902
2016-10-21Add missing host ldlibsColin Cross
Host builds were compiling without -Wl,--no-undefined. Add missing host ldlibs so that -Wl,--no-undefined can be added again. Test: m -j host Bug: 32305815 Change-Id: I0b85494836bfe8ee8f660313ed8e205b27879048
2016-09-29Add support for building libusb.Josh Gao
Bug: http://b/31321337 Change-Id: Ic7747ac9726166a538ecd444f49c8c8dd2336e85