Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Updated ExternalSchemaCodegen.bat to take a project path argument #1244

Merged
merged 4 commits into from
Jul 31, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions SpatialGDK/Build/Scripts/ExternalSchemaCodegen.bat
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
@echo off

IF NOT "%~2"=="" IF "%~3"=="" GOTO START
IF NOT "%~3"=="" IF "%~4"=="" GOTO START
joshuahuburn marked this conversation as resolved.
Show resolved Hide resolved
ECHO This script requires two parameters (both defined relative to project root):
ECHO - path to external schema directory
ECHO - target output folder for generated code
ECHO - path to your project root containing the 'spatial' folder
exit /b 1

:START

call :MarkStartOfBlock "Setup variables"
pushd %~dp0\..\..\..
set GDK_FOLDER=%cd%
pushd ..\..\..
pushd "%3"
set GAME_FOLDER=%cd%
joshuahuburn marked this conversation as resolved.
Show resolved Hide resolved
set SCHEMA_COMPILER_PATH=%GDK_FOLDER%\SpatialGDK\Binaries\ThirdParty\Improbable\Programs\schema_compiler.exe
set CODEGEN_EXE_PATH=%GDK_FOLDER%\SpatialGDK\Binaries\ThirdParty\Improbable\Programs\CodeGenerator.exe
Expand Down