Browse Source

use project root in commands and requirements

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/30/head
R4SAS 4 years ago
parent
commit
23d3eef1ca
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 20
      i2pd_qt.pro

20
i2pd_qt.pro

@ -90,28 +90,28 @@ FORMS += \
src/generalsettingswidget.ui \ src/generalsettingswidget.ui \
src/AboutDialog.ui src/AboutDialog.ui
LIBS += src/i2pd/libi2pd.a src/i2pd/libi2pdclient.a -lz LIBS += $$PWD/src/i2pd/libi2pd.a $$PWD/src/i2pd/libi2pdclient.a -lz
libi2pd.commands = @echo Building i2pd libraries libi2pd.commands = @echo Building i2pd libraries
libi2pd.target = src/i2pd/libi2pd.a libi2pd.target = $$PWD/src/i2pd/libi2pd.a
libi2pd.depends = i2pd FORCE libi2pd.depends = i2pd FORCE
i2pd.commands = cd src/i2pd/ && mkdir -p obj/libi2pd obj/libi2pd_client && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) USE_UPNP=yes $$I2PDMAKE mk_obj_dir api_client i2pd.commands = cd $$PWD/src/i2pd/ && mkdir -p obj/libi2pd obj/libi2pd_client && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) USE_UPNP=yes $$I2PDMAKE mk_obj_dir api_client
i2pd.target += src/i2pd/libi2pdclient.a i2pd.target += $$PWD/src/i2pd/libi2pdclient.a
i2pd.depends = FORCE i2pd.depends = FORCE
cleani2pd.commands = cd src/i2pd/ && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) clean cleani2pd.commands = cd $$PWD/src/i2pd/ && CC=$$QMAKE_CC CXX=$$QMAKE_CXX $(MAKE) clean
#cleani2pd.depends = clean #cleani2pd.depends = clean
PRE_TARGETDEPS += src/i2pd/libi2pd.a src/i2pd/libi2pdclient.a PRE_TARGETDEPS += $$PWD/src/i2pd/libi2pd.a $$PWD/src/i2pd/libi2pdclient.a
QMAKE_EXTRA_TARGETS += cleani2pd i2pd libi2pd QMAKE_EXTRA_TARGETS += cleani2pd i2pd libi2pd
CLEAN_DEPS += cleani2pd CLEAN_DEPS += cleani2pd
BuildDateTimeQtTarget.target = src/BuildDateTimeQt.h BuildDateTimeQtTarget.target = $$PWD/src/BuildDateTimeQt.h
BuildDateTimeQtTarget.depends = FORCE BuildDateTimeQtTarget.depends = FORCE
# 'touch' is unix-only; will probably break on non-unix, TBD # 'touch' is unix-only; will probably break on non-unix, TBD
BuildDateTimeQtTarget.commands = touch src/BuildDateTimeQt.h BuildDateTimeQtTarget.commands = touch $$PWD/src/BuildDateTimeQt.h
PRE_TARGETDEPS += src/BuildDateTimeQt.h PRE_TARGETDEPS += $$PWD/src/BuildDateTimeQt.h
QMAKE_EXTRA_TARGETS += BuildDateTimeQtTarget QMAKE_EXTRA_TARGETS += BuildDateTimeQtTarget
# git only, port to other VCS, too. TBD # git only, port to other VCS, too. TBD
@ -156,7 +156,7 @@ windows {
QMAKE_LFLAGS_RELEASE += -s QMAKE_LFLAGS_RELEASE += -s
LIBS = \ LIBS = \
src/i2pd/libi2pd.a src/i2pd/libi2pdclient.a \ $$PWD/src/i2pd/libi2pd.a $$PWD/src/i2pd/libi2pdclient.a \
-lminiupnpc \ -lminiupnpc \
-lboost_system$$BOOST_SUFFIX \ -lboost_system$$BOOST_SUFFIX \
-lboost_date_time$$BOOST_SUFFIX \ -lboost_date_time$$BOOST_SUFFIX \

Loading…
Cancel
Save