-
Notifications
You must be signed in to change notification settings - Fork 87
Android build #1804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Farmer-Markus
wants to merge
26
commits into
Return-To-The-Roots:master
Choose a base branch
from
Farmer-Markus:android
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Android build #1804
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
d41850d
use CMAKE_CURRENT_SOURCE_DIR
Farmer-Markus 7212e35
first time running
Farmer-Markus 154dbc4
Allow overriting paths using enviroment variables
Farmer-Markus b9c1b8f
revoked some changes
Farmer-Markus 48e4345
Added gles support using gl4es
Farmer-Markus ebb1b78
Fixed crash on windows without borders
Farmer-Markus b536a73
Fixed small mistake
Farmer-Markus 81098a6
Added Natural mouse mode and basic touch controls
Farmer-Markus 2992c4a
Fixed some issues
Farmer-Markus 107d540
Fixed formatting
Farmer-Markus 4988c05
Fixed formatting (again)
Farmer-Markus 4e32c59
Fixed Natural mouse movement with gui scale
Farmer-Markus 821db6f
Added touch zoom and fixed gl4es lightning
Farmer-Markus 82cca08
Fixed formatting
Farmer-Markus 152da4c
Changed dbl click timing on touch
Farmer-Markus a9e90cd
Fixed dbl click bug
Farmer-Markus 1ca1b58
Added test for touch movement
Farmer-Markus 73004a5
Changed default Settings for Android
Farmer-Markus 8d00021
Revised previous changes
Farmer-Markus bb0f187
Fixed formatting
Farmer-Markus c3507f0
Fixed formatting
Farmer-Markus 9c0b200
Added tests for cfg envOverride and touch dblClick
Farmer-Markus 7d5c270
Fixed formatting
Farmer-Markus 62d71ba
Changed dblick close window behaviour
Farmer-Markus f14d60d
Fixed formatting
Farmer-Markus 1556dcc
minor changes
Farmer-Markus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
| .DS_Store | ||
| .vscode | ||
| .vs | ||
| .cache | ||
| /S2 | ||
| /build | ||
| /external/boost* | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,4 @@ rttr_set_output_dir(RUNTIME ${RTTR_DRIVERDIR}/video) | |
| rttr_set_output_dir(LIBRARY ${RTTR_DRIVERDIR}/video) | ||
|
|
||
| add_subdirectory(WinAPI) | ||
| add_subdirectory(SDL2) | ||
| add_subdirectory(SDL2) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated change |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,26 @@ find_package(SDL2 2.0.5) | |
|
|
||
| if(SDL2_FOUND) | ||
| add_library(videoSDL2 SHARED ${RTTR_DRIVER_INTERFACE} VideoSDL2.cpp VideoSDL2.h icon.h icon.cpp) | ||
| target_link_libraries(videoSDL2 PRIVATE videodrv s25util::common glad Boost::nowide SDL2::SDL2) | ||
|
|
||
| if(RTTR_OPENGL STREQUAL "GL4ES") | ||
| if(NOT TARGET GL) | ||
| message(STATUS "Fetching gl4es from repository...") | ||
| include(FetchContent) | ||
| FetchContent_Declare( | ||
| gl4es | ||
| GIT_REPOSITORY https://github.com/ptitSeb/gl4es | ||
| GIT_TAG master | ||
| ) | ||
| FetchContent_MakeAvailable(gl4es) | ||
| target_include_directories(videoSDL2 PRIVATE | ||
| ${gl4es_SOURCE_DIR}/include | ||
| ) | ||
| endif() | ||
| # gl4es generates "GL" library | ||
| target_link_libraries(videoSDL2 PRIVATE videodrv s25util::common glad Boost::nowide SDL2::SDL2 GL) | ||
| else() | ||
| target_link_libraries(videoSDL2 PRIVATE videodrv s25util::common glad Boost::nowide SDL2::SDL2) | ||
| endif() | ||
| enable_warnings(videoSDL2) | ||
|
|
||
| if(WIN32) | ||
|
|
@@ -20,4 +39,4 @@ if(SDL2_FOUND) | |
| LIBRARY DESTINATION ${RTTR_DRIVERDIR}/video | ||
| ) | ||
| add_dependencies(drivers videoSDL2) | ||
| endif() | ||
| endif() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unrelated change |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.