The Development Environment

Setup

 

The Development Environment  Chapter  url:setup
  created:2008-03-01 13:37:57   last updated:2008-03-01 13:47:46
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For The Development Environment
Tim Doty wrote...2008-03-02 16:11:50

an application needs the libraries: copy ~/Contents/Frameworks/* to the new application bundle. Also, ~/Contents/Resources/SoftLogikApp.rsc appears to be required. Finally an Info.plist file is necessary.

Tim Doty wrote...2008-03-02 16:18:25

The terminal environment needs to be setup appropriately. If you are going to be only working on one application then simply putting this in the ~./profile (for OS X) is probably simplest, otherwise you will want to modify it slightly. Please note that you will need to at least modify the $WORK variable for your path. If "SampleApp.app" is substituted with $1 then the script can be "sourced" with an argument as to which application to work on. For example, if the script is named "SLEnv" and is in the path:
Code:

source SLEnv myApplication.app

Code:

export EXEDIR_MAC=../exe_MAC
export OBJDIR_MAC=../obj_MAC
export SRCDIR=../src
export PRJDIR=../prj

export WORK="/Users/youruserid/PgS"
export DEV=$WORK"/dev"
export PGSROOT_MAC=$WORK"/SampleApp.app/Contents/MacOS"
export SLLIBROOT_MAC=$WORK"/SampleApp.app/Contents/Frameworks"
export SLMODROOT_MAC=$WORK"/SampleApp.app/Contents/Resources"
export DOGSTAR=$WORK"/release"
export SRCROOT=$DOGSTAR"/dev/src"
export RELEASEROOT_MAC=$DOGSTAR"/dev/exe/MAC"
export CVSROOT=/usr/local/cvsrep

export IMOVIEPLUGINS_MAC="/Applications/iMovie HD.app/Contents/PlugIns"

export SLSDKUTIL=$DEV"/sdk/SoftLogikSDK/Utilities/Macintosh"
export SLINC=$DEV"/sdk/SoftLogikSDK/Includes"

export SLLIB_MAC=$DEV"/sdk/SoftLogikSDK/Libs/Macintosh"
export SLDISPLIB_MAC=libSoftLogikDisp.dylib
export SLAPPLIB_MAC=libSoftLogikApp.dylib
export SLRSRCLIB_MAC=libSoftLogikRsrc.dylib
export SLOSLIB_MAC=libSoftLogikOS.dylib
export SLPNGLIB_MAC=libpng.dylib
export SLJPEGLIB_MAC=libjpeg.dylib
export SLZLIB_MAC=zlib_mac.a

export FREETYPE_MAC=$DEV"/src/freetype-2.3.5"
export LCMS_MAC=$DEV"/src/lcms-1.14"

# application flags
export CC_MAC=gcc
export CFLAGS_MAC="-c -Wall -DMACINTOSH -arch ppc -arch i386"
export DCFLAGS_MAC=$CFLAGS_MAC" -fno-exceptions -O3 -g"
export OCFLAGS_MAC=$CFLAGS_MAC" -fno-exceptions -O3"
export COMPFLAGS_MAC=$OCFLAGS_MAC
export LINK_MAC=gcc
export LFLAGS_MAC="-arch ppc -arch i386"
export DLFLAGS_MAC=$LFLAGS_MAC" -g"
export OLFLAGS_MAC=$LFLAGS_MAC" -s"
export LINKFLAGS_MAC=$OLFLAGS_MAC

#library flags
export LCC_MAC=gcc
export LCFLAGS_MAC="-fPIC -g -c -Wall -DMACINTOSH -arch ppc -arch i386"
export DLCFLAGS_MAC=$LCFLAGS_MAC" -fno-exceptions -O3 -g"
export OLCFLAGS_MAC=$LCFLAGS_MAC" -fno-exceptions -O3"
export LCOMPFLAGS_MAC=$OLCFLAGS_MAC
export LLINK_MAC=gcc
export LLFLAGS_MAC="-dynamiclib -arch ppc -arch i386"
export DLLFLAGS_MAC=$LLFLAGS_MAC" -fPIC -g"
export OLLFLAGS_MAC=$LLFLAGS_MAC" -fPIC -s"
export LLINKFLAGS_MAC=$OLLFLAGS_MAC

#module flags
export MCC_MAC=gcc
export MCFLAGS_MAC="-fPIC -g -c -Wall -DMACINTOSH -arch ppc -arch i386"
export DMCFLAGS_MAC=$MCFLAGS_MAC" -fno-exceptions -O3 -g"
export OMCFLAGS_MAC=$MCFLAGS_MAC" -fno-exceptions -O3"
export MCOMPFLAGS_MAC=$OMCFLAGS_MAC
export MLINK_MAC=gcc
#from linux:export MLFLAGS='-shared -Wl,--discard-all,-Bsymbolic -W1,-rpath=/opt/PageStream4/SoftLogik/lib -W1,-rpath=/usr/local/PageStream4/SoftLogik/lib -L'$SLLIB
export MLFLAGS_MAC="-dynamiclib -arch ppc -arch i386"
export DMLFLAGS_MAC=$MLFLAGS_MAC" -fPIC -g"
export OMLFLAGS_MAC=$MLFLAGS_MAC" -fPIC"
export MLINKFLAGS_MAC=$OMLFLAGS_MAC

alias mk="make -f ../prj/makefile.MAC"
MK="make -f ../prj/makefile.MAC"

alias e="open mi"

export C_INCLUDE_PATH=$C_INCLUDE_PATH:$SLINC:$FREETYPE_MAC/include:$LCMS_MAC/include:/usr/local/include/
export PATH=$PATH:$PGSROOT_MAC

export MACOSX_DEPLOYMENT_TARGET=10.2

User Contributed Comments For The Development Environment