Skip to content

Commit

Permalink
improve build script for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zamronypj committed Sep 11, 2024
1 parent eed9e8d commit 7b1db82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ IF NOT EXIST build.prod.cfg (copy build.prod.cfg.sample build.prod.cfg)
IF NOT DEFINED BUILD_TYPE (SET BUILD_TYPE=prod)
IF NOT DEFINED UNIT_OUTPUT_DIR (SET UNIT_OUTPUT_DIR=bin\unit)
IF NOT DEFINED EXEC_OUTPUT_DIR (SET EXEC_OUTPUT_DIR=bin\out)
IF NOT DEFINED FPC_BIN (SET FPC_BIN=fpc)
IF NOT DEFINED FPC_BIN (SET FPC_BIN=C:\fpc\fpc.exe)
IF NOT DEFINED FPC_CFG (SET FPC_CFG=C:\fpc\fpc.cfg)

%FPC_BIN% @unit.search.cfg @build.cfg src/fanocli.pas
echo "Building Fano CLI with:"
echo "FPC Bin=%FPC_BIN%"
echo "FPC Cfg=%FPC_CFG%"

%FPC_BIN% @%FPC_CFG% @unit.search.cfg @build.cfg src/fanocli.pas

0 comments on commit 7b1db82

Please sign in to comment.