mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 14:20:50 +00:00
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:
parent
260d2f0e05
commit
e45ade1f43
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)\";"; \
|
||||
|
|
Loading…
Reference in a new issue