Improve app building of info list

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@5677 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-01-07 06:18:48 +00:00
parent 5918321598
commit d71c85d257
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Fri Jan 7 6:05:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* application.make: use xxx_PRINCIPAL_CLASS to override the value
of NSExecutable in Info.plist so we can have callses other than
NSApplication as the app class.
1999-12-09 Adam Fedor <fedor@gnu.org>
* rules.make: Remove paren's from around tmp to stop spurious

View file

@ -34,6 +34,7 @@ include $(GNUSTEP_MAKEFILES)/rules.make
# The list of application resource file are in xxx_RESOURCE_FILES
# The list of application resource directories are in xxx_RESOURCE_DIRS
# The name of the application icon (if any) is in xxx_APPLICATION_ICON
# The name of the app class is xxx_PRINCIPAL_CLASS (defaults to NSApplication).
# The name of a file containing info.plist entries to be inserted into
# Info-gnustep.plist (if any) is xxxInfo.plist
# where xxx is the application name
@ -163,13 +164,17 @@ app-resource-files:: $(APP_DIR_NAME)/Resources/Info-gnustep.plist app-resource-d
cp -r $(RESOURCE_FILES) $(APP_DIR_NAME)/Resources; \
fi)
ifeq ($(PRINCIPAL_CLASS),)
override PRINCIPAL_CLASS = NSApplication
endif
$(APP_DIR_NAME)/Resources/Info-gnustep.plist: $(APP_DIR_NAME)/Resources _FORCE
@(echo "{"; echo ' NOTE = "Automatically generated, do not edit!";'; \
echo " NSExecutable = \"$(INTERNAL_app_NAME)\";"; \
echo " NSExecutable = \"$(PRINCIPAL_CLASS)\";"; \
if [ "$(MAIN_MODEL_FILE)" = "" ]; then \
echo " NSMainNibFile = \"\";"; \
else \
echo " NSMainNibFile = \"`echo $(MAIN_MODEL_FILE) | sed 's/.gmodel//'`\";"; \
echo " NSMainNibFile = \"`echo $(MAIN_MODEL_FILE) | sed -e 's/.gmodel//' -e 's/.gorm//' -e 's/.nib//'`\";"; \
fi; \
if [ "$(APPLICATION_ICON)" != "" ]; then \
echo " NSIcon = \"$(APPLICATION_ICON)\";"; \