Skip to content
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

Use Mobile_API files from RPC Spec submodule #3270

Merged
merged 6 commits into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ src/appMain/build_config.txt
*venv*
*.DS_Store
*htmlcov
*.coverage
*.coverage
src/components/interfaces/MOBILE_API.*
9 changes: 9 additions & 0 deletions src/components/interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

# Copy RPC spec submodule files to interfaces directory
if(EXISTS ${CMAKE_SOURCE_DIR}/tools/rpc_spec/)
execute_process(COMMAND cp ${CMAKE_SOURCE_DIR}/tools/rpc_spec/MOBILE_API.xml ${CMAKE_CURRENT_SOURCE_DIR}/)
execute_process(COMMAND cp ${CMAKE_SOURCE_DIR}/tools/rpc_spec/MOBILE_API.xsd ${CMAKE_CURRENT_SOURCE_DIR}/)
else ()
message( FATAL_ERROR "Missing the RPC Spec submodule" )
message( FATAL_ERROR "Please run `git submodule update --init` in the SDL Core source directory" )
endif ()

include(${CMAKE_SOURCE_DIR}/tools/cmake/helpers/generators.cmake)

include_directories (
Expand Down
Loading