Commit c555a99d authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner

Allow excluding some modules from checks

parent 37ed327f
...@@ -60,7 +60,7 @@ endif ...@@ -60,7 +60,7 @@ endif
define COMMON_REGISTER define COMMON_REGISTER
$(1): $$(patsubst %,$(O)/.objs/$(3)%.o,$$($(2)_MODULES)) $(1): $$(patsubst %,$(O)/.objs/$(3)%.o,$$($(2)_MODULES) $$($(2)_MODULES_3RDPARTY))
$(1): CFLAGS_ALL += $$($(2)_CFLAGS) $$(foreach CONFIG,$$($(2)_PKG_CONFIGS),$$(shell pkg-config --cflags $$(CONFIG))) $$(foreach CONFIG,$$($(2)_EXE_CONFIGS),$$(shell $$(CONFIG)-config --cflags)) $(1): CFLAGS_ALL += $$($(2)_CFLAGS) $$(foreach CONFIG,$$($(2)_PKG_CONFIGS),$$(shell pkg-config --cflags $$(CONFIG))) $$(foreach CONFIG,$$($(2)_EXE_CONFIGS),$$(shell $$(CONFIG)-config --cflags))
$(1): LDFLAGS_ALL += $$($(2)_LDFLAGS) $$(foreach CONFIG,$$($(2)_PKG_CONFIGS),$$(shell pkg-config --libs $$(CONFIG))) $$(foreach CONFIG,$$($(2)_EXE_CONFIGS),$$(shell $$(CONFIG)-config --libs)) $(1): LDFLAGS_ALL += $$($(2)_LDFLAGS) $$(foreach CONFIG,$$($(2)_PKG_CONFIGS),$$(shell pkg-config --libs $$(CONFIG))) $$(foreach CONFIG,$$($(2)_EXE_CONFIGS),$$(shell $$(CONFIG)-config --libs))
ifdef STATIC_GLOBAL ifdef STATIC_GLOBAL
......
...@@ -60,7 +60,7 @@ following code: ...@@ -60,7 +60,7 @@ following code:
# List sources. Without the .c at the end or path. The input files # List sources. Without the .c at the end or path. The input files
# don't need to be unique, so there can be another main.c in other # don't need to be unique, so there can be another main.c in other
# directory. You don't list the headers. # directory. You don't list the headers.
hello_world_SOURCES := \ hello_world_MODULES := \
main \ main \
hello \ hello \
world world
...@@ -77,12 +77,17 @@ following code: ...@@ -77,12 +77,17 @@ following code:
# the dependencies against the local libraries can be tracked. # the dependencies against the local libraries can be tracked.
hello_world_LOCAL_LIBS := libworld hello_world_LOCAL_LIBS := libworld
Only the `_SOURCES` variable is mandatory. You can create a shared Only the `_MODULES` variable is mandatory. You can create a shared
library the same way, it is only appended to `LIBRARIES` instead to library the same way, it is only appended to `LIBRARIES` instead to
`BINARIES`. Also, if you want to let the build system know about a `BINARIES`. Also, if you want to let the build system know about a
binary, but not build it by default (needed for the `check` target, binary, but not build it by default (needed for the `check` target,
for example), you can use `BINARIES_NOTARGET`. for example), you can use `BINARIES_NOTARGET`.
The variable `_MODULES_3RDPARTY` is similar to `_MODULES`, but is
excluded from some checks (like `cppcheck`). The idea is that
third-party software may be included in the compilation, but nobody
wants to fix their style.
You can also generate documentation (`html` from the `txt` by You can also generate documentation (`html` from the `txt` by
asciidoc). It has no variables to influence it and you append them to asciidoc). It has no variables to influence it and you append them to
the `DOCS` variable. the `DOCS` variable.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment