diff --git a/.gitignore b/.gitignore index e8a873187121a803de6f8ace362389e28b7b8d74..b8b559509f48b59d8eaa3951fc98fde38c7c16f8 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,7 @@ packages/desktop/aegisub.desktop packages/desktop/aegisub.desktop.template packages/win_installer/vendor src/aegisub +assdraw/assdraw Aegisub/ src/libresrc/bitmap.cpp src/libresrc/bitmap.h diff --git a/Makefile.inc.in b/Makefile.inc.in index e5f3ad51a0483974dbcf77d9a1a60e417e9c480b..abdb55d889dd29bbcf1d53ce0fde959c8db1aa3e 100644 --- a/Makefile.inc.in +++ b/Makefile.inc.in @@ -15,7 +15,7 @@ SYSTEM_LUAJIT = @with_system_luajit@ # BUILD OUTPUT ############## PROGRAM := $(PROGRAM) -LIB := $(LIB) +LIB := $(LIB) ################### # PLATFORM SETTINGS diff --git a/assdraw/Makefile b/assdraw/Makefile index e5c66c448a0b2f73bda40256d561a5dfb2314bf7..bc727458f498c8c85459d1fc1a25e20fa5b22475 100644 --- a/assdraw/Makefile +++ b/assdraw/Makefile @@ -38,7 +38,7 @@ assdraw_SOURCES := \ $(d)library.cpp \ $(d)settings.cpp -assdraw_CPPFLAGS := -I$(d) +assdraw_CPPFLAGS := -I$(d) $(WX_CPPFLAGS) assdraw_CXXFLAGS := $(CXXFLAGS_WX) assdraw_OBJ := $(assdraw_SOURCES:.cpp=.o) assdraw_LIBS := $(LIBS_WX) $(LIBS_AGG) diff --git a/configure.ac b/configure.ac index 4dc7923b82f390c1b848c7c6488fa0d8b37f3448..f4cde0e48aa50fa3c62eb827bdd994bb11d2d8ec 100644 --- a/configure.ac +++ b/configure.ac @@ -346,6 +346,7 @@ AS_IF([test x$agi_cv_with_iconv_const = xyes], ###### ## agg ###### +build_assdraw="no" if test "x$build_linux" = "xyes" then AC_CHECK_HEADERS([agg2/agg_config.h], [], [not_found_agg="yes"], [ @@ -357,6 +358,7 @@ then AC_MSG_ERROR([con't find agg2, it's needed to compile assdraw]) ], [ AC_MSG_NOTICE([agg2 was found, will compile assdraw]) + build_assdraw="yes" ]) AGG_LIBS=${AGG_LIBS:--lagg} AC_SUBST(AGG_LIBS) @@ -538,29 +540,34 @@ AS_IF([test x$enable_debug_exceptions = xyes], ################ # Widget support ################ +WX_REQUIRED_CHECKS="std,gl,stc" +if test x$build_assdraw = xyes +then + WX_REQUIRED_CHECKS="${WX_REQUIRED_CHECKS},aui,propgrid" +fi WX_CONFIG_OPTIONS WX_STANDARD_OPTIONS([debug]) WX_DEBUG=$DEBUG WX_UNICODE=$UNICODE -WX_CONFIG_CHECK([wx_required_version],,,[std,gl,stc],[$WXCONFIG_FLAGS]) +WX_CONFIG_CHECK([wx_required_version],,,[$WX_REQUIRED_CHECKS],[$WXCONFIG_FLAGS]) AC_SUBST(WX_CONFIG_PATH) AS_IF([test x$WX_VERSION = x], - [AC_MSG_FAILURE([wxWidgets detection failed, please set --with-wx* or add the libraries to your LIBS, CXX/CFLAGS.])]) + [AC_MSG_FAILURE([wxWidgets detection failed, please set --with-wx* or add the libraries to your LIBS, CXX/CFLAGS.])]) AS_IF([test x$enable_sanity_checks != xno], [ - AC_AGI_LINK([wxWidgets OpenGL support], [wxopengl], [wx/glcanvas.h], [$GL_CFLAGS $WX_CFLAGS], [$GL_LIBS $WX_LIBS],[ + AC_AGI_LINK([wxWidgets OpenGL support], [wxopengl], [wx/glcanvas.h], [$GL_CFLAGS $WX_CFLAGS], [$GL_LIBS $WX_LIBS],[ #include <wx/glcanvas.h> int main(void) { - wxGLCanvas *canvas; - wxGLContext *context; - return 0; + wxGLCanvas *canvas; + wxGLContext *context; + return 0; } ]) - AC_AGI_LINK([wxWidgets StyledTextCtrl support], [wxstc], [wx/stc/stc.h], [$WX_CFLAGS], [$WX_LIBS],[ + AC_AGI_LINK([wxWidgets StyledTextCtrl support], [wxstc], [wx/stc/stc.h], [$WX_CFLAGS], [$WX_LIBS],[ #include <wx/stc/stc.h> int main(void) { - wxStyledTextCtrl *canvas; - return 0; + wxStyledTextCtrl *canvas; + return 0; } ]) ])