12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- CONFIG += c++11
- CONFIG -= qt
- CONFIG += staticlib
- TEMPLATE = lib
- QMAKE_CXXFLAGS += -Wstrict-aliasing=0 -Wall -Wextra -Wformat -Wconversion -Wuninitialized -Wno-unused-variable -Wno-unused-parameter -Wundef -Wwrite-strings -std=c++11 -pthread -fPIC -D_GNU_SOURCE -Wno-format-overflow -Wno-format-truncation
- QMAKE_CFLAGS += -Wstrict-aliasing=0 -Wall -Wextra -Wformat -Wconversion -Wuninitialized -Wno-unused-variable -Wno-unused-parameter -Wundef -Wwrite-strings -pthread -fPIC -D_GNU_SOURCE -Wno-format-overflow -Wno-format-truncation
- _LIB_PATH = $$[QT_SYSROOT]/usr/lib/gfa/svc/
- _INC_PATH = $$[QT_SYSROOT]/usr/include/gfa/svc/common/
- CONFIG(debug, debug|release) {
- QMAKE_CXXFLAGS -= -Os
- QMAKE_CFLAGS -= -Os
- QMAKE_CXXFLAGS += -D_DEBUG
- QMAKE_CFLAGS += -D_DEBUG
- TARGET = commond
- QMAKE_CLEAN += libcommond.a
- }
- CONFIG(release, debug|release) {
- QMAKE_CXXFLAGS += -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-result
- QMAKE_CFLAGS += -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-result
- TARGET = common
- QMAKE_CLEAN += libcommon.a
- }
- linux-buildroot-g++ {
- QMAKE_CXXFLAGS += -D_TARGET_BUILD
- QMAKE_CFLAGS += -D_TARGET_BUILD
- QMAKE_CXXFLAGS += -DSITARA_BUILD
- QMAKE_CFLAGS += -DSITARA_BUILD
- }
- HEADERS += \
- conv.h \
- debug.h \
- fileutil.h \
- instance.h \
- logfile.h \
- mysqlwrap.h \
- singleton.h \
- strutil.h \
- processclock.h \
- uuid.h
- SOURCES += \
- instance.cpp \
- logfile.cpp \
- mysqlwrap.cpp \
- strutil.cpp \
- processclock.cpp \
- conv.c \
- fileutil.c \
- singleton.c \
- uuid.c
- includes.path = $$_INC_PATH
- includes.extra += -$(INSTALL_FILE) $$PWD/conv.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/debug.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/fileutil.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/instance.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/logfile.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/mysqlwrap.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/singleton.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/strutil.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/processclock.h $(INSTALL_ROOT)$$includes.path
- includes.extra += $$escape_expand(\\n\\t)-$(INSTALL_FILE) $$PWD/uuid.h $(INSTALL_ROOT)$$includes.path
- includes.uninstall += -$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/conv.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/debug.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/fileutil.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/instance.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/logfile.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/mysqlwrap.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/singleton.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/strutil.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/processclock.h
- includes.uninstall += $$escape_expand(\\n\\t)-$(DEL_FILE) $(INSTALL_ROOT)$$includes.path/uuid.h
- INSTALLS += includes
- library.path = $$_LIB_PATH
- library.extra += -$(INSTALL_FILE) $(TARGET) $(INSTALL_ROOT)$$library.path/$(TARGET)
- library.uninstall += -$(DEL_FILE) $(INSTALL_ROOT)$$library.path/$(TARGET)
- INSTALLS += library
|