aboutsummaryrefslogtreecommitdiffstats
path: root/emulator/opengl/shared/emugl/common/shared_library.h
diff options
context:
space:
mode:
Diffstat (limited to 'emulator/opengl/shared/emugl/common/shared_library.h')
-rw-r--r--emulator/opengl/shared/emugl/common/shared_library.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/emulator/opengl/shared/emugl/common/shared_library.h b/emulator/opengl/shared/emugl/common/shared_library.h
index 38d25bd..f1d82fc 100644
--- a/emulator/opengl/shared/emugl/common/shared_library.h
+++ b/emulator/opengl/shared/emugl/common/shared_library.h
@@ -38,9 +38,16 @@ namespace emugl {
//
class SharedLibrary {
public:
- // Open a given library. |libraryName| can be either a full library
- // path, or a simple name without an extension. On success, returns
- // a new SharedLibrary instance that must be deleted by the caller.
+ // Open a given library. If |libraryName| has no extension, a
+ // platform-appropriate extension is added and that path is opened.
+ // If the |libraryName| has an extension, that form is opened.
+ //
+ // On OSX, some libraries don't include an extension (notably OpenGL)
+ // On OSX we try to open |libraryName| first. If that doesn't exist,
+ // we try |libraryName|.dylib
+ //
+ // On success, returns a new SharedLibrary instance that must be
+ // deleted by the caller.
static SharedLibrary* open(const char* libraryName);
// Closes an existing SharedLibrary instance.