Skip to content

Commit

Permalink
refine code style
Browse files Browse the repository at this point in the history
  • Loading branch information
onecoolx committed Mar 22, 2019
1 parent 84e5cf2 commit f3e5bcb
Show file tree
Hide file tree
Showing 14 changed files with 289 additions and 212 deletions.
1 change: 1 addition & 0 deletions clean_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ rm -rf missing
rm -rf pconfig.h.in
rm -rf src/Makefile.in
rm -rf test/Makefile.in
find . -name "*.gcno"|xargs rm -rf
10 changes: 10 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ build_fontconfig="yes"
build_fastcopy="yes"
build_sysmalloc="no"
build_lowmem="no"
build_coverage="no"

format_rgba="yes"
format_argb="yes"
Expand Down Expand Up @@ -67,6 +68,10 @@ AC_ARG_ENABLE(fastcopy,
[ --enable-fastcopy Build Fast Memory Copy used support <default=yes>],
build_fastcopy=$enableval)

AC_ARG_ENABLE(coverage,
[ --enable-coverage Build Code coverage test <default=no>],
build_coverage=$enableval)

AC_ARG_ENABLE(sysmalloc,
[ --enable-sysmalloc Build System Memory Allocator
(new/delete/malloc/free/realloc/calloc) used support <default=no>],
Expand Down Expand Up @@ -279,6 +284,11 @@ if test "x$build_image" = "xyes"; then
fi
fi

if test "x$build_coverage" = "xyes"; then
CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
fi

AM_CONDITIONAL(PSX_IMAGE_SUPPORT, test "x$build_image" = "xyes")
AM_CONDITIONAL(PSX_IMAGE_GIF_SUPPORT, test "x$build_gif_support" = "xyes")
AM_CONDITIONAL(PSX_IMAGE_PNG_SUPPORT, test "x$build_png_support" = "xyes")
Expand Down
Loading

0 comments on commit f3e5bcb

Please sign in to comment.