mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
commit 743dc7997aa9f5210055896940d87c88983dcda6 breaks the build under Android because version.h is not created. This happens because the android make executes from the ANDROID_BUILD_TOP directory rather than from the directory containing the source files, so we need to differentiate between Android and linux builds. This is V2 of this patch based on Thomas Wood's suggestion. Signed-off-by: Tim Gore <tim.gore@intel.com> [Thomas: Fix distcheck issues] Signed-off-by: Thomas Wood <thomas.wood@intel.com>
77 lines
1.6 KiB
Makefile
77 lines
1.6 KiB
Makefile
libintel_tools_la_SOURCES = \
|
|
debug.h \
|
|
drmtest.c \
|
|
drmtest.h \
|
|
i830_reg.h \
|
|
i915_3d.h \
|
|
i915_reg.h \
|
|
i915_pciids.h \
|
|
igt_debugfs.c \
|
|
igt_debugfs.h \
|
|
igt_aux.c \
|
|
igt_aux.h \
|
|
instdone.c \
|
|
instdone.h \
|
|
intel_batchbuffer.c \
|
|
intel_batchbuffer.h \
|
|
intel_chipset.h \
|
|
intel_os.c \
|
|
intel_io.h \
|
|
intel_mmio.c \
|
|
intel_chipset.c \
|
|
intel_reg.h \
|
|
ioctl_wrappers.c \
|
|
ioctl_wrappers.h \
|
|
media_fill.h \
|
|
media_fill_gen7.c \
|
|
media_fill_gen8.c \
|
|
gen7_media.h \
|
|
gen8_media.h \
|
|
rendercopy_i915.c \
|
|
rendercopy_i830.c \
|
|
gen6_render.h \
|
|
gen7_render.h \
|
|
gen8_render.h \
|
|
rendercopy_gen6.c \
|
|
rendercopy_gen7.c \
|
|
rendercopy_gen8.c \
|
|
rendercopy.h \
|
|
intel_reg_map.c \
|
|
intel_iosf.c \
|
|
igt_kms.c \
|
|
igt_kms.h \
|
|
igt_edid.h \
|
|
igt_fb.c \
|
|
igt_fb.h \
|
|
igt_core.c \
|
|
igt_core.h \
|
|
$(NULL)
|
|
|
|
.PHONY: version.h.tmp
|
|
|
|
$(IGT_LIB_PATH)/version.h.tmp:
|
|
@touch $@
|
|
@if test -d $(GPU_TOOLS_PATH)/.git; then \
|
|
if which git > /dev/null 2>&1; then cd $(@D); \
|
|
git log -n 1 --oneline | \
|
|
sed 's/^\([^ ]*\) .*/#define IGT_GIT_SHA1 "g\1"/' \
|
|
>> $(@F) ; \
|
|
else \
|
|
echo '#define IGT_GIT_SHA1 "NO-GIT"' >> $@ ; \
|
|
fi \
|
|
else \
|
|
echo '#define IGT_GIT_SHA1 "NOT-GIT"' >> $@ ; \
|
|
fi
|
|
|
|
|
|
$(IGT_LIB_PATH)/version.h: $(IGT_LIB_PATH)/version.h.tmp
|
|
@if ! cmp -s $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h; then \
|
|
mv $(IGT_LIB_PATH)/version.h.tmp $(IGT_LIB_PATH)/version.h ; \
|
|
else \
|
|
rm $(IGT_LIB_PATH)/version.h.tmp ; \
|
|
fi
|
|
|
|
BUILT_SOURCES = $(IGT_LIB_PATH)/version.h
|
|
CLEANFILES = $(IGT_LIB_PATH)/version.h $(IGT_LIB_PATH)/version.h.tmp
|
|
|