Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ruslan Baratov
CMake
Commits
eb2cb351
Commit
eb2cb351
authored
Aug 28, 2016
by
Ruslan Baratov
Browse files
Add ANDROID_GDBSERVER variable
parent
4ce52abc
Pipeline
#23834
passed with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Help/variable/ANDROID_GDBSERVER.rst
0 → 100644
View file @
eb2cb351
ANDROID_GDBSERVER
-----------------
When :ref:`Cross Compiling for Android with the NDK`, this variable holds
the absolute path to the ``gdbserver``.
Modules/Platform/Android-Initialize.cmake
View file @
eb2cb351
#=============================================================================
# Copyright 2015-2016 Kitware, Inc.
# Copyright 2016 Ruslan Baratov
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
...
...
@@ -49,3 +50,16 @@ else()
endif
()
set
(
CMAKE_BUILD_TYPE_INIT Debug
)
if
(
CMAKE_ANDROID_NDK
)
set
(
ANDROID_GDBSERVER
"
${
CMAKE_ANDROID_NDK
}
/prebuilt/android-
${
CMAKE_ANDROID_ARCH
}
/gdbserver/gdbserver"
CACHE
FILEPATH
"Path to gdbserver"
)
if
(
NOT EXISTS
"
${
ANDROID_GDBSERVER
}
"
)
message
(
WARNING
"gdbserver not found:
${
ANDROID_GDBSERVER
}
"
)
endif
()
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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