python builddeps

This commit is contained in:
Devaev Maxim
2021-01-21 09:27:29 +03:00
parent b7b3e8e87d
commit c3f98b34f2
2 changed files with 5 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ $(BUILD)/%.o: %.c
python: python:
ifneq ($(call optbool,$(WITH_PYTHON)),) ifneq ($(call optbool,$(WITH_PYTHON)),)
$(info == PY_BUILD ustreamer-*.so) $(info == PY_BUILD ustreamer-*.so)
@ cd python && $(PY) setup.py --quiet build @ cd python && $(PY) setup.py build
@ ln -sf python/build/lib.*/*.so . @ ln -sf python/build/lib.*/*.so .
else else
@ true @ true

View File

@@ -17,6 +17,10 @@ if __name__ == "__main__":
libraries=["rt", "m", "pthread"], libraries=["rt", "m", "pthread"],
undef_macros=["NDEBUG"], undef_macros=["NDEBUG"],
sources=["ustreamer.c"], sources=["ustreamer.c"],
depends=[
"../src/libs/tools.h",
"../src/libs/memsinksh.h",
],
), ),
], ],
) )