# ---------- Alaska Xbase++ configuration ----------
# --- general --------------------------------------
# $P  - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I  - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for compiler
# --- build ----------------------------------------
# $T  - target full name
# $Tp - target path
# $Tn - target name
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for linker

[Settings]
Target =
Version = 1.90.0355

Category&00 = DEFAULT RUN CONFIGURATION
Working directory = .\
Command line arguments =

Category&01 = BUILD OPTIONS
Project file = project.xpj
Build options =

Category&02 = COMPILER OPTIONS
Memvar declarations = automatic|none
Convert strings = none|ANSI to OEM|OEM to ANSI
File format = COFF|OMF
Line numbers = yes|no
Warning level = normal|warnings as errors
Additional include directories =
Object directory =
Compiler options =
Executable = no|yes
Linker options =

Category&03 = RESOURCE COMPILER OPTIONS
ResComp options =

Category&04 = DEBUGGER
Debugger = xppdbg.exe

[SettingsInfo]
Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command line arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Memvar declarations = Enable automatic MEMVAR declarations for PRIVATE and PUBLIC variables.
Convert strings = Is conversion of literal strings required.
File format = The file format of the object files.
Line numbers = Do line numbers have to be included in the object files.
Warning level = Specifies the severity of warning for which the compiler generates messages.
Additional include directories = Provides a place for you to add one or more directories to the list of directories searched for include files. Separate directory names with a semicolon.
Object directory = Specifies an alternative directory for the object files.
Compiler options = Provides a space for you to specify additional compiler options. QUIT mode is standard ON.
Executable = Select this option to create an executable of a single program file.
Linker options = Provides a space for you to specify link options, when compiling a single program file.
ResComp options = Provides a space for you to specify resource compiler options. VERBOSE is default ON.

[SettingsReps]
Memvar declarations = automatic=/a|none=
Convert strings = none=|ANSI to OEM=/ga|OEM to ANSI=/go
File format = COFF=|OMF=/omf
Line numbers = yes=|no=/l
Warning level = normal=|warnings as errors=/es
Additional include directories = @/i%s
Object directory = @/o%s
Linker options = @/link:"%s"

[Variables]
COPT = $(Compiler options) $(Memvar declarations) $(Convert strings) $(File format) $(Line numbers) $(Warning level) $(Object directory)
RCOPT = $(ResComp options)
LOPT = $(Linker options)
RegPath = Software\Alaska Software\Alaska Xbase++\$(Version)\Root

[Environment]
XPPROOT = $(HKEY_CURRENT_USER\$(RegPath)\@)
XPPRESOURCE = %XPPROOT%RESOURCE\ICON;%XPPROOT%RESOURCE\BITMAP;%XPPROOT%RESOURCE\FONT;%XPPROOT%RESOURCE\POINTER;
INCLUDE = %XPPROOT%INCLUDE;%INCLUDE%
PATH = %XPPROOT%BIN;%XPPROOT%LIB;%PATH%
LIB = %XPPROOT%LIB;%LIB%;

[General]
TargetExt = .EXE
ReleaseOut = .\
DebugOut = .\
UseFullPaths = 0
UseDosNames = 0
Excludes = $(Excluded Files)

[MakeCommands]
Run = Execute Application
Debug = Start Debugger
Makef = Show Makefile

[Execute Application]
Title = Execute $T
Cmd0 = $T $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = 0

[Start Debugger]
Title = Debug $T
Cmd0 = $(Debugger) $T
Depends = $T
ShowWindow = 1
DisplayConsole = 1

[Show Makefile]
Title = Show makefile
Cmd0 = uestudio $(UESMAKEFILE)
ShowWindow = 1
DisplayConsole = 0

[FileGroups]
FGO = .obj;.res;
FGL = .lib;
FGD = .def;

[GroupFormats]
FGO = %s
FGL = %s
FGD = %s

[Build]
Out = $T
ReleaseFlag = /a
Cmd0 = pbuild $(Project file) $(Build options)

[.PRG]
Out = $In.obj
DebugFlag = /b
Cmd0 = xpp $(COPT) /n /q /w /wu $(LOPT) $R $I

[.ARC]
Out = $In.res
Cmd0 = arc $(RCOPT) /v $I

