Skip to content

Commit ad61b40

Browse files
committed
freetype
1 parent c136cc1 commit ad61b40

10 files changed

+75
-12
lines changed

build-debug-macosx

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export CXXFLAGS="$new$CXXFLAGS -g3"
4545
# perfer to compile against our own freetype
4646
echo Compiling our internal freetype
4747
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
48+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
49+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
50+
export CFLAGS="$new$CFLAGS -g3 "
51+
export LDFLAGS="$nld$LDFLAGS -g3"
52+
export CPPFLAGS="$new$CPPFLAGS -g3 "
53+
export CXXFLAGS="$new$CXXFLAGS -g3"
4854
export INTERNAL_FREETYPE=1
4955

5056
# now compile ourself

build-debug-macosx-sdl2

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export CXXFLAGS="$new$CXXFLAGS -g3"
4242
# perfer to compile against our own freetype
4343
echo Compiling our internal freetype
4444
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
45+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
46+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
47+
export CFLAGS="$new$CFLAGS -g3"
48+
export LDFLAGS="$nld$LDFLAGS -g3"
49+
export CPPFLAGS="$new$CPPFLAGS -g3"
50+
export CXXFLAGS="$new$CXXFLAGS -g3"
4551
export INTERNAL_FREETYPE=1
4652

4753
# now compile ourself

build-macosx

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export CXXFLAGS="$new$CXXFLAGS"
4545
# perfer to compile against our own freetype
4646
echo Compiling our internal freetype
4747
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
48+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
49+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
50+
export CFLAGS="$new$CFLAGS"
51+
export LDFLAGS="$nld$LDFLAGS"
52+
export CPPFLAGS="$new$CPPFLAGS"
53+
export CXXFLAGS="$new$CXXFLAGS"
4854
export INTERNAL_FREETYPE=1
4955

5056
# now compile ourself

build-macosx-sdl2

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export CXXFLAGS="$new$CXXFLAGS"
4242
# perfer to compile against our own freetype
4343
echo Compiling our internal freetype
4444
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
45+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
46+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
47+
export CFLAGS="$new$CFLAGS"
48+
export LDFLAGS="$nld$LDFLAGS"
49+
export CPPFLAGS="$new$CPPFLAGS"
50+
export CXXFLAGS="$new$CXXFLAGS"
4551
export INTERNAL_FREETYPE=1
4652

4753
# now compile ourself

build-mingw

+11
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ export LDFLAGS="$nld$LDFLAGS"
4848
export CPPFLAGS="$new$CPPFLAGS"
4949
export CXXFLAGS="$new$CXXFLAGS"
5050

51+
# perfer to compile against our own freetype
52+
echo Compiling our internal freetype
53+
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
54+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
55+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
56+
export CFLAGS="$new$CFLAGS"
57+
export LDFLAGS="$nld$LDFLAGS"
58+
export CPPFLAGS="$new$CPPFLAGS"
59+
export CXXFLAGS="$new$CXXFLAGS"
60+
export INTERNAL_FREETYPE=1
61+
5162
# now compile ourself
5263
echo Compiling DOSBox-X
5364
chmod +x configure

build-mingw-lowend

+11
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ export LDFLAGS="$nld$LDFLAGS"
4343
export CPPFLAGS="$new$CPPFLAGS"
4444
export CXXFLAGS="$new$CXXFLAGS"
4545

46+
# perfer to compile against our own freetype
47+
echo Compiling our internal freetype
48+
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
49+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
50+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
51+
export CFLAGS="$new$CFLAGS"
52+
export LDFLAGS="$nld$LDFLAGS"
53+
export CPPFLAGS="$new$CPPFLAGS"
54+
export CXXFLAGS="$new$CXXFLAGS"
55+
export INTERNAL_FREETYPE=1
56+
4657
# now compile ourself
4758
echo Compiling DOSBox-X
4859
chmod +x configure

build-mingw-sdl2

+11
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ export LDFLAGS="$nld$LDFLAGS"
4646
export CPPFLAGS="$new$CPPFLAGS"
4747
export CXXFLAGS="$new$CXXFLAGS"
4848

49+
# perfer to compile against our own freetype
50+
echo Compiling our internal freetype
51+
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
52+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
53+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
54+
export CFLAGS="$new$CFLAGS"
55+
export LDFLAGS="$nld$LDFLAGS"
56+
export CPPFLAGS="$new$CPPFLAGS"
57+
export CXXFLAGS="$new$CXXFLAGS"
58+
export INTERNAL_FREETYPE=1
59+
4960
# now compile ourself
5061
echo Compiling DOSBox-X
5162
chmod +x configure

build-mingw-sdldraw

+11
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ export LDFLAGS="$nld$LDFLAGS"
4343
export CPPFLAGS="$new$CPPFLAGS"
4444
export CXXFLAGS="$new$CXXFLAGS"
4545

46+
# perfer to compile against our own freetype
47+
echo Compiling our internal freetype
48+
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
49+
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
50+
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
51+
export CFLAGS="$new$CFLAGS"
52+
export LDFLAGS="$nld$LDFLAGS"
53+
export CPPFLAGS="$new$CPPFLAGS"
54+
export CXXFLAGS="$new$CXXFLAGS"
55+
export INTERNAL_FREETYPE=1
56+
4657
# now compile ourself
4758
echo Compiling DOSBox-X
4859
chmod +x configure

configure.ac

+7-10
Original file line numberDiff line numberDiff line change
@@ -653,24 +653,21 @@ AM_CONDITIONAL(C_FREETYPE, test "x$enable_freetype" = "xyes")
653653
if test x$enable_freetype = xyes; then
654654
AC_MSG_CHECKING(for freetype)
655655
if test x$INTERNAL_FREETYPE = x1; then
656-
CFLAGS="$CFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
657-
LDFLAGS="$LDFLAGS -L$top/vs2015/freetype/linux-host/lib -lfreetype"
658-
CPPFLAGS="$CPPFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
659-
CXXFLAGS="$CXXFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
656+
# CFLAGS and LDFLAGS were already updated by build-macosx
657+
AC_DEFINE(C_FREETYPE,1)
658+
AC_MSG_RESULT(yes)
660659
else
661660
pkg-config --exists freetype2; RES=$?
662661
if test x$RES = x0; then
663662
CFLAGS="$CFLAGS "`pkg-config freetype2 --cflags`
664663
CPPFLAGS="$CPPFLAGS "`pkg-config freetype2 --cflags`
665664
LIBS="$LIBS "`pkg-config freetype2 --libs`
665+
AC_DEFINE(C_FREETYPE,1)
666+
AC_MSG_RESULT(yes)
666667
else
667-
CFLAGS="$CFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
668-
LDFLAGS="$LDFLAGS -L$top/vs2015/freetype/linux-host/lib -lfreetype"
669-
CPPFLAGS="$CPPFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
670-
CXXFLAGS="$CXXFLAGS -I$pwd/vs2015/freetype/linux-host/include/freetype2"
668+
enable_freetype=no
669+
AC_MSG_RESULT(no)
671670
fi
672-
AC_DEFINE(C_FREETYPE,1)
673-
AC_MSG_RESULT(yes)
674671
fi
675672
fi
676673

src/gui/sdl_mapper.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,6 @@ class CFCSBindGroup : public CStickBindGroup {
18941894
}
18951895
}
18961896

1897-
18981897
private:
18991898
Uint8 old_hat_position;
19001899

@@ -1943,7 +1942,6 @@ class CFCSBindGroup : public CStickBindGroup {
19431942
}
19441943
};
19451944

1946-
19471945
class CCHBindGroup : public CStickBindGroup {
19481946
public:
19491947
CCHBindGroup(Bitu _stick,Bitu _emustick) : CStickBindGroup (_stick,_emustick){

0 commit comments

Comments
 (0)