Add platform flag to makefile and code for compiling xibs
This commit is contained in:
4
build.sh
4
build.sh
@@ -28,6 +28,8 @@ BOE_SRC=`echo $BOE_SRC src/pcedit/pc.editors.cpp`
|
||||
ED_SRC=`echo $ED_SRC`
|
||||
PC_SRC=`echo $PC_SRC`
|
||||
|
||||
PLATFORM=macosx
|
||||
|
||||
function usage {
|
||||
echo "usage: $0 [-chrw]"
|
||||
}
|
||||
@@ -50,7 +52,7 @@ function build {
|
||||
mkdir -p 'exe/Blades of Exile/Blades of Exile Scenarios/'
|
||||
mkdir -p 'exe/Blades of Exile/Scenario Editor/Blades of Exile Base'
|
||||
echo "$COMMON_SRC" > test.txt
|
||||
export COMMON_SRC BOE_SRC ED_SRC PC_SRC
|
||||
export COMMON_SRC BOE_SRC ED_SRC PC_SRC PLATFORM
|
||||
make all
|
||||
}
|
||||
|
||||
|
10
macosx.make
Normal file
10
macosx.make
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
exe/bin/%.nib: rsrc/menus/%.xib
|
||||
ibtool --compile $@ $<
|
||||
|
||||
game-menus: exe/bin/game.nib
|
||||
|
||||
pc-menus: exe/bin/pcedit.nib
|
||||
|
||||
scen-menus: exe/bin/scenedit.nib
|
||||
|
8
makefile
8
makefile
@@ -10,6 +10,8 @@ LIB=/usr/local/lib
|
||||
boost_lib=-lboost_filesystem -lboost_system -L$LIB
|
||||
boost_include=-I/usr/local/include/boost
|
||||
|
||||
include $(PLATFORM).make
|
||||
|
||||
all: game pced scened
|
||||
|
||||
obj/gzstream.o: src/tools/gzstream/gzstream.cpp src/tools/gzstream/gzstream.h
|
||||
@@ -66,11 +68,11 @@ exe/bin/pced: obj/common.o $(PC_SRC)
|
||||
exe/bin/scened: obj/common.o $(ED_SRC)
|
||||
$(CC) $(CFLAGS) $(CINCLUDES) $^ -o exe/bin/scened $(LIBFLAGS)
|
||||
|
||||
game: exe/bin/boe resources
|
||||
game: exe/bin/boe resources game-menus
|
||||
|
||||
pced: exe/bin/pced resources
|
||||
pced: exe/bin/pced resources pc-menus
|
||||
|
||||
scened: exe/bin/scened resources
|
||||
scened: exe/bin/scened resources scen-menus
|
||||
|
||||
resources: sounds.exa graphics.exd strings dialogs fonts scenarios shaders
|
||||
|
||||
|
Reference in New Issue
Block a user