Aaron Culliney
c0a4ced573
Silence a LOG
2016-10-23 18:30:08 -07:00
Aaron Culliney
f6e2ebc028
Add testui target for Android
2016-10-15 19:29:15 -07:00
Aaron Culliney
039063d9b0
Fix test build break
2016-10-15 19:16:12 -07:00
Aaron Culliney
c80e16de3b
Unbreak tests on Android
2016-10-09 12:21:41 -07:00
Aaron Culliney
1a6c1292f3
Fix Android native build script on Mac
...
- Darwin/BSD 'wc' utility injects extra whitespace, so strip it out
2016-08-21 08:51:15 -10:00
Aaron Culliney
838bf0496a
Include Mac breakpad binaries for CLI native builds from Mac development box
...
- NOTE : Darwin dump_syms is really 'dump_syms_elf' from my copy of Breakpad
2016-08-21 08:51:05 -10:00
Aaron Culliney
2f156d4262
Improve genglue.sh script for generating trampoline functions
2016-07-23 17:24:10 -07:00
Aaron Culliney
fc9ad6d4e1
Excise unused preprocessor macro
2016-07-23 17:23:58 -07:00
Aaron Culliney
cc9a164bec
Audio codepaths now always enabled
...
- Supported platforms:
- Mac/iOS (OpenAL)
- Desktop Linux/POSIX (OpenAL)
- Android (OpenSLES)
- TODO : for POSIX builds we should provide our own "null" audio backend if OpenAL/OpenSL not found by build script
2016-07-23 17:23:54 -07:00
Aaron Culliney
06f8015959
Misc fixes for test stubs
2016-07-23 17:23:36 -07:00
Aaron Culliney
abfa461227
Misc stuff for Android build
2016-05-08 13:39:17 -07:00
Aaron Culliney
b8ab6e2be0
Fix testcpu build break when targeting latest NDK
2016-05-08 12:33:00 -07:00
Aaron Culliney
093c99466f
Various tweaks to get release build working
2016-05-08 12:06:57 -07:00
Aaron Culliney
edaab3e110
Experiment with -Os optimization level
2016-05-05 21:55:12 -07:00
Aaron Culliney
ab59b089d9
Revert to using GCC 4.9 toolchain for Android because GCC can x86!
...
- While LLVM/Clang appears to be very stable with codegen for ARM architectures, I have trust issues with Clang
producing optimized codegen for the 32bit x86 architecture.
- I have witnessed a number of examples where Clang generates invalid x86 code for both Chromium Breakpad and JSMN
in this project, as well as similar issues discovered at the day job. (This is for the LLVM toolchain in the
latest NDK as well as previous ones)
2016-05-05 20:45:24 -07:00
Aaron Culliney
d2261815a1
Do not build for Android x86_64
...
- I have only 32bit native and 64bit-running-PAE devices for testing
- Paraphrasing Billy G, "32 bits ought to be enough for anybody"
2016-05-04 21:48:57 -07:00
Aaron Culliney
13701b5497
Add a few more crash tests for Android
2016-05-04 21:48:27 -07:00
Aaron Culliney
7b3eabb12f
Fix x86 and x86_64 __PIC__ code for Linux and Mac
2016-05-01 18:49:18 -07:00
Aaron Culliney
a5a498f96c
Tweaks for arch builds
2016-04-21 22:06:42 -07:00
Aaron Culliney
7607126f7c
Avoid resetting joystick buttons too soon (to allow for ClosedApple-Reset to trigger)
2016-04-17 12:51:23 -07:00
Aaron Culliney
76f29d0865
Allow emulator shutdown state to be queried as needed
2016-04-17 12:18:48 -07:00
Aaron Culliney
3ed159dd0b
Lightly refactor joystick and button handling during reset
...
- Remove unused button2 variable
- Remake little-used backend joystick reset function as function pointer
- Allow soft reset and self-test on Android (although there is still a race condition due to code that directly sets
joy_button[12] values
2016-04-17 11:42:13 -07:00
Aaron Culliney
2a405f028f
Streamline and fix test codepaths on Desktop Linux and Android
2016-04-13 19:33:08 -07:00
Aaron Culliney
9c1cfedf7d
Fix some envvars on Android
2016-04-12 22:16:01 -07:00
Aaron Culliney
db816ad502
Refactor Android variant to use common shared JSON preferences
...
- Eliminates a whole bunch of boilerplate setter/getter code in various places
- Accesses preferences directly from JSON data through custom json_parse.h API
- Improves code locality for Java menus/settings
2016-04-11 22:01:30 -07:00
Aaron Culliney
b87273e742
Expand coverage of heap memory checking of debug builds and simplify FREE() calls
2016-02-26 21:26:57 -08:00
Aaron Culliney
3120b75e00
Enforce module ctor priorities
2016-02-22 22:41:37 -08:00
Aaron Culliney
c5ed0bb5c6
Switch Android toolchain to stable Clang
2016-02-20 13:48:00 -08:00
Aaron Culliney
15d64cf24e
Render thread will actually eject the disks through emulator_shutdown()
2016-02-20 11:09:24 -08:00
Aaron Culliney
dcbf1ace18
Remove an assertion that can be wrong if user is spamming app lifecycle backgrounding/foregrounding
...
- Unlikely to be a real problem if CPU thread is not paused when we are initializing the render thread
2016-02-20 11:07:29 -08:00
Aaron Culliney
545376b1be
Improve testcpu on desktop and fix it on Android
2016-02-15 13:32:05 -08:00
Aaron Culliney
829291feba
Refactor all drawing to run on video thread in one scanner pass
...
- Moves extra work off CPU/audio thread
- Prepares the way to possibly remove the vestigal intermediate indexed framebuffer and do direct RGBA_8888 writes
to XImage or OpenGL texture
- Prepares the ground for possible better emulation of video scanner hardware
Conflicts:
src/display.c
src/video/glvideo.c
src/video/video.h
2016-02-15 13:29:58 -08:00
Aaron Culliney
bd9b38cd65
Allow calibration of portrait mode on Android
2016-02-14 20:40:51 -08:00
Aaron Culliney
261ae2efae
Refactor to not use video_backend in so many places
2016-02-07 14:42:32 -08:00
Aaron Culliney
5fec80a33a
Refactor video_shutdown() to appease Valgrind
...
- This likely breaks Darwin ports ... will fix soon[ish]
2016-02-07 14:42:28 -08:00
Aaron Culliney
edaae0bc89
Refactor glvideo to be the root glnode, begin to privatize video_backend APIs
2016-02-07 14:42:16 -08:00
Aaron Culliney
1358a52eee
Add but disable CPU trace on Android
2016-01-24 09:47:57 -08:00
Aaron Culliney
0bb0df0960
Support building Android version in release mode (without -g and with -DNDEBUG=1)
2016-01-03 13:59:52 -08:00
Aaron Culliney
c2014e2cde
Add simple display of touch joystick azimuth
2016-01-03 12:36:13 -08:00
Aaron Culliney
2ec88ad433
Iterate on GLTouchJoystick
...
- Use smaller models/textures
- Slightly change the joystick/kpad glyphs
2016-01-02 15:08:06 -08:00
Aaron Culliney
b59672815f
Allow setting keyboard and HUD menu glyph scale
2016-01-02 00:14:21 -08:00
Aaron Culliney
904d89aff8
Get touch menu min/max alpha matching touch keyboard
2016-01-01 21:38:35 -08:00
Aaron Culliney
abae59767c
Enable simple heap memory fencing/scribbling in debug builds
2015-12-31 22:50:43 -08:00
Aaron Culliney
145b6a6cef
Refactor JNI plumbing for consistency
2015-12-20 12:54:27 -08:00
Aaron Culliney
22b1bc9ad8
Move key handling back to the Activity, otherwise we don't seem to receive onKeyUp() for the Android back button
2015-12-20 12:11:12 -08:00
Aaron Culliney
2f7f7bd359
Preliminary support for mapping an Android physical gamepad/joystick to emulated Apple //e joystick
...
- No support for custom joystick/gamepad configurations (yet)
2015-12-19 23:59:02 -08:00
Aaron Culliney
3ff877d80c
Refactor : move event handling into custom view
2015-12-19 23:13:52 -08:00
Aaron Culliney
13de08f8cb
map L1 and R1 keys to joy buttons
2015-12-19 23:13:44 -08:00
Aaron Culliney
1e573c34ad
Meager support for Android joystick/gamepad keys
2015-12-19 13:14:46 -08:00
Aaron Culliney
2c8284d41f
Start running tests on Android after first resume
...
- This allows for a more consistent test environment (test disks copied out of APK and available, etc) and also
mimics main app behavior
2015-12-16 20:59:20 -08:00