Skip to content

Commit

Permalink
create static lib if only depends on headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 15, 2015
1 parent 0cfecfb commit 1a0e648
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.tests/libass/libass.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CONFIG -= qt
CONFIG += console
include(../paths.pri)
CONFIG = staticlib

SOURCES += main.cpp

#LIBS += -lass
include(../paths.pri)

4 changes: 4 additions & 0 deletions config.tests/libass/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
extern "C" {
#include <ass/ass.h>
}

void test() {
ass_library_init();
}
2 changes: 1 addition & 1 deletion config.tests/paths.pri
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TEMPLATE = lib # can not create exe for some platforms (winrt, ios)
TEMPLATE = lib # can not create exe for some platforms (winrt, ios). If check header only, staticlib is fine
# not static lib because sometimes we need to check link flags
INCLUDEPATH += $$[QT_INSTALL_HEADERS]
LIBS += -L$$[QT_INSTALL_LIBS]
Expand Down

0 comments on commit 1a0e648

Please sign in to comment.