-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathconfigure.stinclude.bat
27 lines (24 loc) · 1.7 KB
/
configure.stinclude.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off
:#*****************************************************************************
:# *
:# Filename: configure.stinclude.bat *
:# *
:# Description: Configure SysToolsLib's INCLUDE directory path *
:# *
:# Notes: *
:# *
:# History: *
:# 2024-01-07 JFL [email protected] created this file from the one in C/. *
:# *
:# © Copyright 2016 Hewlett Packard Enterprise Development LP *
:# Licensed under the Apache 2.0 license www.apache.org/licenses/LICENSE-2.0 *
:#*****************************************************************************
:# Get the full pathname of the include subdirectory
if defined STINCLUDE if not exist "%STINCLUDE%\stversion.h" set "STINCLUDE=" &:# Allow overriding with another alias name, but ignore invalid overrides
if not defined STINCLUDE for /f "delims=" %%d in ('"pushd C\include & cd & popd"') do SET "STINCLUDE=%%d" &:# Default: Use the current directory
:# Set the system environment variable, so that other CMD windows opened later on inherit it
if defined PERSISTENT_VARS setx STINCLUDE "%STINCLUDE%" >NUL
:# Make sure the variable is recorded as an SDK in the config.%COMPUTERNAME%.bat file
%BEGIN_SDK_DEFS%
%USE_SDK% STINCLUDE
%END_SDK_DEFS%