forked from facebook/SoLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for shared object name mapping in SoLoader
Summary: The class MergedSoMapping is responsible for mapping library names and invoking the proper JNI_OnLoad. The default implementation simply reports that no libraries are merged, so there is no change in behavior. Differential Revision: D3845378 fbshipit-source-id: 9f31b3419255568361a8dcbcb31b36e34d3a7177
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2004-present Facebook. All Rights Reserved. | ||
|
||
package com.facebook.soloader; | ||
|
||
class MergedSoMapping { | ||
static String mapLibName(String preMergedLibName) { | ||
return null; | ||
} | ||
|
||
static void invokeJniOnload(String preMergedLibName) { | ||
throw new IllegalArgumentException( | ||
"Unknown library: " + preMergedLibName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters