1e0f08c0ed
Use boost::filesystem::path for all paths, and std::string for all other strings, converting to/from wxString as close to the actual uses of wx as possible. Where possible, replace the uses of non-UI wxWidgets functionality with the additions to the standard library in C++11, or the equivalents in boost. Move the path token management logic to libaegisub (and rewrite it in the process). Add a basic thread pool based on asio and std::thread to libaegisub. This touches nearly every file in the project and a nontrivial amount of code had to be rewritten entirely, so there's probably a lot of broken stuff.
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
include ../Makefile.inc
|
|
|
|
LIB = libaegisub.a
|
|
|
|
CXXFLAGS += -Iinclude -I../src -I.. -DLAGI -fPIC -Wno-variadic-macros
|
|
CPPFLAGS += $(CPPFLAGS_BOOST)
|
|
|
|
PRECOMPILED_HEADER_NAME = lagi_pre.h
|
|
lagi_pre.h.gch: CXXFLAGS := $(CXXFLAGS)
|
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
|
CXXFLAGS += -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/
|
|
LIBS += -L../universalchardet -luniversalchardet
|
|
endif
|
|
|
|
common/charset_conv.o: CXXFLAGS += $(CFLAGS_ICONV)
|
|
unix/path.o: CXXFLAGS += -DP_DATA=\"$(P_DATA)\" -DP_DOC=\"$(P_DOC)\" -DP_LOCALE=\"$(P_LOCALE)\"
|
|
|
|
SRC += \
|
|
ass/dialogue_parser.cpp \
|
|
common/cajun/elements.cpp \
|
|
common/cajun/reader.cpp \
|
|
common/cajun/writer.cpp \
|
|
common/calltip_provider.cpp \
|
|
common/charset.cpp \
|
|
common/charset_6937.cpp \
|
|
common/charset_conv.cpp \
|
|
common/color.cpp \
|
|
common/dispatch.cpp \
|
|
common/fs.cpp \
|
|
common/hotkey.cpp \
|
|
common/io.cpp \
|
|
common/json.cpp \
|
|
common/keyframe.cpp \
|
|
common/log.cpp \
|
|
common/mru.cpp \
|
|
common/option.cpp \
|
|
common/option_visit.cpp \
|
|
common/parser.cpp \
|
|
common/path.cpp \
|
|
common/thesaurus.cpp \
|
|
common/util.cpp \
|
|
common/vfr.cpp \
|
|
unix/access.cpp \
|
|
unix/fs.cpp \
|
|
unix/log.cpp \
|
|
unix/path.cpp \
|
|
unix/util.cpp
|
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
|
SRC += osx/util.mm
|
|
endif
|
|
|
|
HEADER += \
|
|
*.h \
|
|
*/*.h \
|
|
include/libaegisub/*.h \
|
|
include/libaegisub/charsets.def \
|
|
include/libaegisub/cajun/*.h
|
|
|
|
EXTRA_DIST += osx/util.mm
|
|
|
|
include ../Makefile.target
|
|
-include */*.d
|