Skip to content

Commit

Permalink
SWIG: fix compilation of Java Component and correct outpath for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 5, 2018
1 parent 7ac8758 commit 7de80a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Components/Java/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${OGRE_BINARY_DIR}/java/libs")
set(CMAKE_SWIG_OUTDIR "${OGRE_BINARY_DIR}/java/src/org/Ogre")

if(ANDROID)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${ANDROID_NDK_OUTPUT_ABI_NAME}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${ANDROID_NDK_ABI_NAME}")
list(APPEND CMAKE_SWIG_FLAGS -D__ANDROID__)
endif()

Expand Down
2 changes: 1 addition & 1 deletion OgreMain/include/Ogre.i
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ SHARED_PTR(HardwareUniformBuffer);
%ignore Ogre::ResourceGroupManager::openResource(const String&, const String&, bool, Resource*) const;
%ignore Ogre::ResourceGroupManager::openResource(const String&, const String&, bool) const;
%include "OgreResourceGroupManager.h"
#if SWIG_VERSION < 0x030012
#if SWIG_VERSION < 0x030012 || defined(SWIGJAVA)
// conflicts with overloaded versions (GpuProgram, Texture)
%ignore Ogre::ResourceManager::getResourceByName;
%ignore Ogre::ResourceManager::createOrRetrieve;
Expand Down

0 comments on commit 7de80a7

Please sign in to comment.