From 843511a05ca84a511840e740ca289dee50ec325b Mon Sep 17 00:00:00 2001
From: Oleksii Shevchuk
Date: Tue, 25 Apr 2017 16:24:28 +0300
Subject: [PATCH] Generate python import tabs for windows client
---
client/sources/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/client/sources/Makefile b/client/sources/Makefile
index 4a905b0c..aab1e0ed 100644
--- a/client/sources/Makefile
+++ b/client/sources/Makefile
@@ -59,6 +59,11 @@ revision.h:
pupy.c: resources_library_compressed_string_txt.c revision.h
pupy_load.c: resources_msvcr90_dll.c resources_python27_dll.c resources_bootloader_pyc.c revision.h
+import-tab.c import-tab.h: mktab.py
+ $(HOST_PYTHON) $(PFLAGS) $<
+
+Python-dynload.obj: import-tab.c import-tab.h
+
resources/library_compressed_string.txt: ../gen_library_compressed_string.py resources/library.zip $(BUILDENV_READY)
$(HOST_PYTHON) ../gen_library_compressed_string.py
@@ -117,6 +122,8 @@ clean:
rm -f *_pyc.c
rm -f *_dll.c
rm -f revision.h
+ rm -f import-tab.c
+ rm -f import-tab.h
rm -f resources/*.pyo
rm -f resources/*.pyc
rm -f resources/*.txt
@@ -125,3 +132,5 @@ clean:
rm -f resources/python27.dll
rm -f resources/msvcr90.dll
rm -f $(PYOBJS) $(COMMON_OBJS)
+
+$(COMMON_OBJS) $(PYOBJS): import-tab.h