Game Development Reference
In-Depth Information
# DSO
lib: $(MAIN_OBJS)
@echo
$(LINKER) -shared $(LFLAGS) $(LIB_PATHS) $(LIBS) -o $(LIB) \
$(MAIN_OBJS) $(LIBRARIES)
@echo
@echo Done. Out file is $(LIB)
@echo
.c.o:
@echo
$(CC) -fpic -c $(FLAGS) $(MACROS) $(INCLUDES) $<
# Deploy lib
deploy-lib: lib
adb push $(LIB) /data/data/org.doom/files
clean:
rm -f *.o $(EXE)
Testing Doom for Android in the Emulator
To test the game in the emulator, create a launch configuration within your Eclipse IDE, as follows:
1.
From the main menu, select Run Run Configurations.
Enter a name for the configuration ( Doom ) and select the project
ch07.Android.Doom .
2.
3.
Set the Launch Action as Launch Default Activity. Figure 7-4 shows the
completed Run Configurations dialog box for this example.
4.
Click Run.
Search WWH ::




Custom Search