2015-04-22 18:36:40 +02:00
|
|
|
projectname = c++utilities
|
2015-06-24 00:44:16 +02:00
|
|
|
VERSION = 1.0.6
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
# include ../../common.pri when building as part of a subdirs project; otherwise include general.pri
|
|
|
|
!include(../../common.pri) {
|
|
|
|
!include(./general.pri) {
|
|
|
|
error("Couldn't find the common.pri or the general.pri file!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CONFIG -= qt
|
|
|
|
win32 {
|
|
|
|
CONFIG += dll
|
|
|
|
}
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
application/argumentparser.cpp \
|
|
|
|
application/failure.cpp \
|
|
|
|
io/binarywriter.cpp \
|
|
|
|
io/binaryreader.cpp \
|
|
|
|
io/path.cpp \
|
|
|
|
conversion/stringconversion.cpp \
|
|
|
|
conversion/conversionexception.cpp \
|
|
|
|
chrono/timespan.cpp \
|
|
|
|
chrono/datetime.cpp \
|
|
|
|
chrono/period.cpp \
|
|
|
|
math/math.cpp \
|
|
|
|
application/fakeqtconfigarguments.cpp \
|
|
|
|
io/ansiescapecodes.cpp \
|
2015-06-08 22:09:17 +02:00
|
|
|
misc/random.cpp \
|
2015-06-24 00:44:16 +02:00
|
|
|
io/bitreader.cpp \
|
2015-07-07 00:50:49 +02:00
|
|
|
application/commandlineutils.cpp \
|
|
|
|
io/inifile.cpp
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
application/global.h \
|
|
|
|
application/argumentparser.h \
|
|
|
|
application/failure.h \
|
|
|
|
io/binarywriter.h \
|
|
|
|
io/binaryreader.h \
|
|
|
|
io/path.h \
|
|
|
|
conversion/types.h \
|
|
|
|
conversion/widen.h \
|
|
|
|
conversion/binaryconversion.h \
|
|
|
|
conversion/stringconversion.h \
|
|
|
|
conversion/conversionexception.h \
|
|
|
|
chrono/timespan.h \
|
|
|
|
chrono/datetime.h \
|
|
|
|
chrono/period.h \
|
|
|
|
math/math.h \
|
|
|
|
io/copy.h \
|
|
|
|
conversion/binaryconversionprivate.h \
|
|
|
|
application/fakeqtconfigarguments.h \
|
|
|
|
io/ansiescapecodes.h \
|
|
|
|
misc/memory.h \
|
2015-06-08 22:09:17 +02:00
|
|
|
misc/random.h \
|
2015-06-24 00:44:16 +02:00
|
|
|
io/bitreader.h \
|
2015-07-07 00:50:49 +02:00
|
|
|
application/commandlineutils.h \
|
|
|
|
io/inifile.h
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
OTHER_FILES += \
|
2015-06-08 22:09:17 +02:00
|
|
|
README.md \
|
2015-06-26 02:30:22 +02:00
|
|
|
LICENSE
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
# installs
|
2015-07-18 01:10:18 +02:00
|
|
|
mingw-w64-install {
|
|
|
|
target.path = $$(INSTALL_ROOT)
|
|
|
|
target.extra = install -m755 -D $${OUT_PWD}/release/lib$(TARGET).a $$(INSTALL_ROOT)/lib/lib$(TARGET).a
|
|
|
|
INSTALLS += target
|
|
|
|
dlltarget.path = $$(INSTALL_ROOT)
|
|
|
|
dlltarget.extra = install -m755 -D $${OUT_PWD}/release/$(TARGET) $$(INSTALL_ROOT)/bin/$(TARGET)
|
|
|
|
INSTALLS += dlltarget
|
|
|
|
} else {
|
|
|
|
target.path = $$(INSTALL_ROOT)/lib
|
|
|
|
INSTALLS += target
|
|
|
|
}
|
2015-04-22 18:36:40 +02:00
|
|
|
for(dir, $$list(application io conversion chrono math misc)) {
|
|
|
|
eval(inc_$${dir} = $${dir})
|
|
|
|
inc_$${dir}.path = $$(INSTALL_ROOT)/include/$$projectname/$${dir}
|
|
|
|
inc_$${dir}.files = $${dir}/*.h
|
|
|
|
INSTALLS += inc_$${dir}
|
|
|
|
}
|