From 4cf93f8bb06a8bcb60136febedbfc78ec88f2ff8 Mon Sep 17 00:00:00 2001 From: "Florian RICHER (MrDev023)" Date: Mon, 3 Jun 2019 17:27:56 +0200 Subject: [PATCH] Refactoring to Unity Package --- Assets/PortMidiDemos.asmdef | 19 +++++++++++++++ Assets/PortMidiDemos.asmdef.meta | 7 ++++++ Packages/fr.mrdev023.portmidi/PortMidi.meta | 8 +++++++ .../PortMidi}/Plugins.meta | 2 +- .../PortMidi}/Plugins/Linux.meta | 0 .../PortMidi}/Plugins/Linux/libportmidi.so | Bin .../Plugins/Linux/libportmidi.so.meta | 0 .../PortMidi}/Plugins/Mac.bundle.meta | 0 .../Plugins/Mac.bundle/Contents.meta | 0 .../Plugins/Mac.bundle/Contents/MacOS.meta | 0 .../Contents/MacOS/libportmidi.dylib | Bin .../Contents/MacOS/libportmidi.dylib.meta | 0 .../PortMidi}/Plugins/Mac.bundle/Info.plist | 0 .../Plugins/Mac.bundle/Info.plist.meta | 0 .../PortMidi}/Plugins/Windows.meta | 0 .../PortMidi}/Plugins/Windows/portmidi.dll | Bin .../Plugins/Windows/portmidi.dll.meta | 0 .../PortMidi/PortMidi.asmdef | 17 ++++++++++++++ .../PortMidi/PortMidi.asmdef.meta | 7 ++++++ .../PortMidi}/Scripts.meta | 2 +- .../PortMidi}/Scripts/NativeMethods.cs | 0 .../PortMidi}/Scripts/NativeMethods.cs.meta | 0 .../PortMidi}/Scripts/PortMidiConst.cs | 0 .../PortMidi}/Scripts/PortMidiConst.cs.meta | 0 .../PortMidi}/Scripts/PortMidiEnum.cs | 0 .../PortMidi}/Scripts/PortMidiEnum.cs.meta | 0 .../PortMidi}/Scripts/PortMidiStruct.cs | 0 .../PortMidi}/Scripts/PortMidiStruct.cs.meta | 0 Packages/fr.mrdev023.portmidi/package.json | 22 ++++++++++++++++++ .../fr.mrdev023.portmidi/package.json.meta | 7 ++++++ 30 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 Assets/PortMidiDemos.asmdef create mode 100644 Assets/PortMidiDemos.asmdef.meta create mode 100644 Packages/fr.mrdev023.portmidi/PortMidi.meta rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins.meta (77%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Linux.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Linux/libportmidi.so (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Linux/libportmidi.so.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Contents.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Contents/MacOS.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Info.plist (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Mac.bundle/Info.plist.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Windows.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Windows/portmidi.dll (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Plugins/Windows/portmidi.dll.meta (100%) create mode 100644 Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef create mode 100644 Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef.meta rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts.meta (77%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/NativeMethods.cs (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/NativeMethods.cs.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiConst.cs (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiConst.cs.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiEnum.cs (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiEnum.cs.meta (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiStruct.cs (100%) rename {Assets => Packages/fr.mrdev023.portmidi/PortMidi}/Scripts/PortMidiStruct.cs.meta (100%) create mode 100644 Packages/fr.mrdev023.portmidi/package.json create mode 100644 Packages/fr.mrdev023.portmidi/package.json.meta diff --git a/Assets/PortMidiDemos.asmdef b/Assets/PortMidiDemos.asmdef new file mode 100644 index 0000000..45c2fe2 --- /dev/null +++ b/Assets/PortMidiDemos.asmdef @@ -0,0 +1,19 @@ +{ + "name": "PortMidiDemos", + "references": [ + "PortMidi" + ], + "includePlatforms": [ + "Editor", + "LinuxStandalone64", + "macOSStandalone", + "WindowsStandalone64" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [] +} \ No newline at end of file diff --git a/Assets/PortMidiDemos.asmdef.meta b/Assets/PortMidiDemos.asmdef.meta new file mode 100644 index 0000000..f4b2f13 --- /dev/null +++ b/Assets/PortMidiDemos.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7d6b8ad7d3a9cdc4d9349f9e4420bded +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/fr.mrdev023.portmidi/PortMidi.meta b/Packages/fr.mrdev023.portmidi/PortMidi.meta new file mode 100644 index 0000000..fb1515c --- /dev/null +++ b/Packages/fr.mrdev023.portmidi/PortMidi.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8cdded048e612ce4f9d3040a1d2ffcc0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Plugins.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins.meta similarity index 77% rename from Assets/Plugins.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins.meta index 91bef1c..cd5696b 100644 --- a/Assets/Plugins.meta +++ b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 28ce6a0332a799d49876506c0ac1c283 +guid: f50820b559e26334f9283556b1a4ac2e folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Plugins/Linux.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux.meta similarity index 100% rename from Assets/Plugins/Linux.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux.meta diff --git a/Assets/Plugins/Linux/libportmidi.so b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux/libportmidi.so similarity index 100% rename from Assets/Plugins/Linux/libportmidi.so rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux/libportmidi.so diff --git a/Assets/Plugins/Linux/libportmidi.so.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux/libportmidi.so.meta similarity index 100% rename from Assets/Plugins/Linux/libportmidi.so.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Linux/libportmidi.so.meta diff --git a/Assets/Plugins/Mac.bundle.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle.meta similarity index 100% rename from Assets/Plugins/Mac.bundle.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle.meta diff --git a/Assets/Plugins/Mac.bundle/Contents.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents.meta similarity index 100% rename from Assets/Plugins/Mac.bundle/Contents.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents.meta diff --git a/Assets/Plugins/Mac.bundle/Contents/MacOS.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS.meta similarity index 100% rename from Assets/Plugins/Mac.bundle/Contents/MacOS.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS.meta diff --git a/Assets/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib similarity index 100% rename from Assets/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib diff --git a/Assets/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib.meta similarity index 100% rename from Assets/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Contents/MacOS/libportmidi.dylib.meta diff --git a/Assets/Plugins/Mac.bundle/Info.plist b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Info.plist similarity index 100% rename from Assets/Plugins/Mac.bundle/Info.plist rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Info.plist diff --git a/Assets/Plugins/Mac.bundle/Info.plist.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Info.plist.meta similarity index 100% rename from Assets/Plugins/Mac.bundle/Info.plist.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Mac.bundle/Info.plist.meta diff --git a/Assets/Plugins/Windows.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows.meta similarity index 100% rename from Assets/Plugins/Windows.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows.meta diff --git a/Assets/Plugins/Windows/portmidi.dll b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows/portmidi.dll similarity index 100% rename from Assets/Plugins/Windows/portmidi.dll rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows/portmidi.dll diff --git a/Assets/Plugins/Windows/portmidi.dll.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows/portmidi.dll.meta similarity index 100% rename from Assets/Plugins/Windows/portmidi.dll.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Plugins/Windows/portmidi.dll.meta diff --git a/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef b/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef new file mode 100644 index 0000000..aa828f9 --- /dev/null +++ b/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef @@ -0,0 +1,17 @@ +{ + "name": "PortMidi", + "references": [], + "includePlatforms": [ + "Editor", + "LinuxStandalone64", + "macOSStandalone", + "WindowsStandalone64" + ], + "excludePlatforms": [], + "allowUnsafeCode": true, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [] +} \ No newline at end of file diff --git a/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef.meta b/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef.meta new file mode 100644 index 0000000..63c2e12 --- /dev/null +++ b/Packages/fr.mrdev023.portmidi/PortMidi/PortMidi.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8b814770768be93448b232f1b9e242a0 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts.meta similarity index 77% rename from Assets/Scripts.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts.meta index 6fbc2bb..a089f3f 100644 --- a/Assets/Scripts.meta +++ b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8e1af15aad36e56439bfb00f3ab8d9ba +guid: b06b707b56f81a6499af6ad69a8d2953 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Scripts/NativeMethods.cs b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/NativeMethods.cs similarity index 100% rename from Assets/Scripts/NativeMethods.cs rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/NativeMethods.cs diff --git a/Assets/Scripts/NativeMethods.cs.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/NativeMethods.cs.meta similarity index 100% rename from Assets/Scripts/NativeMethods.cs.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/NativeMethods.cs.meta diff --git a/Assets/Scripts/PortMidiConst.cs b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiConst.cs similarity index 100% rename from Assets/Scripts/PortMidiConst.cs rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiConst.cs diff --git a/Assets/Scripts/PortMidiConst.cs.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiConst.cs.meta similarity index 100% rename from Assets/Scripts/PortMidiConst.cs.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiConst.cs.meta diff --git a/Assets/Scripts/PortMidiEnum.cs b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiEnum.cs similarity index 100% rename from Assets/Scripts/PortMidiEnum.cs rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiEnum.cs diff --git a/Assets/Scripts/PortMidiEnum.cs.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiEnum.cs.meta similarity index 100% rename from Assets/Scripts/PortMidiEnum.cs.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiEnum.cs.meta diff --git a/Assets/Scripts/PortMidiStruct.cs b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiStruct.cs similarity index 100% rename from Assets/Scripts/PortMidiStruct.cs rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiStruct.cs diff --git a/Assets/Scripts/PortMidiStruct.cs.meta b/Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiStruct.cs.meta similarity index 100% rename from Assets/Scripts/PortMidiStruct.cs.meta rename to Packages/fr.mrdev023.portmidi/PortMidi/Scripts/PortMidiStruct.cs.meta diff --git a/Packages/fr.mrdev023.portmidi/package.json b/Packages/fr.mrdev023.portmidi/package.json new file mode 100644 index 0000000..c4f5924 --- /dev/null +++ b/Packages/fr.mrdev023.portmidi/package.json @@ -0,0 +1,22 @@ +{ + "name": "fr.mrdev023.portmidi", + "displayName": "Port Midi", + "version": "0.1.1-preview", + "unity": "2018.3", + "repository": { + "type": "git", + "url": "https://github.com/mrdev023/UNITY_PORTMIDI_WRAPPER.git", + "revision": "bdb556e64749c2dbd7218e31c080d48f3053388f" + }, + "description": "PortMidi wrapper for Unity 3D. Compatibility for Mac OSX (64 bits only), Linux (64 bits only) and Windows (64 bits only)", + "keywords": [ + "midi", + "portmidi", + "native", + "unity3d", + "64bits only", + "desktop only" + ], + "dependencies": { + } +} \ No newline at end of file diff --git a/Packages/fr.mrdev023.portmidi/package.json.meta b/Packages/fr.mrdev023.portmidi/package.json.meta new file mode 100644 index 0000000..fc8b32b --- /dev/null +++ b/Packages/fr.mrdev023.portmidi/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b9a8a64880d9fa444ae82f3273afbda5 +PackageManifestImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: