123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- TEMPLATE = lib
- VERSION = 1.2
- CONFIG -= qt app_bundle
- CONFIG += c++11 shared thread
- ####################################################################################
- SOURCES += \
- src/appctrl.cpp \
- src/ipcshm.cpp \
- src/locmtx.cpp \
- src/mutex.cpp \
- src/procmem.cpp \
- src/sema.cpp \
- src/shm.cpp \
- src/shmrot.cpp \
- src/uuid.c
- HEADERS += \
- src/appctrl.h \
- src/defines.h \
- src/gfaipc.h \
- src/mutex.h \
- src/procmem.h \
- src/sema.h \
- src/shm.h \
- src/shmrot.h \
- src/uuid.h
- ####################################################################################
- GFA_LIB_PATH = /usr/lib/gfa
- GFA_INC_PATH = /usr/include/gfa
- QMAKE_RPATHLINKDIR += $$GFA_LIB_PATH
- QMAKE_DEL_DIR = rmdir --ignore-fail-on-non-empty
- QMAKE_LN_SHLIB = :
- ####################################################################################
- CONFIG(debug, debug|release) {
- QMAKE_CXXFLAGS -= -Os
- QMAKE_CFLAGS -= -Os
- QMAKE_CXXFLAGS += -D_DEBUG
- QMAKE_CFLAGS += -D_DEBUG
- TARGET = $$join(TARGET,,,d)
- }
- ####################################################################################
- target.path = $$GFA_LIB_PATH
- INSTALLS += target
- ####################################################################################
- linux-g++ {
- includes.path = $$GFA_INC_PATH
- includes.extra += -$(INSTALL_FILE) $$PWD/src/gfaipc.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/mutex.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/sema.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/shm.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/procmem.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/uuid.h $(INSTALL_ROOT)$$includes.path
- includes.uninstall += -$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/gfaipc.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/mutex.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/sema.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/shm.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/procmem.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/uuid.h
- INSTALLS += includes
- }
- ####################################################################################
- linux-buildroot-g++ {
- exists($$[QT_SYSROOT]) {
- library.path = $$[QT_SYSROOT]$$target.path
- library.extra += -$(INSTALL_PROGRAM) $(TARGET) $(INSTALL_ROOT)$$library.path/$(TARGET)
- library.extra += $$escape_expand(\\n\\t)-$(SYMLINK) $(TARGET) $(INSTALL_ROOT)$$library.path/$(TARGET0)
- library.extra += $$escape_expand(\\n\\t)-$(SYMLINK) $(TARGET) $(INSTALL_ROOT)$$library.path/$(TARGET1)
- library.extra += $$escape_expand(\\n\\t)-$(SYMLINK) $(TARGET) $(INSTALL_ROOT)$$library.path/$(TARGET2)
- library.uninstall += -$(DEL_FILE) $(INSTALL_ROOT)$$library.path/$(TARGET)
- library.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$library.path/$(TARGET0)
- library.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$library.path/$(TARGET1)
- library.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$library.path/$(TARGET2)
- INSTALLS += library
- includes.path = $$[QT_SYSROOT]$$GFA_INC_PATH
- includes.extra += -$(INSTALL_FILE) $$PWD/src/gfaipc.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/mutex.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/sema.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/shm.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/procmem.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/src/uuid.h $(INSTALL_ROOT)$$includes.path
- includes.uninstall += -$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/gfaipc.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/mutex.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/sema.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/shm.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/procmem.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/uuid.h
- INSTALLS += includes
- itoolchain.target = install_toolchain
- itoolchain.depends = install_library install_includes
- QMAKE_EXTRA_TARGETS += itoolchain
- utoolchain.target = uninstall_toolchain
- utoolchain.depends = uninstall_library uninstall_includes
- QMAKE_EXTRA_TARGETS += utoolchain
- }
- }
- ####################################################################################
- deploylib.target = deploylib
- deploylib.commands = @echo TARGET="$(TARGET)" > deploytargets
- deploylib.commands += $$escape_expand(\\n\\t)@echo TARGET0="$(TARGET0)" >> deploytargets
- deploylib.commands += $$escape_expand(\\n\\t)@echo TARGET1="$(TARGET1)" >> deploytargets
- deploylib.commands += $$escape_expand(\\n\\t)@echo TARGET2="$(TARGET2)" >> deploytargets
- PRE_TARGETDEPS += deploylib
- QMAKE_EXTRA_TARGETS += deploylib
|