From fc28d35e28394a598a2e38e2cef972ec3086e57f Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Wed, 27 May 2015 00:11:18 +0300 Subject: [PATCH] Added .pro file to compile linebreak --- common.pri | 8 ++++++++ linebreak/include/linebreak.h | 1 + linebreak/linebreak.pro | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 common.pri create mode 120000 linebreak/include/linebreak.h create mode 100644 linebreak/linebreak.pro diff --git a/common.pri b/common.pri new file mode 100644 index 0000000..e6605bc --- /dev/null +++ b/common.pri @@ -0,0 +1,8 @@ +WARNINGS = -Wall -Wno-unused-parameter -Wno-deprecated-declarations +QMAKE_CXXFLAGS += $$WARNINGS -Wno-psabi +QMAKE_CFLAGS += $$WARNINGS + +CONFIG(debug, debug|release) { + QMAKE_CXXFLAGS_DEBUG *= -O0 + QMAKE_CFLAGS_DEBUG *= -O0 +} diff --git a/linebreak/include/linebreak.h b/linebreak/include/linebreak.h new file mode 120000 index 0000000..faa2463 --- /dev/null +++ b/linebreak/include/linebreak.h @@ -0,0 +1 @@ +../linebreak/linebreak.h \ No newline at end of file diff --git a/linebreak/linebreak.pro b/linebreak/linebreak.pro new file mode 100644 index 0000000..8d7882d --- /dev/null +++ b/linebreak/linebreak.pro @@ -0,0 +1,19 @@ +TEMPLATE = lib +TARGET = linebreak +CONFIG += staticlib + +!include(../common.pri) + +SRC_DIR = linebreak + +SOURCES += \ + $$SRC_DIR/linebreak.c \ + $$SRC_DIR/linebreakdata.c \ + $$SRC_DIR/linebreakdef.c \ + $$SRC_DIR/wordbreak.c + +HEADERS += \ + $$SRC_DIR/linebreakdef.h \ + $$SRC_DIR/linebreak.h \ + $$SRC_DIR/wordbreakdef.h \ + $$SRC_DIR/wordbreak.h