Skip to content

mkn-mod/lang.swig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lang.swig

** swig maiken module **

Compile phase module

Prerequisites

maiken

Usage

mod:
- name: lang.swig
  compile:              # calls swig-config --includes
    src: $file1 $file2  # no default, one file required
    conf: $str          # default: "-python -c++"
    inc: $dir0 $dir1    # add directories for header scanning
    outdir: $dir        # location of generated integration files - default src directory
    objdir: $dir        # location of generated source file - default src directory
    outfile: $file      # filename override for generated source file
    lang:               # default "cpp"

Building

Windows cl:

mkn clean build -tSa -EHsc -d

*nix gcc:

mkn clean build -tSa "-O2 -fPIC" -d -l "-pthread -ldl"

Testing

Windows cl:

mkn clean build -tSa -EHsc -dp test run

*nix gcc:

mkn clean build -tSa "-O2 -fPIC" -dp test -l "-pthread -ldl" run

Environment Variables

Key             SWIG
Type            string
Default         ""
Description     If set - uses string as command call instead of "swig"

Key             PYTHON
Type            string
Default         "python3"
Description     Name of python3 interpreter

Key             PY3_CONFIG
Type            string
Default         "python3-config"
Description     Used for python info if found

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages