-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[portmidi] Add non-Windows support, refactory install process #19710
Conversation
LIBRARY DESTINATION lib | ||
ARCHIVE DESTINATION lib) | ||
+ if (JAVA_SUPPORT) | ||
+ INSTALL(TARGETS pmjni |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This target pmjni
requires java executable on local machine, so I disabled it.
In source/portmidi/trunk/pm_java/CMakeLists.txt:
add_custom_command(OUTPUT pmdefaults/PmDefaultsFrame.class
COMMAND javac -classpath . pmdefaults/PmDefaultsFrame.java
MAIN_DEPENDENCY pmdefaults/PmDefaultsFrame.java
DEPENDS pmdefaults/PmDefaults.java
WORKING_DIRECTORY .)
add_custom_command(OUTPUT pmdefaults/PmDefaults.class
COMMAND javac -classpath . pmdefaults/PmDefaults.java
MAIN_DEPENDENCY pmdefaults/PmDefaults.java
DEPENDS pmdefaults/PmDefaultsFrame.java
WORKING_DIRECTORY .)
Nice work, would be great to get this in. Is #19366 redundant due to this PR? |
# Conflicts: # ports/portmidi/portfile.cmake # ports/portmidi/vcpkg.json # versions/p-/portmidi.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DLL change seems incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 2d8e2a8a475895577517392d74f1b7b1ecfc832d -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/p-/portmidi.json b/versions/p-/portmidi.json
index 479e178..1205e03 100644
--- a/versions/p-/portmidi.json
+++ b/versions/p-/portmidi.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "6b1a65f29feed5c59672bf0772f2a29edc7e2d02",
+ "git-tree": "70a85d5a9ddc162df4c7296caf7ac8633089d50c",
"version-string": "0.234",
"port-version": 2
},
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Thanks for your fix! |
This PR will:
USE_DLL
to the target (the upstream leave it in the header but didn't use it).Fixes #19694.