Skip to content

Add ENABLE_LIBUSB option#1886

Merged
Exzap merged 7 commits into
cemu-project:mainfrom
emiyl:libusb-option
Apr 26, 2026
Merged

Add ENABLE_LIBUSB option#1886
Exzap merged 7 commits into
cemu-project:mainfrom
emiyl:libusb-option

Conversation

@emiyl

@emiyl emiyl commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Adds an option to build with libusb or not. Useful for building for platforms that don't support libusb such as iOS.

Comment thread CMakeLists.txt Outdated
option(ENABLE_LIBUSB "Build with libusb support" ON)

if (ENABLE_LIBUSB)
add_compile_definitions(HAS_LIBUSB=1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match the newer convention can you change this to:

if (ENABLE_LIBUSB)
	add_compile_definitions(HAS_LIBUSB)
endif()

With the check being #if defined(HAS_LIBUSB)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫡

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all done

@emiyl

emiyl commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author

okay should be all ready now

@Exzap Exzap merged commit 1c2b7d7 into cemu-project:main Apr 26, 2026
8 checks passed
p33k-a-b00 pushed a commit to p33k-a-b00/Cemu that referenced this pull request Apr 29, 2026
@emiyl emiyl deleted the libusb-option branch May 12, 2026 15:28
emiyl added a commit to emiyl/Cemu that referenced this pull request May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants