diff options
author | Greg Ward <gward@python.net> | 2000-05-20 13:31:32 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-05-20 13:31:32 (GMT) |
commit | f7edea749d51abe6a6be7b3376447e140344c42e (patch) | |
tree | e336e0159b036462c2b4e1c54e835b74975e796f /Lib/distutils | |
parent | 5299b6afc568ac19917b93032295ad8bfbdfc711 (diff) | |
download | cpython-f7edea749d51abe6a6be7b3376447e140344c42e.zip cpython-f7edea749d51abe6a6be7b3376447e140344c42e.tar.gz cpython-f7edea749d51abe6a6be7b3376447e140344c42e.tar.bz2 |
Lyle Johnson: added stubs for the four miscellaneous methods that must be
implemented by subclasses, since they are needed by 'gen_lib_options()'.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/ccompiler.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 51f5ae0..4222176 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -575,6 +575,33 @@ class CCompiler: + # -- Miscellaneous methods ----------------------------------------- + # These are all used by the 'gen_lib_options() function; there is + # no appropriate default implementation so subclasses should + # implement all of these. + + def library_dir_option (self, dir): + """Return the compiler option to add 'dir' to the list of directories + searched for libraries.""" + raise NotImplementedError + + def runtime_library_dir_option (self, dir): + """Return the compiler option to add 'dir' to the list of directories + searched for runtime libraries.""" + raise NotImplementedError + + def library_option (self, lib): + """Return the compiler option to add 'dir' to the list of libraries + linked into the shared library or executable.""" + raise NotImplementedError + + def find_library_file (self, dirs, lib): + """Search the specified list of directories for a static or shared + library file 'lib' and return the full path to that file. Return + None if it wasn't found in any of the specified directories.""" + raise NotImplementedError + + # -- Filename generation methods ----------------------------------- # The default implementation of the filename generating methods are |