forked from ekumenlabs/roscpp_android
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from Intermodalics/jubeira/automatic_patches
Applying all patches inside patches directory
- Loading branch information
Showing
14 changed files
with
73 additions
and
264 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
if(ANDROID_NDK_TOOLCHAIN_INCLUDED) | ||
return() | ||
endif(ANDROID_NDK_TOOLCHAIN_INCLUDED) | ||
include($ENV{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake) | ||
|
||
# Debug and release flags. | ||
list(REMOVE_ITEM ANDROID_COMPILER_FLAGS -g) | ||
list(APPEND ANDROID_COMPILER_FLAGS_DEBUG -g) | ||
list(APPEND ANDROID_COMPILER_FLAGS_RELWITHDEBINFO -g ${ANDROID_COMPILER_FLAGS_RELEASE}) | ||
|
||
if(ANDROID_TOOLCHAIN STREQUAL clang) | ||
list(APPEND ANDROID_COMPILER_FLAGS_RELWITHDEBINFO -fno-limit-debug-info) | ||
endif() | ||
|
||
# Toolchain ABI specific flags. | ||
string(REPLACE ";" " " ANDROID_COMPILER_FLAGS_RELWITHDEBINFO "${ANDROID_COMPILER_FLAGS_RELWITHDEBINFO}") | ||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "" | ||
CACHE STRING "Flags used by the compiler during relwithdebinfo builds.") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "" | ||
CACHE STRING "Flags used by the compiler during relwithdebinfo builds.") | ||
set(CMAKE_ASM_FLAGS_RELWITHDEBINFO "" | ||
CACHE STRING "Flags used by the compiler during relwithdebinfo builds.") | ||
|
||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${ANDROID_COMPILER_FLAGS_RELWITHDEBINFO} ${CMAKE_C_FLAGS_RELWITHDEBINFO}") | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${ANDROID_COMPILER_FLAGS_RELWITHDEBINFO} ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") | ||
set(CMAKE_ASM_FLAGS_RELWITHDEBINFO "${ANDROID_COMPILER_FLAGS_RELWITHDEBINFO} ${CMAKE_ASM_FLAGS_RELWITHDEBINFO}") |
This file contains 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# Abort script on any failures | ||
set -e | ||
|
||
my_loc="$(cd "$(dirname $0)" && pwd)" | ||
source $my_loc/config.sh | ||
source $my_loc/utils.sh | ||
|
||
if [ $# != 2 ] || [ $1 == '-h' ] || [ $1 == '--help' ]; then | ||
echo "Usage: $0 patch_prefix output_prefix" | ||
echo " example: $0 /home/user/ros_android/patches /home/user/my_workspace/output" | ||
exit 1 | ||
fi | ||
|
||
patch_prefix=$1 | ||
output_prefix=$2 | ||
|
||
echo | ||
echo -e '\e[34mApplying patches.\e[39m' | ||
echo | ||
|
||
for patch_file in $patch_prefix/*.patch; do | ||
apply_patch $patch_file -d $output_prefix | ||
done |
This file contains 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 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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.