diff --git a/BUILD.gn b/BUILD.gn index 59e34a43c8a45694b69e3203a96c99a4d3548795..73be78a03afc64fba314c85df154e9f18efcba3d 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -117,17 +117,12 @@ foreach(name, sanei_names) { } ohos_source_set("sanei_usb") { - sources = [ - "./sanei/sanei_usb.c", - "./sanei/usb_manager.cpp", - ] + sources = [ "./sanei/sanei_usb.c" ] external_deps = [ - "bounds_checking_function:libsec_shared", - "c_utils:utils", "hilog:libhilog", + "libusb:libusb", "libxml2:libxml2", - "usb_manager:usbsrv_client", ] public_configs = [ ":backends_public_config" ] diff --git a/bundle.json b/bundle.json index dd10fea32d5350f0bbdc9932151ee8c9b678f391..e301f0f2cb8199b7205f7f04c4927c28d8d85dc4 100644 --- a/bundle.json +++ b/bundle.json @@ -14,7 +14,7 @@ "subsystem": "thirdparty", "syscap": [], "features": [], - "adapted_system_type": [], + "adapted_system_type": "standard", "rom": "10KB", "ram": "10KB", "deps": { @@ -23,7 +23,8 @@ "usb_manager", "bounds_checking_function", "c_utils", - "libxml2" + "libxml2", + "libusb" ] }, "build": { diff --git a/include/sane/config.h b/include/sane/config.h index 24394a763710de2013d272ad437555e4211842e9..c99202bba2e900ce40ac4dac80f38013a581ec7a 100644 --- a/include/sane/config.h +++ b/include/sane/config.h @@ -207,10 +207,10 @@ #define HAVE_LIBSNMP 0 /* Define to 1 if you have libusb-1.0 */ -// #define HAVE_LIBUSB 1 +#define HAVE_LIBUSB 1 /* Define to 1 if you have usb_manager */ -#define HAVE_USB_MANAGER 1 +// #define HAVE_USB_MANAGER 1 /* Define to 1 if you have libusb-0.1 */ /* #undef HAVE_LIBUSB_LEGACY */