mirror of https://github.com/KLayout/klayout.git
WIP: fixed installation part for pykl module, robustness of build system.
This commit is contained in:
parent
a20c3259bf
commit
17846d12dd
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
|
DESTDIR = $$OUT_PWD
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = fontgen
|
TARGET = fontgen
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,6 @@ equals(HAVE_QTBINDINGS, "1") {
|
||||||
QMAKE_POST_LINK += && $(COPY) $$INIT_PY $$DESTDIR/../pykl/__init__.py
|
QMAKE_POST_LINK += && $(COPY) $$INIT_PY $$DESTDIR/../pykl/__init__.py
|
||||||
|
|
||||||
# INSTALLS needs to be inside a lib or app templates.
|
# INSTALLS needs to be inside a lib or app templates.
|
||||||
init_target.path = $$PREFIX/pykl/__init__.py
|
init_target.path = $$PREFIX/pykl
|
||||||
init_target.files += $$INIT_PY
|
init_target.files += $$DESTDIR/../pykl/__init__.py
|
||||||
INSTALLS += init_target
|
INSTALLS += init_target
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,17 @@ win32 {
|
||||||
# because the library is called xyx0.dll.
|
# because the library is called xyx0.dll.
|
||||||
CONFIG += skip_target_version_ext
|
CONFIG += skip_target_version_ext
|
||||||
|
|
||||||
|
lib_target.path = $$PREFIX/pykl
|
||||||
|
lib_target.files += $$DESTDIR_PYMOD/$${TARGET}.dll
|
||||||
|
INSTALLS = lib_target
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
QMAKE_POST_LINK += $(MKDIR) $$DESTDIR_PYMOD && $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_PYMOD/$${TARGET}.so
|
QMAKE_POST_LINK += $(MKDIR) $$DESTDIR_PYMOD && $(COPY) $(DESTDIR)$(TARGET) $$DESTDIR_PYMOD/$${TARGET}.so
|
||||||
|
|
||||||
|
lib_target.path = $$PREFIX/pykl
|
||||||
|
lib_target.files += $$DESTDIR_PYMOD/$${TARGET}.so
|
||||||
|
INSTALLS = lib_target
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue