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