Patch #3151 2011-05-06 12:57

tomjnx

Windows (cross) Build using autotools build system
Download
3151-Windows_cross.patch (86.6 KB)
Category
Application::FeatureAdd
Status
Open
Close date
 
Assigned to
 
diff --git a/acinclude.m4 b/acinclude.m4
index 244d975..82a0b2f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -157,6 +157,39 @@ else
     AC_MSG_RESULT(no)
 fi
 
+AC_MSG_CHECKING(whether to build the default header guard plugin)
+header_guard_default="no"
+AC_ARG_ENABLE(header-guard, [AC_HELP_STRING([--enable-header-guard], [build the default header guard plugin (default NO)])],,
+                       enable_header_guard=$header_guard_default)
+AM_CONDITIONAL([BUILD_HEADERGUARD], [test "x$enable_header_guard" = "xyes"])
+if test "x$enable_header_guard" = "xyes"; then
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+fi
+
+AC_MSG_CHECKING(whether to build the default log hacker plugin)
+log_hacker_default="no"
+AC_ARG_ENABLE(log-hacker, [AC_HELP_STRING([--enable-log-hacker], [build the default log hacker plugin (default NO)])],,
+                       enable_log_hacker=$log_hacker_default)
+AM_CONDITIONAL([BUILD_LOGHACKER], [test "x$enable_log_hacker" = "xyes"])
+if test "x$enable_log_hacker" = "xyes"; then
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+fi
+
+AC_MSG_CHECKING(whether to build the default ModPoller plugin)
+modpoller_default="no"
+AC_ARG_ENABLE(modpoller, [AC_HELP_STRING([--enable-modpoller], [build the default ModPoller plugin (default NO)])],,
+                       enable_modpoller=$modpoller_default)
+AM_CONDITIONAL([BUILD_MODPOLLER], [test "x$enable_modpoller" = "xyes"])
+if test "x$enable_modpoller" = "xyes"; then
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+fi
+
 AC_MSG_CHECKING(whether to build the open files list plugin)
 openfiles_default="yes"
 AC_ARG_ENABLE(open-files-list, [AC_HELP_STRING([--enable-open-files-list], [build the open files list plugin (default YES)])],,
@@ -190,6 +223,17 @@ else
     AC_MSG_RESULT(no)
 fi
 
+AC_MSG_CHECKING(whether to build the default Tidycmt plugin)
+tidycmt_default="no"
+AC_ARG_ENABLE(tidycmt, [AC_HELP_STRING([--enable-tidycmt], [build the default Tidycmt plugin (default NO)])],,
+                       enable_tidycmt=$tidycmt_default)
+AM_CONDITIONAL([BUILD_TIDYCMT], [test "x$enable_tidycmt" = "xyes"])
+if test "x$enable_tidycmt" = "xyes"; then
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+fi
+
 AC_MSG_CHECKING(whether to build the to-do plugin)
 todo_default="yes"
 AC_ARG_ENABLE(todo, [AC_HELP_STRING([--enable-todo], [build the to-do plugin (default YES)])],,
@@ -263,6 +307,7 @@ AC_DEFUN([BUILD_CONTRIB_NONE], [
     AM_CONDITIONAL([BUILD_COPYSTRINGS], [false])
     AM_CONDITIONAL([BUILD_CSCOPE], [false])
     AM_CONDITIONAL([BUILD_DOXYBLOCKS], [false])
+    AM_CONDITIONAL([BUILD_DEVPAKUPDATER], [false])
     AM_CONDITIONAL([BUILD_DRAGSCROLL], [false])
     AM_CONDITIONAL([BUILD_EDITORCONFIG], [false])
     AM_CONDITIONAL([BUILD_EDITORTWEAKS], [false])
@@ -304,6 +349,7 @@ AC_DEFUN([BUILD_CONTRIB_ALL], [
     AM_CONDITIONAL([BUILD_COPYSTRINGS], [true])
     AM_CONDITIONAL([BUILD_CSCOPE], [true])
     AM_CONDITIONAL([BUILD_DOXYBLOCKS], [true])
+    AM_CONDITIONAL([BUILD_DEVPAKUPDATER], [true])
     AM_CONDITIONAL([BUILD_DRAGSCROLL], [true])
     AM_CONDITIONAL([BUILD_EDITORCONFIG], [true])
     AM_CONDITIONAL([BUILD_EDITORTWEAKS], [true])
@@ -346,7 +392,7 @@ AC_ARG_WITH(contrib-plugins,
   [                        "all,-help" compiles all contrib plugins except the help plugin ]
   [                        By default, no contrib plugins are compiled ]
   [                        Plugin names are: AutoVersioning, BrowseTracker,byogames,Cccc,CppCheck,cbkoders,codesnippets, ]
-  [                                     codestat, copystrings, Cscope, DoxyBlocks, dragscroll, EditorConfig, EditorTweaks, envvars, ]
+  [                                     codestat, copystrings, Cscope, DoxyBlocks, devpakupdater, dragscroll, EditorConfig, EditorTweaks, envvars, ]
   [                                     FileManager, headerfixup, help, hexeditor, incsearch, keybinder, libfinder, MouseSap, ]
   [                                     NassiShneiderman, profiler, regex, ReopenEditor, exporter, smartindent, spellchecker, symtab, ]
   [                                     ThreadSearch, ToolsPlus, Valgrind, wxcontrib, wxsmith, wxsmithcontrib, wxsmithaui ],
@@ -386,6 +432,9 @@ do
     DoxyBlocks)
         AM_CONDITIONAL([BUILD_DOXYBLOCKS], [true])
         ;;
+    devpakupdater)
+        AM_CONDITIONAL([BUILD_DEVPAKUPDATER], [true])
+        ;;
     dragscroll)
         AM_CONDITIONAL([BUILD_DRAGSCROLL], [true])
         ;;
@@ -500,6 +549,9 @@ do
     -DoxyBlocks)
         AM_CONDITIONAL([BUILD_DOXYBLOCKS], [false])
         ;;
+    -devpakupdater)
+        AM_CONDITIONAL([BUILD_DEVPAKUPDATER], [false])
+        ;;
     -dragscroll)
         AM_CONDITIONAL([BUILD_DRAGSCROLL], [false])
         ;;
@@ -606,6 +658,7 @@ AC_SUBST(BUILD_COPYSTRINGS)
 AC_SUBST(BUILD_CPPCHECK)
 AC_SUBST(BUILD_CSCOPE)
 AC_SUBST(BUILD_DOXYBLOCKS)
+AC_SUBST(BUILD_DEVPAKUPDATER)
 AC_SUBST(BUILD_DRAGSCROLL)
 AC_SUBST(BUILD_EDITORCONFIG)
 AC_SUBST(BUILD_EDITORTWEAK
download for full patch...
tomjnx 2013-01-05 16:34

Autotools Build System Patch

Features:

- build missing core plugins (disabled by default)

- fix scripted wizard missing files from the install

- enable cross-build of win32 binaries under linux using mingw tools

tomjnx 2013-01-05 16:34

Autotools Build System Patch

Features:

- build missing core plugins (disabled by default)

- fix scripted wizard missing files from the install

- enable cross-build of win32 binaries under linux using mingw tools

tomjnx 2013-01-06 12:16

Changes:

- also build devpak plugin

- make all wxcontribitems actually build dll's

tomjnx 2013-01-09 11:53

Changes:

- merge moz chardet changes in trunk

tomjnx 2013-01-14 12:32

Changes:

- merge trunk (mcs51 wizard makefile fixed in trunk)

ollydbg 2013-02-23 15:17

Thanks. But I only works on Windows.

This only support the cross build from Linux.

Any possible to build C::B under MSYS+MinGW?