mirror of https://github.com/odrling/Aegisub
Add support for gtest 1.6
1.6.0 removed support for 'make install' as the maintainers are apparently unaware that their library is not actually a unique snowflake and that having to use identical compilation settings for every library is in fact a completely normal thing for C++ libraries that people somehow manage to deal with. Building the tests now requires passing the root directory of a copy of the googletest source to make, via 'make GTEST_ROOT=~/path/to/gtest'.
This commit is contained in:
parent
4853119153
commit
9c37a50b4d
|
@ -3,10 +3,10 @@ include ../Makefile.inc
|
|||
|
||||
PROGRAM = run
|
||||
|
||||
LIBS += -L../libaegisub -laegisub -lgtest -L../universalchardet -luniversalchardet
|
||||
LIBS += -L../libaegisub -laegisub -L../universalchardet -luniversalchardet
|
||||
LDFLAGS += -Wl,-rpath $(CURDIR)/../libaegisub $(LDFLAGS_ICONV)
|
||||
|
||||
CPPFLAGS += -I../src/include -I../libaegisub/include $(CFLAGS_ICONV)
|
||||
CPPFLAGS += -I../src/include -I../libaegisub/include $(CFLAGS_ICONV) -I${GTEST_ROOT} -I${GTEST_ROOT}/include
|
||||
CXXFLAGS += -Wno-unused-value
|
||||
|
||||
ifeq (yes, $(BUILD_DARWIN))
|
||||
|
@ -32,7 +32,8 @@ SRC = \
|
|||
libaegisub_thesaurus.cpp \
|
||||
libaegisub_util.cpp \
|
||||
libaegisub_vfr.cpp \
|
||||
libaegisub_word_split.cpp
|
||||
libaegisub_word_split.cpp \
|
||||
${GTEST_ROOT}/src/gtest-all.cc
|
||||
|
||||
HEADER = \
|
||||
*.h
|
||||
|
|
Loading…
Reference in New Issue