Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Clear ANDROID_* environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Nov 11, 2016
1 parent f8d96bb commit 8dfaee7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/clear-all.cmake
Expand Up @@ -301,6 +301,11 @@ unset(ENV{ANDROID_SDK_ROOT})
unset(ENV{ANDROID_API_VERSION})
unset(ENV{ANDROID_HOME})

# https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-android
unset(ENV{ANDROID_NDK})
unset(ENV{ANDROID_NDK_ROOT})
unset(ENV{ANDROID_STANDALONE_TOOLCHAIN})

# See clear-all.sh for more info {
unset(ENV{PKG_CONFIG_PATH})
unset(ENV{PKG_CONFIG_DEBUG_SPEW})
Expand Down
5 changes: 5 additions & 0 deletions scripts/clear-all.sh
Expand Up @@ -303,6 +303,11 @@ unset PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
unset PKG_CONFIG_ALLOW_SYSTEM_LIBS
unset PKG_CONFIG_SYSROOT_DIR

# https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-android
unset ANDROID_NDK
unset ANDROID_NDK_ROOT
unset ANDROID_STANDALONE_TOOLCHAIN

# This variable should be set to empty.
# Example from Ubuntu:
# > (unset PKG_CONFIG_LIBDIR && pkg-config --cflags xorg-wacom) # return default path!
Expand Down

0 comments on commit 8dfaee7

Please sign in to comment.