From c8a96e9b3ca3c3651251c1dba72671e107051656 Mon Sep 17 00:00:00 2001
From: jesus2099 <jesus2099@users.noreply.github.com>
Date: Mon, 1 Mar 2021 16:21:39 +0100
Subject: [PATCH] Windows 64 bit (libdiscid) discid.dll

Fixes #73
---
 pkg/Makefile | 15 ++++++++++++++-
 setup.py     |  1 +
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/pkg/Makefile b/pkg/Makefile
index e81167e..4aa98bb 100644
--- a/pkg/Makefile
+++ b/pkg/Makefile
@@ -11,8 +11,9 @@ scripts := isrcsubmit.py $(current).py
 #scripts := $(current).py
 tar := $(current)
 win32 := $(current)-win32
+win64 := $(current)-win64
 mac := $(current)-mac
-all := $(scripts) $(tar).tar.gz $(win32).zip $(mac).zip
+all := $(scripts) $(tar).tar.gz $(win32).zip $(win64).zip $(mac).zip
 
 source_repo := ..
 source_branch := master
@@ -84,6 +85,18 @@ $(win32).zip: $(source_ref) $(base_libs) $(libdiscid)-win32.zip mediatools
 	rm -rf $(libdiscid)-win32
 	rm -rf $(win32)
 
+win64: $(win64).zip
+$(win64).zip: $(source_ref) $(base_libs) $(libdiscid)-win64.zip mediatools
+	$(call cp_source, $(win64))
+	$(call cp_base_libs, $(win64))
+	unzip $(libdiscid)-win64.zip
+	cp -a $(libdiscid)-win64/discid.dll $(win64)/
+	cp -ar mediatools $(win64)/
+	cp -a mediatools.exe $(win64)/
+	zip -qr $@ $(win64)
+	rm -rf $(libdiscid)-win64
+	rm -rf $(win64)
+
 mac: $(mac).zip
 $(mac).zip: $(source_ref) $(base_libs) $(libdiscid)-mac.zip
 	$(call cp_source, $(mac))
diff --git a/setup.py b/setup.py
index a313b80..0f63ed5 100755
--- a/setup.py
+++ b/setup.py
@@ -109,6 +109,7 @@ def run(self):
             "Environment :: Console",
             "Environment :: MacOS X",
             "Environment :: Win32 (MS Windows)",
+            "Environment :: Win64 (MS Windows)",
             "Intended Audience :: End Users/Desktop",
             "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
             "Operating System :: OS Independent",