1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-01 01:32:04 +03:00
vimr/third-party
2020-08-24 10:12:37 +02:00
..
deps Fix ag building 2020-08-24 10:12:37 +02:00
lib Refactor build scripts 2020-08-21 08:59:40 +02:00
libag Refactor build scripts 2020-08-21 08:59:40 +02:00
libpcre Refactor build scripts 2020-08-21 08:59:40 +02:00
utils Refactor build scripts 2020-08-21 08:59:40 +02:00
__init__.py Refactor build scripts 2020-08-21 08:59:40 +02:00
.python-version Refactor build scripts 2020-08-21 08:59:40 +02:00
build.py Fix ag building 2020-08-24 10:12:37 +02:00
builder.py Refactor slightly 2020-08-24 09:11:49 +02:00
config.py Refactor build scripts 2020-08-21 08:59:40 +02:00
README.md Refactor build scripts 2020-08-21 08:59:40 +02:00
requirements.txt Refactor build scripts 2020-08-21 08:59:40 +02:00
setup.py Refactor build scripts 2020-08-21 08:59:40 +02:00

How to use

  • cd into /third-party, this directory.
  • Install pyenv and pyenv-virtuelenv.
  • Install Python 3.8.x using pyenv.
  • Create a virtualenv with the name com.qvacua.VimR.third-party.
  • Ensure that you're running the Python in the virtualenv by
    $ pyenv which python
    /${HOME}/.pyenv/versions/com.qvacua.VimR.third-party/bin/python
    
  • Do the following
    $ python setup.py develop
    
  • Run build.py with, for example, the following arguments
    $ python build.py --arm64-deployment-target=11.00 --x86_64-deployment-target=10.13 \
                      --xz-version 5.2.4 --pcre-version 8.43 --ag-version 2.2.0
    

Built artifacts

The resulting artifacts are structured as follows

third-party
    lib
        liba.a
        libb.a
        ...
    liba
        include
            a.h
            ...
    libb
        include
            b.h
            ...

IntelliJ settings

  • Open /third-party, this directory.
  • Add the virtualenv com.qvacua.VimR.third-party as Python SDK.
  • Set the project SDK to the virtualenv.
  • Set the content root to Sources
  • Optional: Set all install paths, i.e. lib*/ to Excluded.