build: update configure.ac, reset version info

This commit is contained in:
Liu Chao
2018-03-17 19:30:14 +08:00
parent 2064b10f96
commit d56fa600bd
5 changed files with 113 additions and 61 deletions
View File
+30 -11
View File
@@ -1,14 +1,5 @@
AUTOMAKE_OPTIONS=foreign
EXTRA_DIST=windows/LCUIUWP/LCUIUWP.vcxproj \
windows/LCUIUWP/LCUIUWP.vcxproj.filters \
windows/testtouch/testtouch.vcxproj.filters \
windows/testtouch/testtouch.vcxproj \
windows/LCUI.sln \
windows/LCUIMain/LCUIMain.vcxproj.filters \
windows/LCUIMain/win32_main.c \
windows/LCUIMain/LCUIMain.vcxproj \
windows/LCUITest/LCUITest.vcxproj \
windows/LCUITest/LCUITest.vcxproj.filters \
EXTRA_DIST=windows/LCUI.sln \
windows/LCUI/resource.h \
windows/LCUI/LCUI.vcxproj \
windows/LCUI/lcui.ico \
@@ -18,6 +9,34 @@ windows/LCUI/helloworld.xml \
windows/LCUI/LCUI.vcxproj.filters \
windows/LCUI/LCUI.rc \
windows/LCUI-Demo.sln \
windows/LCUIMain/LCUIMain.vcxproj.filters \
windows/LCUIMain/win32_main.c \
windows/LCUIMain/LCUIMain.vcxproj \
windows/LCUIApp/pch.h \
windows/LCUIApp/Assets/Square44x44Logo.scale-200.png \
windows/LCUIApp/Assets/Wide310x150Logo.scale-200.png \
windows/LCUIApp/Assets/Square150x150Logo.scale-200.png \
windows/LCUIApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png \
windows/LCUIApp/Assets/SplashScreen.scale-200.png \
windows/LCUIApp/Assets/StoreLogo.png \
windows/LCUIApp/Assets/LockScreenLogo.scale-200.png \
windows/LCUIApp/LCUIApp.vcxproj \
windows/LCUIApp/LCUIApp.vcxproj.filters \
windows/LCUIApp/App.cpp \
windows/LCUIApp/pch.cpp \
windows/LCUIApp/Package.appxmanifest \
windows/LCUIUWP/LCUIUWP.vcxproj \
windows/LCUIUWP/LCUIUWP.vcxproj.filters \
windows/LCUIUWPApp/LCUIUWPApp.vcxproj.filters \
windows/LCUIUWPApp/LCUIUWPApp.vcxproj \
windows/LCUITest/LCUITest.vcxproj \
windows/LCUITest/LCUITest.vcxproj.filters \
windows/helloworld/helloworld.vcxproj \
windows/helloworld/helloworld.vcxproj.filters
windows/helloworld/helloworld.vcxproj.filters \
windows/test_touch/test_touch.vcxproj \
windows/test_touch/test_touch.vcxproj.filters \
windows/test_scaling_support/test_scaling_support.vcxproj \
windows/test_scaling_support/test_scaling_support.vcxproj.filters \
windows/test_widget_layout/test_widget_layout.vcxproj \
windows/test_widget_layout/test_widget_layout.vcxproj.filters
+24 -15
View File
@@ -1,10 +1,8 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
# http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/index.html
AC_PREREQ([2.68])
AC_INIT(LCUI, 1.0.0, lc-soft@live.cn)
AC_PREREQ([2.69])
AC_INIT(LCUI, 1.0.0-beta.2, lc-soft@live.cn)
# Silence warning: ar: 'u' modifier ignored since 'D' is the default
AC_SUBST(AR_FLAGS, [cr])
@@ -17,31 +15,42 @@ AC_CONFIG_SRCDIR([include/LCUI_Build.h])
AC_CONFIG_HEADERS([include/LCUI/config.h])
AC_CONFIG_MACRO_DIR([m4])
# Make --enable-silent-rules the default.
# To get verbose build output you may configure
# with --disable-silent-rules or use "make V=1".
# 默认情况下,是 Make --enable-silent-rules, 也就是启用无声规则,make时输出的是精简的信息。
# 要获得详细的编译输出,你可以在运行configurue时加上--disable-silent-rules参数或使用"make V=1".
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h malloc.h memory.h stddef.h stdlib.h string.h strings.h sys/ioctl.h termio.h unistd.h wchar.h])
AC_PATH_X
AC_CHECK_HEADERS([limits.h locale.h stdint.h stdlib.h string.h sys/time.h unistd.h wchar.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_HEADER_STDBOOL
AC_C_RESTRICT
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_CHECK_FUNCS([memset munmap select strcasecmp sysinfo])
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gettimeofday memset pow select sqrt strcasecmp strstr])
# Make --enable-silent-rules the default.
# To get verbose build output you may configure
# with --disable-silent-rules or use "make V=1".
AM_SILENT_RULES([yes])
AX_CODE_COVERAGE
+57 -33
View File
@@ -3,18 +3,21 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define to 1 if you have the <ft2build.h> header file. */
#undef HAVE_FT2BUILD_H
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the <jpeglib.h> header file. */
#undef HAVE_JPEGLIB_H
/* Define to 1 if you have the `m' library (-lm). */
#undef HAVE_LIBM
/* Define to 1 if you have the <libxml/parser.h> header file. */
#undef HAVE_LIBXML_PARSER_H
@@ -24,8 +27,12 @@
/* Define to 1 if you have the <linux/fb.h> header file. */
#undef HAVE_LINUX_FB_H
/* Define to 1 if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
to 0 otherwise. */
#undef HAVE_MALLOC
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
@@ -33,26 +40,27 @@
/* Define to 1 if you have the `memset' function. */
#undef HAVE_MEMSET
/* Define to 1 if you have the `munmap' function. */
#undef HAVE_MUNMAP
/* Define to 1 if you have the <png.h> header file. */
#undef HAVE_PNG_H
/* Define to 1 if you have the `pow' function. */
#undef HAVE_POW
/* Have PTHREAD_PRIO_INHERIT. */
#undef HAVE_PTHREAD_PRIO_INHERIT
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
and to 0 otherwise. */
#undef HAVE_REALLOC
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the <setjmp.h> header file. */
#undef HAVE_SETJMP_H
/* Define to 1 if stdbool.h conforms to C99. */
#undef HAVE_STDBOOL_H
/* Define to 1 if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
/* Define to 1 if you have the `sqrt' function. */
#undef HAVE_SQRT
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
@@ -69,21 +77,18 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `sysinfo' function. */
#undef HAVE_SYSINFO
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
/* Define to 1 if you have the `strstr' function. */
#undef HAVE_STRSTR
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
@@ -156,23 +161,42 @@
#define below would cause a syntax error. */
#undef _UINT32_T
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#undef restrict
/* Work around a bug in Sun C++: it does not support _Restrict or
__restrict__, even though the corresponding Sun C compiler ends up with
"#define restrict _Restrict" or "#define restrict __restrict__" in the
previous line. Perhaps some future version of Sun C++ will work with
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
#if defined __SUNPRO_CC && !defined __RESTRICT
# define _Restrict
# define __restrict__
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */
#undef _UINT64_T
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
#undef inline
#endif
/* Define to the type of a signed integer type of width exactly 32 bits if
such a type exists and the standard includes do not define it. */
#undef int32_t
/* Define to the type of a signed integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef int64_t
/* Define to rpl_malloc if the replacement function should be used. */
#undef malloc
/* Define to rpl_realloc if the replacement function should be used. */
#undef realloc
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
/* Define to the type of an unsigned integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */
#undef uint16_t
/* Define to the type of an unsigned integer type of width exactly 32 bits if
such a type exists and the standard includes do not define it. */
#undef uint32_t
/* Define to the type of an unsigned integer type of width exactly 64 bits if
such a type exists and the standard includes do not define it. */
#undef uint64_t
+2 -2
View File
@@ -1,8 +1,8 @@
AUTOMAKE_OPTIONS=foreign
##设定在编译时头文件的查找位置
AM_CFLAGS = -I$(abs_top_srcdir)/include $(CODE_COVERAGE_CFLAGS)
##以下是给Libtool的参数
LCUI_LDFLAGS = -version-info 3:0:0
LCUI_LDFLAGS = -version-info 1:0:0
LCUI_SOURCES = graph.c ime.c cursor.c worker.c main.c timer.c display.c keyboard.c
LCUI_LIBADD = thread/libthread.la util/libutil.la platform/libplatform.la \
image/libimage.la draw/libdraw.la gui/libgui.la font/libfont.la \