-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.cmd
23 lines (19 loc) · 1.05 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
REM------------------------------------------------------------
REM Fano Web Framework Skeleton Application (https://fanoframework.github.io)
REM
REM @link https://github.com/fanoframework/fano-app-middleware
REM @copyright Copyright (c) 2018 Zamrony P. Juhara
REM @license https://github.com/fanoframework/fano-app-middleware/blob/master/LICENSE (GPL 3.0)
REM-------------------------------------------------------------
REM ------------------------------------
REM -- build script for Windows
REM ------------------------------------
IF NOT DEFINED FANO_DIR (SET FANO_DIR="fano")
IF NOT DEFINED BUILD_TYPE (SET BUILD_TYPE="prod")
IF NOT DEFINED USER_APP_DIR (SET USER_APP_DIR="app")
IF NOT DEFINED UNIT_OUTPUT_DIR (SET UNIT_OUTPUT_DIR="bin\unit")
IF NOT DEFINED EXEC_OUTPUT_DIR (SET EXEC_OUTPUT_DIR="public")
IF NOT DEFINED EXEC_OUTPUT_NAME (SET EXEC_OUTPUT_NAME="app.cgi")
IF NOT DEFINED SOURCE_PROGRAM_NAME (SET SOURCE_PROGRAM_NAME="app.pas")
IF NOT DEFINED FPC_BIN (SET FPC_BIN="fpc")
%FPC_BIN% @fano/fano.cfg @build.cfg %USER_APP_DIR%\%SOURCE_PROGRAM_NAME%