Hi, Alex

As you said, it is not-that-elegant bit of code.
But DATADIR is used as a part of CPPFLAGS for compiling c files in tests,
such as libkeymap/libkeymap-test01.c, libkbdfile/libkbdfile-test13.c and others.
sample:

> 
> libkeymap/libkeymap-test01.c: f = fopen( *DATADIR* 
> "/data/libkeymap/charset-keymap0.map",
> "r"); libkeymap/libkeymap-test09.c:   setenv("LOADKEYS_INCLUDE_PATH",
> DATADIR "/data/libkeymap", 1);

libkeymap/ Makefile: (before reset)

> 
> AM_CPPFLAGS = \
> $(CODE_COVERAGE_CPPFLAGS) \
> -I$(top_srcdir)/src/libcommon \
> -I$(top_srcdir)/src/libkbdfile \
> -I$(top_srcdir)/src/libkeymap \
> -DDATADIR=\"$(realpath $(top_srcdir))/tests\" \
> -DBUILDDIR=\"$(realpath $(builddir))\"
> 

Best Regards,
Qiu Tingting
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#189635): 
https://lists.openembedded.org/g/openembedded-core/message/189635
Mute This Topic: https://lists.openembedded.org/mt/102128673/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to