Skip to content

Commit 1d072c6

Browse files
committed
Switched to autotools build system
1 parent 5d340f8 commit 1d072c6

File tree

5 files changed

+150
-82
lines changed

5 files changed

+150
-82
lines changed

GitBlocks-win32.cbp

-82
This file was deleted.

Makefile.am

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ---------- Declarations ---------- #
2+
3+
cb_plugin_lib_LTLIBRARIES = GitBlocks.la
4+
cb_plugin_data_DATA = GitBlocks.zip
5+
CLEANFILES = GitBlocks.zip
6+
7+
8+
# ---------- GitBlocks.so ---------- #
9+
10+
GitBlocks_la_SOURCES = src/CloneDialog.cpp \
11+
src/CommitAllDialog.cpp \
12+
src/CommitDialog.cpp \
13+
src/ConfigPanel.cpp \
14+
src/GitBlocks.cpp
15+
16+
noinst_HEADERS = include/CloneDialog.h \
17+
include/CommitAllDialog.h \
18+
include/CommitDialog.h \
19+
include/Common.h \
20+
include/ConfigPanel.h \
21+
include/GitBlocks.h
22+
23+
GitBlocks_la_CPPFLAGS = -ansi $(WX_CFLAGS) $(CB_CFLAGS) -Iinclude
24+
25+
GitBlocks_la_LDFLAGS = -shared -module -avoid-version -no-undefined $(WX_LIBS) $(CB_LIBS)
26+
27+
# ---------- GitBlocks.zip ---------- #
28+
29+
GitBlocks_zip_RESOURCES = manifest.xml
30+
31+
GitBlocks.zip: $(GitBlocks_zip_RESOURCES)
32+
PWD=`pwd` cd $(srcdir) && zip -R $(PWD)/GitBlocks.zip manifest.xml

bootstrap

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
AUTOCONF=autoconf
4+
#AUTOHEADER=autoheader
5+
AUTOMAKE=automake
6+
ACLOCAL=aclocal
7+
LIBTOOLIZE=libtoolize
8+
9+
# clean up files which cause confusion when switch versions of auto*
10+
rm -rf autom4te.cache
11+
12+
$LIBTOOLIZE --force --copy && \
13+
$ACLOCAL $ACLOCAL_FLAGS && \
14+
$AUTOMAKE --include-deps --add-missing --foreign --copy && \
15+
$AUTOCONF

config.h.in

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/* config.h.in. Generated from configure.ac by autoheader. */
2+
3+
/* Define to 1 if you have the <dlfcn.h> header file. */
4+
#undef HAVE_DLFCN_H
5+
6+
/* Define to 1 if you have the <inttypes.h> header file. */
7+
#undef HAVE_INTTYPES_H
8+
9+
/* Define to 1 if you have the <memory.h> header file. */
10+
#undef HAVE_MEMORY_H
11+
12+
/* Define to 1 if you have the <stdint.h> header file. */
13+
#undef HAVE_STDINT_H
14+
15+
/* Define to 1 if you have the <stdlib.h> header file. */
16+
#undef HAVE_STDLIB_H
17+
18+
/* Define to 1 if you have the <strings.h> header file. */
19+
#undef HAVE_STRINGS_H
20+
21+
/* Define to 1 if you have the <string.h> header file. */
22+
#undef HAVE_STRING_H
23+
24+
/* Define to 1 if you have the <sys/stat.h> header file. */
25+
#undef HAVE_SYS_STAT_H
26+
27+
/* Define to 1 if you have the <sys/types.h> header file. */
28+
#undef HAVE_SYS_TYPES_H
29+
30+
/* Define to 1 if you have the <unistd.h> header file. */
31+
#undef HAVE_UNISTD_H
32+
33+
/* Define to 1 if the system has the type `_Bool'. */
34+
#undef HAVE__BOOL
35+
36+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
37+
#undef LT_OBJDIR
38+
39+
/* Name of package */
40+
#undef PACKAGE
41+
42+
/* Define to the address where bug reports for this package should be sent. */
43+
#undef PACKAGE_BUGREPORT
44+
45+
/* Define to the full name of this package. */
46+
#undef PACKAGE_NAME
47+
48+
/* Define to the full name and version of this package. */
49+
#undef PACKAGE_STRING
50+
51+
/* Define to the one symbol short name of this package. */
52+
#undef PACKAGE_TARNAME
53+
54+
/* Define to the home page for this package. */
55+
#undef PACKAGE_URL
56+
57+
/* Define to the version of this package. */
58+
#undef PACKAGE_VERSION
59+
60+
/* Define to 1 if you have the ANSI C header files. */
61+
#undef STDC_HEADERS
62+
63+
/* Version number of package */
64+
#undef VERSION

configure.ac

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# -*- Autoconf -*-
2+
# Process this file with autoconf to produce a configure script.
3+
4+
AC_PREREQ([2.69])
5+
AC_INIT(GitBlocks, 0.4.3, [email protected])
6+
7+
AM_INIT_AUTOMAKE([subdir-objects])
8+
9+
AC_CONFIG_HEADERS([config.h])
10+
11+
# Checks for programs.
12+
AC_PROG_LIBTOOL
13+
AC_PROG_CXX
14+
15+
# Checks for libraries & headers.
16+
LT_INIT([dlopen])
17+
18+
WX_CFLAGS=`wx-config --version=2.8 --cflags`
19+
WX_LIBS=`wx-config --version=2.8 --libs`
20+
AC_SUBST(WX_CFLAGS)
21+
AC_SUBST(WX_LIBS)
22+
23+
PKG_CHECK_MODULES([CB], [codeblocks])
24+
AC_SUBST(CB_CFLAGS)
25+
AC_SUBST(CB_LIBS)
26+
27+
cb_plugin_datadir="`$PKG_CONFIG codeblocks --variable sharedir`/codeblocks/"
28+
cb_plugin_libdir="`$PKG_CONFIG codeblocks --variable libdir`/codeblocks/plugins/"
29+
AC_SUBST([cb_plugin_datadir])
30+
AC_SUBST([cb_plugin_libdir])
31+
32+
# Checks for typedefs, structures, and compiler characteristics.
33+
AC_CHECK_HEADER_STDBOOL
34+
35+
# Checks for library functions.
36+
37+
AC_CONFIG_FILES([Makefile])
38+
AC_OUTPUT
39+

0 commit comments

Comments
 (0)