-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.cmd
28 lines (23 loc) · 1.11 KB
/
build.cmd
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
28
@echo off
REM ------------------------------------------------------------
REM Fano CLI Application (https://fanoframework.github.io)
REM
REM @link https://github.com/fanoframework/fano-cli
REM @copyright Copyright (c) 2018 Zamrony P. Juhara
REM @license https://github.com/fanoframework/fano-cli/blob/master/LICENSE (MIT)
REM -------------------------------------------------------------
REM ------------------------------------
REM -- build script for Windows
REM ------------------------------------
IF NOT EXIST build.cfg (copy build.cfg.sample build.cfg)
IF NOT EXIST build.dev.cfg (copy build.dev.cfg.sample build.dev.cfg)
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=C:\fpc\fpc.exe)
IF NOT DEFINED FPC_CFG (SET FPC_CFG=C:\fpc\fpc.cfg)
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