• Emanuele Aina's avatar
    Makefile: Add missing dep on the generated DBus header file · 41321ec8
    Emanuele Aina authored
    The `helloworld-simple-agent.c` source file includes `helloworld-tick-board.h`
    which in turn includes the generated
    `org.apertis.HelloWorld.SimpleAgent.TickBoard.h` header file.
    
    However, `gdbus-gen` is only called to generate the TickBoard header when
    building the `libhelloworld-simple-agent-generated.la` internal library, while
    `helloworld-simple-agent.c` is part of
    `libhelloworld-simple-agent-internal.la`.
    
    While this used to work by chance, newer Make chooses a different ordering
    leading to the error below:
    
          CC       helloworld-simple-agent/main.o
          CC       helloworld-simple-agent/helloworld-simple-agent.lo
        In file included from helloworld-simple-agent/helloworld-simple-agent.c:12:
        helloworld-simple-agent/helloworld-tick-board.h:17:10: fatal error: org.apertis.HelloWorld.SimpleAgent.TickBoard.h: No such file or directory
         #include "org.apertis.HelloWorld.SimpleAgent.TickBoard.h"
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        compilation terminated.
    
    To avoid the issue, add the generated source files to the automake
    `BUILT_SOURCES` variable so they get generated before the actual
    compilation begins.
    Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
    41321ec8
Name
Last commit
Last update
SDKConfig Loading commit data...
helloworld-simple-agent Loading commit data...
tests Loading commit data...
.arcconfig Loading commit data...
.arclint Loading commit data...
.clang-format Loading commit data...
.cproject Loading commit data...
.project Loading commit data...
COPYING Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
git.mk Loading commit data...
glib-tap.mk Loading commit data...
helloworld-simple-agent.doap Loading commit data...
tap-test Loading commit data...