diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-05 21:44:46 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-22 16:57:43 +0100 |
commit | 927e96326c195ad39a45b091f98e9c635f400982 (patch) | |
tree | 21e9ea5753b59d4efb34f437d24b5d4eb0112ff8 /Makefile.am | |
parent | 89f603f5d83e519fcbd633928e203b1e6457114c (diff) |
python: add systemd.id128 module
uuid.UUIDs are utilized to hold UUID values.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 10934eba77..42d35441ea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3380,7 +3380,8 @@ EXTRA_DIST += \ # ------------------------------------------------------------------------------ if HAVE_PYTHON_DEVEL pkgpyexec_LTLIBRARIES = \ - _journal.la + _journal.la \ + id128.la _journal_la_SOURCES = \ src/python-systemd/_journal.c @@ -3400,9 +3401,36 @@ _journal_la_LIBADD = \ $(PYTHON_LIBS) \ libsystemd-journal.la +id128_la_SOURCES = \ + src/python-systemd/id128.c \ + src/python-systemd/id128-constants.h + +id128_la_CFLAGS = \ + $(AM_CFLAGS) \ + -fvisibility=default \ + $(PYTHON_CFLAGS) \ + -I$(top_builddir)/src/python-systemd + +id128_la_LDFLAGS = \ + $(AM_LDFLAGS) \ + -shared \ + -module \ + -avoid-version + +id128_la_LIBADD = \ + $(PYTHON_LIBS) \ + libsystemd-id128.la + dist_pkgpyexec_PYTHON = \ src/python-systemd/journal.py \ src/python-systemd/__init__.py + +src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile + $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1);/p' <$< >$@ + +BUILT_SOURCES += \ + src/python-systemd/id128-constants.h endif # ------------------------------------------------------------------------------ |