Fix 'make dumpapi' target
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>
Mon, 23 Nov 2015 03:26:44 +0000 (03:26 +0000)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Mon, 23 Nov 2015 07:50:57 +0000 (07:50 +0000)
Broken by 67d9daa65b9d555ced9fb1a9df90b1f8f1a4a257.

Also indent XML template.

Change-Id: I3a604a0319d16caca7e191c48c16f42691f4b910
Reviewed-on: https://code.wireshark.org/review/12049
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Makefile.am.inc
abi-descriptor.template

index 5a107689e7befe27f8b56a6d9fca31216d1d40e2..9bf5cf87d23fd08bc66cf5fdae5b9d0616197eb3 100644 (file)
@@ -44,6 +44,11 @@ am__v_SED_0 = @echo "  SED     " $@;
        $(AM_V_AWK)$(AWK) '/^EXPORTS$$/ {next;}; ${def_sym_filter_symbols} /^[^;]/ { print $$1;}' < $< > $@
 
 # abi-compliance-checker descriptor
-INCLUDE_DIRS = $(subst -I,NEWLINE,$(filter -I%, $(CFLAGS) -I$(abs_top_srcdir) -I$(abs_srcdir)))
+abi_incdirs = $(subst -I,NEWLINE,$(filter -I%,$(CFLAGS) -I$(abs_top_srcdir) -I$(abs_srcdir)))
+abi_sysdirs = $(subst -isystem,NEWLINE,$(filter -isystem%,$(CFLAGS)))
+INCLUDE_DIRS = $(abi_incdirs) $(abi_sysdirs)
 abi-descriptor.xml: ../abi-descriptor.template
-       $(AM_V_SED)sed "s|@INCLUDE_DIRS@|$(INCLUDE_DIRS)|g;s/NEWLINE/\n    /g;s|@LIBRARY_OUTPUT_PATH@|{RELPATH}/.libs|" $< > $@
+       $(AM_V_SED)sed \
+               -e 's|@INCLUDE_DIRS@|$(INCLUDE_DIRS)|g' \
+               -e 's/ *NEWLINE/\n    /g' \
+               -e 's|@LIBRARY_OUTPUT_PATH@|{RELPATH}/.libs|' $< > $@
index 43dd9a6fd6fa25bfead9a9423ee9a00696bfb15a..8f1be3e52eb3aea8a2df61d0bb2b1d6d5dc71345 100644 (file)
@@ -1,20 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <descriptor>
-<version>
+  <version>
     0.0.0
-</version>
-<headers>
+  </version>
+  <headers>
     {RELPATH}/abi-check-headers
-</headers>
-<libs>
+  </headers>
+  <libs>
     @LIBRARY_OUTPUT_PATH@
-</libs>
-<include_paths>@INCLUDE_DIRS@
-</include_paths>
-<gcc_options>
+  </libs>
+  <include_paths>@INCLUDE_DIRS@
+  </include_paths>
+  <gcc_options>
     -D_U_="__attribute((unused))"
-</gcc_options>
-<include_preamble>
+  </gcc_options>
+  <include_preamble>
     config.h
-</include_preamble>
+  </include_preamble>
 </descriptor>