summaryrefslogtreecommitdiff
path: root/contrib/vscode
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:38 (GMT)
commitdee338236bbef71639149ba90ec60cb732b73cd0 (patch)
tree57179137450fbed477020071ba84ed9305852f51 /contrib/vscode
parent54c06c601316bb41b8305c0f3ec755818eb54b7b (diff)
downloadgit-dee338236bbef71639149ba90ec60cb732b73cd0.zip
git-dee338236bbef71639149ba90ec60cb732b73cd0.tar.gz
git-dee338236bbef71639149ba90ec60cb732b73cd0.tar.bz2
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>
Diffstat (limited to 'contrib/vscode')
-rwxr-xr-xcontrib/vscode/init.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
index 3cc9324..494a51a 100755
--- a/contrib/vscode/init.sh
+++ b/contrib/vscode/init.sh
@@ -115,7 +115,19 @@ include Makefile
vscode-init:
@mkdir -p .vscode && \
incs= && defs= && \
- for e in $(ALL_CFLAGS); do \
+ for e in $(ALL_CFLAGS) \
+ '-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' \
+ '-DGIT_LOCALE_PATH="$(localedir_relative_SQ)"' \
+ '-DBINDIR="$(bindir_relative_SQ)"' \
+ '-DFALLBACK_RUNTIME_PREFIX="$(prefix_SQ)"' \
+ '-DDEFAULT_GIT_TEMPLATE_DIR="$(template_dir_SQ)"' \
+ '-DETC_GITCONFIG="$(ETC_GITCONFIG_SQ)"' \
+ '-DETC_GITATTRIBUTES="$(ETC_GITATTRIBUTES_SQ)"' \
+ '-DGIT_LOCALE_PATH="$(localedir_relative_SQ)"' \
+ '-DCURL_DISABLE_TYPECHECK', \
+ '-DGIT_HTML_PATH="$(htmldir_relative_SQ)"' \
+ '-DGIT_MAN_PATH="$(mandir_relative_SQ)"' \
+ '-DGIT_INFO_PATH="$(infodir_relative_SQ)"'; do \
case "$$e" in \
-I.) \
incs="$$(printf '% 16s"$${workspaceRoot}",\n%s' \