| Copyright 2008 Castle Technology Ltd | | Licensed under the Apache License, Version 2.0 (the "License"); | you may not use this file except in compliance with the License. | You may obtain a copy of the License at | | http://www.apache.org/licenses/LICENSE-2.0 | | Unless required by applicable law or agreed to in writing, software | distributed under the License is distributed on an "AS IS" BASIS, | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | See the License for the specific language governing permissions and | limitations under the License. | | Common setup for build environment | | Notes: | Used in makefiles: Tools$Dir (Utilities only) | Export$Dir (all components with interface hdr files) | Lib$Dir (RISC_OSLib and OSLib) | OSLibDef$Dir (ColourPicker) | if "" = "" then error No system defined - Run a !Env if "" = "" then error User interface not defined - Update !Env if "" = "" then error APCS not defined - Update !Env | IconSprites .!Sprites Set File$Type_FE5 EPROM Set File$Type_FD3 DebImage Set Alias$@RunType_FD3 DebugAIF %%*0 Set Alias$@LoadType_FD3 Load %%*0 8000 | | set Build$Dir .^ /.Library.build.canonical Build$Dir set Tools$Dir .Library | RMEnsure DDEUtils 1.66 RMLoad .Modules.DDEUtils RMEnsure FrontEnd 1.29 RMLoad .Modules.FrontEnd RMEnsure Shrinkwrap 0.02 RMLoad .Modules.ShrinkWrap RMEnsure International 1.59 RMLoad .Modules.Inter RMEnsure SharedUnixLibrary 1.02 RMLoad .Modules.SharedULib | This will be needed to be softloaded for 32-bit builds. RMEnsure SharedCLibrary 5.18 RMLoad System:Modules.CLib RMEnsure SharedCLibrary 5.18 | | Determine whether we have a working or broken amu - if it is working (5.13 or later), the system variable | BuildSys$AMU$Fixed will be set to "yes" - otherwise "yes". To cope with the broken Makefiles in the build | tree, for the time being the compatibility option is required for the fixed version of AMU. Older versions | do not require this fix, but also need to pass environment variables in explicitly. | /.Acorn.amu -f .Env.Makefile FIXED=yes find-amu-version set alias$amu_machine amu MACHINE= LOCALE= SYSTEM= BUILD= UserIF= APCS= %%*0 if ""="yes" Then set alias$amu_machine amu -E %%*0 | | This is setup so this can be run multiple times without extending Run$Path if "" = "" then set Run$Path Build:,Apps:, setmacro Build$Path .Acorn.,.Build.,.Unix.,.Misc.,.,.DrSmiths.Utilities. set BASIC$Path Build: Set Apps$Path .Apps. Set Makefiles$Path .BuildSys.Makefiles. | |set Src$Dir .Sources set Install$Dir .Install | Locate the export directories and set the tool options /Build:ToolOptions. | Set APCSExport$Dir .Export. set Export$Dir .Hdr.Interface set CExport$Dir .C set Hdr$Dir .Hdr set Lib$Dir .Lib | Location for messages is now extracted from Messages entry in Components. Woo! | set Messages$Dir .Sources.OS_Core.Internat.Messages | set Resource$Dir .Sources.OS_Core.Internat.Messages.Resources.. Set Alias$TokenCheck || SetMacro LocalRes$Path Resources..,Resources.UK. SetMacro LocalUserIFRes$Path Resources...,Resources..UK. SetMacro LocalSystemRes$Path Resources...,Resources..UK. | | Assembler header files includes (GETs) | set Hdr$Path hdr.,.Global.,.Interface.,.Interface2. set GlobalHdr$Path .Global. | | Libraries | set C$CLib .CLib | Can't have ++ in path variable so use CPP$Path instead of C++$Path Set CPP$Path .C++Lib. set C$RISC_OSLib .RISC_OSLib set C$Path .,.,.,. set C$libroot C: | set CLIB$Path . set RISCOSLIB$Path . setmacro RISC_OSLib$Path | |set OSLibDef$Dir .Lib.OSLib.def Set OSLib$Dir .OSLib SetMacro OS1$Path .Core.,.Computer.,.User.,.Toolbox. SetMacro OS2$Path .Core.oslib.,.Computer.oslib.,.User.oslib.,.Toolbox.oslib. Set OS$Path , Set OSLibInclude$Path |Set OS$Path . Set OSLib$Path ., | |set Support$Path .Lib.Support. |set Support$Dir .Lib.Support | | Networking: | Set TCPIPLibs$Path .TCPIPLibs. set alias$prefix echo AMU: prefix %*0|Mdir %*0 | | Aquarius: | NOTE: Absolutely do NOT put tboxlibint on this path. That directory is | internal to the Toolbox build and exported for general convenience | to the Toolbox build process. | Set tbox$path .tboxlibs. | | Sentry value: has !Common been run before (i.e. build environment set up)? Set Build$Setup 1 | | Auto Language Translation Support | SetMacro TranslateRes$Path Translate...,Translate..UK. | | Location of !Perl, !Builder & !EraseCVS. Used by AutoBuild. | Filer_Boot Apps:!Builder Filer_Boot Apps:!EraseCVS IfThere Apps:!gcc2_95_4 then Filer_Run Apps:!gcc2_95_4 Filer_Boot Apps:!Perl | | Initialise UnixLib tools | Set UnixEnv$gawk$nonametrans 1 | | End.