Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PUAE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
PUAE
Commits
d2cd0de6
Commit
d2cd0de6
authored
Sep 22, 2011
by
mtufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
puae 2.3.3 android
parent
6f998e1c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
284 additions
and
0 deletions
+284
-0
AndroidAppSettings.cfg
android/AndroidAppSettings.cfg
+42
-0
README
android/README
+5
-0
icon.png
android/icon.png
+0
-0
setEnvironment-r4b.sh
android/setEnvironment-r4b.sh
+76
-0
setEnvironment-r5b.sh
android/setEnvironment-r5b.sh
+97
-0
setEnvironment.sh
android/setEnvironment.sh
+24
-0
build_android.sh
build_android.sh
+40
-0
No files found.
android/AndroidAppSettings.cfg
0 → 100644
View file @
d2cd0de6
# The application settings for Android libSDL port
AppSettingVersion=17
LibSdlVersion=1.2
AppName="PUAE"
AppFullName=gnostic.puae.sdl
ScreenOrientation=h
InhibitSuspend=y
AppDataDownloadUrl="!kickrom files|kickroms.zip^!Sysinfo|sysinfo.zip"
VideoDepthBpp=16
NeedDepthBuffer=n
NeedStencilBuffer=n
NeedGles2=n
SwVideoMode=y
SdlVideoResize=y
SdlVideoResizeKeepAspect=n
CompatibilityHacks=n
AppUsesMouse=y
AppNeedsTwoButtonMouse=y
ForceRelativeMouseMode=y
AppNeedsArrowKeys=y
AppNeedsTextInput=y
AppUsesJoystick=n
AppHandlesJoystickSensitivity=y
AppUsesMultitouch=n
NonBlockingSwapBuffers=n
RedefinedKeys="SPACE RETURN NO_REMAP NO_REMAP LCTRL ESCAPE F6 F3 F4 F2 F6"
AppTouchscreenKeyboardKeysAmount=4
AppTouchscreenKeyboardKeysAmountAutoFire=2
RedefinedKeysScreenKb="SPACE RETURN F11 F12"
StartupMenuButtonTimeout=3000
HiddenMenuOptions='OptionalDownloadConfig'
FirstStartMenuOptions=''
MultiABI=n
AppVersionCode=23301
AppVersionName="2.3.3.01"
CompiledLibraries="jpeg png"
CustomBuildScript=y
AppCflags=''
AppLdflags=''
AppSubdirsBuild=''
AppCmdline=''
ReadmeText='^You may press "Home" now - the data will be downloaded in background'
android/README
0 → 100644
View file @
d2cd0de6
https://github.com/pelya/commandergenius/blob/sdl_android/project/jni/application/puae/
run build.sh
Also you should deinstall libgtk2.0-dev from your Linux,
otherwise it will be detected by configure script and will break compilation.
android/icon.png
0 → 100644
View file @
d2cd0de6
8.72 KB
android/setEnvironment-r4b.sh
0 → 100755
View file @
d2cd0de6
#!/bin/sh
IFS
=
'
'
MYARCH
=
linux-x86
if
uname
-s
|
grep
-i
"linux"
>
/dev/null
;
then
MYARCH
=
linux-x86
fi
if
uname
-s
|
grep
-i
"darwin"
>
/dev/null
;
then
MYARCH
=
darwin-x86
fi
if
uname
-s
|
grep
-i
"windows"
>
/dev/null
;
then
MYARCH
=
windows-x86
fi
NDK
=
`
which ndk-build
`
NDK
=
`
dirname
$NDK
`
GCCVER
=
4.4.0
PLATFORMVER
=
android-8
LOCAL_PATH
=
`
dirname
$0
`
LOCAL_PATH
=
`
cd
$LOCAL_PATH
&&
pwd
`
STL_INCLUDE
=
"-I
$LOCAL_PATH
/../stlport/stlport -fno-exceptions -fno-rtti"
STL_LIB
=
"
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libstdc++.so
$LOCAL_PATH
/../../obj/local/armeabi/libstlport.a"
if
[
-n
"
`
echo
$NDK
|
grep
'[-]crystax'
`
"
]
;
then
STL_INCLUDE
=
"-fexceptions -frtti"
STL_LIB
=
"-lstdc++"
fi
APP_MODULES
=
`
grep
'APP_MODULES [:][=]'
$LOCAL_PATH
/../Settings.mk |
sed
's@.*[=]\(.*\)@\1@'
`
APP_AVAILABLE_STATIC_LIBS
=
`
grep
'APP_AVAILABLE_STATIC_LIBS [:][=]'
$LOCAL_PATH
/../Settings.mk |
sed
's@.*[=]\(.*\)@\1@'
`
APP_SHARED_LIBS
=
$(
echo
$APP_MODULES
| xargs
-n
1
echo
|
while
read
LIB
;
do
STATIC
=
`
echo
$APP_AVAILABLE_STATIC_LIBS
application sdl_main stlport stdout-test |
grep
"
\\\\
b
$LIB
\\\\
b"
`
if
[
-n
"
$STATIC
"
]
;
then
true
else
echo
$LIB
fi
done
)
CFLAGS
=
"-I
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/include
\
-fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums
\
-D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID
\
-Wno-psabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -O2
\
-fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
\
-Wa,--noexecstack -DNDEBUG -g
\
-I
$LOCAL_PATH
/../sdl-1.2/include
$STL_INCLUDE
\
`
echo
$APP_MODULES
|
sed
\"
s@
\(
[
-a-zA-Z0-9_
.]
\+\)
@-I
$LOCAL_PATH
/../
\1
/include@g
\"
`
"
LDFLAGS
=
"-nostdlib -Wl,-soname,libapplication.so -Wl,-shared,-Bsymbolic
\
-Wl,--whole-archive -Wl,--no-whole-archive
\
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/lib/gcc/arm-eabi/4.4.0/libgcc.a
\
`
echo
$APP_SHARED_LIBS
|
sed
\"
s@
\(
[
-a-zA-Z0-9_
.]
\+\)
@
$LOCAL_PATH
/../../obj/local/armeabi/lib
\1
.so@g
\"
`
\
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libc.so
\
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libm.so
\
-Wl,--no-undefined -Wl,-z,noexecstack
\
-L
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/lib
\
-lGLESv1_CM -ldl -llog -lz
\
-Wl,-rpath-link=
$NDK
/build/platforms/
$PLATFORMVER
/arch-arm/usr/lib
\
-L
$LOCAL_PATH
/../../obj/local/armeabi
$STL_LIB
"
env
PATH
=
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin:
$LOCAL_PATH
:
$PATH
\
CFLAGS
=
"
$CFLAGS
"
\
CXXFLAGS
=
"
$CFLAGS
"
\
LDFLAGS
=
"
$LDFLAGS
"
\
CC
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-gcc"
\
CXX
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-g++"
\
RANLIB
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-ranlib"
\
LD
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-gcc"
\
AR
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-ar"
\
CPP
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-cpp
$CFLAGS
"
\
NM
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-nm"
\
AS
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-as"
\
STRIP
=
"
$NDK
/build/prebuilt/
$MYARCH
/arm-eabi-
$GCCVER
/bin/arm-eabi-strip"
\
"
$@
"
android/setEnvironment-r5b.sh
0 → 100755
View file @
d2cd0de6
#!/bin/sh
IFS
=
'
'
MYARCH
=
linux-x86
if
uname
-s
|
grep
-i
"linux"
>
/dev/null
;
then
MYARCH
=
linux-x86
fi
if
uname
-s
|
grep
-i
"darwin"
>
/dev/null
;
then
MYARCH
=
darwin-x86
fi
if
uname
-s
|
grep
-i
"windows"
>
/dev/null
;
then
MYARCH
=
windows-x86
fi
NDK
=
`
which ndk-build
`
NDK
=
`
dirname
$NDK
`
#echo NDK $NDK
GCCPREFIX
=
arm-linux-androideabi
GCCVER
=
4.4.3
PLATFORMVER
=
android-8
LOCAL_PATH
=
`
dirname
$0
`
LOCAL_PATH
=
`
cd
$LOCAL_PATH
&&
pwd
`
#echo LOCAL_PATH $LOCAL_PATH
APP_MODULES
=
`
grep
'APP_MODULES [:][=]'
$LOCAL_PATH
/../Settings.mk |
sed
's@.*[=]\(.*\)@\1@'
`
APP_AVAILABLE_STATIC_LIBS
=
`
grep
'APP_AVAILABLE_STATIC_LIBS [:][=]'
$LOCAL_PATH
/../Settings.mk |
sed
's@.*[=]\(.*\)@\1@'
`
APP_SHARED_LIBS
=
$(
echo
$APP_MODULES
| xargs
-n
1
echo
|
while
read
LIB
;
do
STATIC
=
`
echo
$APP_AVAILABLE_STATIC_LIBS
application sdl_main stlport stdout-test |
grep
"
\\\\
b
$LIB
\\\\
b"
`
if
[
-n
"
$STATIC
"
]
;
then
true
else
echo
$LIB
fi
done
)
if
[
-n
"
$CRYSTAX_WCHAR
"
]
;
then
CRYSTAX_WCHAR_INCLUDE
=
-I
$NDK
/sources/crystax/include
CRYSTAX_WCHAR_LIB
=
"
$NDK
/sources/crystax/libs/armeabi/libcrystax_static.a"
fi
CFLAGS
=
"
\
-fexceptions -frtti
\
-fpic -ffunction-sections -funwind-tables -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi
\
-march=armv5te -mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
\
-I
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/include -Wa,--noexecstack
\
-DANDROID
\
-DNDEBUG -O2 -g
\
-I
$NDK
/sources/cxx-stl/gnu-libstdc++/include
\
-I
$NDK
/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include
\
-I
$LOCAL_PATH
/../sdl-1.2/include
\
`
echo
$APP_MODULES
|
sed
\"
s@
\(
[
-a-zA-Z0-9_
.]
\+\)
@-I
$LOCAL_PATH
/../
\1
/include@g
\"
`
\
$CRYSTAX_WCHAR_INCLUDE
"
SHARED
=
"-shared -Wl,-soname,libapplication.so"
if
[
-n
"
$BUILD_EXECUTABLE
"
]
;
then
SHARED
=
fi
if
[
-n
"
$NO_SHARED_LIBS
"
]
;
then
APP_SHARED_LIBS
=
fi
LDFLAGS
=
"
\
-fexceptions -frtti
$SHARED
\
--sysroot=
$NDK
/platforms/
$PLATFORMVER
/arch-arm
\
`
echo
$APP_SHARED_LIBS
|
sed
\"
s@
\(
[
-a-zA-Z0-9_
.]
\+\)
@
$LOCAL_PATH
/../../obj/local/armeabi/lib
\1
.so@g
\"
`
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libc.so
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libm.so
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libGLESv1_CM.so
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libdl.so
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/liblog.so
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libz.so
\
-L
$NDK
/sources/cxx-stl/gnu-libstdc++/libs/armeabi -lstdc++
\
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib/libstdc++.a
\
-L
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib
\
-L
$LOCAL_PATH
/../../obj/local/armeabi -Wl,--no-undefined -Wl,-z,noexecstack
\
-Wl,-rpath-link=
$NDK
/platforms/
$PLATFORMVER
/arch-arm/usr/lib -lsupc++
\
$CRYSTAX_WCHAR_LIB
"
env
PATH
=
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin:
$LOCAL_PATH
:
$PATH
\
CFLAGS
=
"
$CFLAGS
"
\
CXXFLAGS
=
"
$CFLAGS
"
\
LDFLAGS
=
"
$LDFLAGS
"
\
CC
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-gcc"
\
CXX
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-g++"
\
RANLIB
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-ranlib"
\
LD
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-g++"
\
AR
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-ar"
\
CPP
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-cpp
$CFLAGS
"
\
NM
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-nm"
\
AS
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-as"
\
STRIP
=
"
$NDK
/toolchains/
$GCCPREFIX
-
$GCCVER
/prebuilt/
$MYARCH
/bin/
$GCCPREFIX
-strip"
\
"
$@
"
android/setEnvironment.sh
0 → 100755
View file @
d2cd0de6
#!/bin/sh
# Set here your own NDK path if needed
# export PATH=$PATH:~/src/endless_space/android-ndk-r4b
# export PATH=$PATH:~/src/endless_space/android-ndk-r5b
IFS
=
'
'
NDK
=
`
which ndk-build
`
NDK
=
`
dirname
$NDK
`
LOCAL_PATH
=
`
dirname
$0
`
LOCAL_PATH
=
`
cd
$LOCAL_PATH
&&
pwd
`
SCRIPT
=
setEnvironment-r4b.sh
CRYSTAX_WCHAR
=
if
[
-n
"
`
echo
$NDK
|
grep
'android-ndk-r[56]'
`
"
]
;
then
SCRIPT
=
setEnvironment-r5b.sh
if
[
-n
"
`
echo
$NDK
|
grep
'android-ndk-r5-crystax-1'
`
"
]
;
then
CRYSTAX_WCHAR
=
1
fi
fi
env
CRYSTAX_WCHAR
=
$CRYSTAX_WCHAR
$LOCAL_PATH
/
$SCRIPT
"
$@
"
build_android.sh
0 → 100644
View file @
d2cd0de6
#!/bin/sh
LOCAL_PATH
=
`
dirname
$0
`
LOCAL_PATH
=
`
cd
$LOCAL_PATH
&&
pwd
`
ln
-sf
libsdl-1.2.so
$LOCAL_PATH
/../../../obj/local/armeabi/libSDL.so
if
[
\!
-f
configure
]
;
then
sh
-c
"./bootstrap.sh"
fi
if
[
\!
-f
Makefile
]
;
then
# Set here your own NDK path if needed
# export PATH=$PATH:~/src/endless_space/android-ndk-r4b
# export PATH=$PATH:~/src/endless_space/android-ndk-r5b
IFS
=
'
'
NDK
=
`
which ndk-build
`
NDK
=
`
dirname
$NDK
`
LOCAL_PATH
=
`
dirname
$0
`
LOCAL_PATH
=
`
cd
$LOCAL_PATH
&&
pwd
`
SCRIPT
=
setEnvironment-r4b.sh
CRYSTAX_WCHAR
=
if
[
-n
"
`
echo
$NDK
|
grep
'android-ndk-r[56]'
`
"
]
;
then
SCRIPT
=
setEnvironment-r5b.sh
if
[
-n
"
`
echo
$NDK
|
grep
'android-ndk-r5-crystax-1'
`
"
]
;
then
CRYSTAX_WCHAR
=
1
fi
fi
env
CRYSTAX_WCHAR
=
$CRYSTAX_WCHAR
$LOCAL_PATH
/
$SCRIPT
"
$@
"
./android/setEnvironment.sh sh
-c
"./configure --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi --with-sdl --with-sdl-sound --with-sdl-gfx --with-sdl-gui"
fi
make
-C
PUAE
&&
mv
-f
src/uae libapplication.so
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment