diff options
Diffstat (limited to 'src/vhdl/python/libghdl/__init__.py')
-rw-r--r-- | src/vhdl/python/libghdl/__init__.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/vhdl/python/libghdl/__init__.py b/src/vhdl/python/libghdl/__init__.py deleted file mode 100644 index 9bae63a8e..000000000 --- a/src/vhdl/python/libghdl/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -import ctypes -import os.path -from libghdl.config import libghdl_filename - -# Load the DLL. -_basedir = os.path.dirname(__file__) -libghdl = ctypes.CDLL(os.path.join(_basedir, libghdl_filename)) - -# Low-level initialization (elaboration). -libghdl.libghdl_init() - -# Set the default prefix. -if False: - _prefix = os.path.join(_basedir, "ghdl") - _prefix_opt = ("--PREFIX=" + _prefix).encode('utf-8') - libghdl.libghdl__set_option( - ctypes.c_char_p(_prefix_opt), len(_prefix_opt)) - -# libghdl - -_set_option = libghdl.libghdl__set_option -_analyze_file = libghdl.libghdl__analyze_file - - -def set_option(opt): - return _set_option(ctypes.c_char_p(opt), len(opt)) - - -def analyze_init(): - return libghdl.libghdl__analyze_init() - - -def analyze_file(filename): - return _analyze_file(ctypes.c_char_p(filename), len(filename)) |