Browse Source

Fix target extension on android for shared-library (#2175)

* Fix target extension on android for shared-library

* Add soname for linker

To avoid runtime dlopen() errors
Mohamed Shazan 5 years ago
parent
commit
c6e4f528cb
1 changed files with 8 additions and 0 deletions
  1. 8 0
      scripts/bgfx.lua

+ 8 - 0
scripts/bgfx.lua

@@ -69,6 +69,14 @@ function bgfxProjectBase(_kind, _defines)
 				"GL",
 				"GL",
 				"pthread",
 				"pthread",
 			}
 			}
+		configuration { "android*" }
+			targetextension ".so"
+		
+		configuration { "android*" ,"Debug"}
+			linkoptions{"-soname libbgfx-shared-libDebug.so"  }
+
+		configuration { "android*" ,"Release"}
+			linkoptions{"-soname libbgfx-shared-libRelease.so"  }
 
 
 		configuration {}
 		configuration {}
 	end
 	end