vscode: hard-code a couple defines

Sadly, we do not get all of the definitions via ALL_CFLAGS. Some defines are passed to GCC *only* when compiling specific files, such as git.o. Let's just hard-code them into the script for the time being. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 30, 2018 at 08:42 UTC dee338236bbef71639149ba90ec60cb732b73cd0
1 file changed +13 -1
contrib/vscode/init.sh
+13 -1
@@ -115,7 +115,19 @@ include Makefile
115 vscode-init:
116 @mkdir -p .vscode && \
117 incs= && defs= && \
118 - for e in $(ALL_CFLAGS); do \
118 + for e in $(ALL_CFLAGS) \
119 + '-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' \
120 + '-DGIT_LOCALE_PATH="$(localedir_relative_SQ)"' \
121 + '-DBINDIR="$(bindir_relative_SQ)"' \
122 + '-DFALLBACK_RUNTIME_PREFIX="$(prefix_SQ)"' \
123 + '-DDEFAULT_GIT_TEMPLATE_DIR="$(template_dir_SQ)"' \
124 + '-DETC_GITCONFIG="$(ETC_GITCONFIG_SQ)"' \
125 + '-DETC_GITATTRIBUTES="$(ETC_GITATTRIBUTES_SQ)"' \
126 + '-DGIT_LOCALE_PATH="$(localedir_relative_SQ)"' \
127 + '-DCURL_DISABLE_TYPECHECK', \
128 + '-DGIT_HTML_PATH="$(htmldir_relative_SQ)"' \
129 + '-DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
130 + '-DGIT_INFO_PATH="$(infodir_relative_SQ)"'; do \
131 case "$$e" in \
132 -I.) \
133 incs="$$(printf '% 16s"$${workspaceRoot}",\n%s' \