Skip to content

Commit

Permalink
322578 Support ppc<->x86 cross builds for Mac OS X. Remove asdecode. …
Browse files Browse the repository at this point in the history
…r=josh sr=pink
  • Loading branch information
mark%moxienet.com committed Jan 27, 2006
1 parent da85bb1 commit c24980b
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 39 deletions.
7 changes: 0 additions & 7 deletions config/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ TARGETS += elf-dynstr-gc
endif
endif

ifeq ($(OS_ARCH), Darwin)
# XXX Setting CPP_PROG_LINK is ugly, but it works (it makes nsinstall
# link with $(CXX)). asdecode should really be in its own directory.
CPP_PROG_LINK = 1
SIMPLE_PROGRAMS += asdecode
endif

# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
# a recursive rule for finding nsinstall and the Perl scripts.
ifdef NSBUILDROOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
};
F5E0C34D036A12DF01A96660 = {
isa = PBXFileReference;
path = _NullPlugin.rsrc;
path = NullPlugin.rsrc;
refType = 2;
};
F5E0C34E036A12DF01A96660 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
F5E0C34D036A12DF01A96660 = {
isa = PBXFileReference;
lastKnownFileType = file;
path = _NullPlugin.rsrc;
path = NullPlugin.rsrc;
refType = 2;
sourceTree = SOURCE_ROOT;
};
Expand Down
13 changes: 2 additions & 11 deletions modules/plugin/samples/default/mac/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ PACKAGE_FILE = npnul.pkg

unexport CC CXX

# decodes resource files from AppleSingle to Resource Manager format.
ASDECODE = $(DIST)/bin/asdecode
RESOURCE_FILES = _NullPlugin.rsrc

# for objdir builds, copy the project, and symlink the sources
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
Expand All @@ -90,22 +86,17 @@ export::
ln -fs $(srcdir)/NullPlugin.cpp
ln -fs $(srcdir)/npmac.cpp
ln -fs $(srcdir)/Info-*.plist .
ln -fs $(srcdir)/NullPlugin.rsrc
endif

libs install:: install-plugin

install-plugin: build-plugin
$(INSTALL) "$(XCODE_PRODUCT_DIR)/Default Plugin.plugin" $(DIST)/bin/plugins

resources: $(RESOURCE_FILES)

build-plugin: resources
build-plugin:
$(PBBUILD) $(PROJECT_ARG) -target $(TARGET) -buildstyle $(BUILDSTYLE) $(PBBUILD_ARG)
echo -n NSPLMOSS > "$(XCODE_PRODUCT_DIR)/Default Plugin.plugin/Contents/PkgInfo"

_%.rsrc: %.rsrc
$(ASDECODE) $< $@

clean clobber distclean::
rm -f $(RESOURCE_FILES)
rm -rf build
Binary file modified modules/plugin/samples/default/mac/NullPlugin.rsrc
Binary file not shown.
8 changes: 4 additions & 4 deletions plugin/oji/MRJCarbon/plugin/MRJPlugin.pbproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,14 @@
};
F59D146D02AC308301000104 = {
isa = PBXFileReference;
name = _Dialogs.rsrc;
path = Resources/_Dialogs.rsrc;
name = Dialogs.rsrc;
path = Resources/Dialogs.rsrc;
refType = 2;
};
F59D146E02AC308301000104 = {
isa = PBXFileReference;
name = _Strings.rsrc;
path = Resources/_Strings.rsrc;
name = Strings.rsrc;
path = Resources/Strings.rsrc;
refType = 2;
};
F59D146F02AC308301000104 = {
Expand Down
Binary file modified plugin/oji/MRJCarbon/plugin/Resources/Dialogs.rsrc
Binary file not shown.
18 changes: 3 additions & 15 deletions plugin/oji/MRJCarbon/plugin/Resources/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# decodes resource files from AppleSingle to Resource Manager format.

ASDECODE = ../../../../../dist/bin/asdecode
RESOURCE_FILES = _Dialogs.rsrc _Strings.rsrc

all: $(RESOURCE_FILES)

_Dialogs.rsrc: Dialogs.rsrc
$(ASDECODE) Dialogs.rsrc _Dialogs.rsrc

_Strings.rsrc: Strings.rsrc
$(ASDECODE) Strings.rsrc _Strings.rsrc

clean:
rm -f $(RESOURCE_FILES)
all:
@echo These .rsrc files are now distributed as resources in data forks.
@echo No further processing is necessary.
Binary file modified plugin/oji/MRJCarbon/plugin/Resources/Strings.rsrc
Binary file not shown.
Binary file modified plugin/oji/MRJCarbon/plugin/Resources/Version.rsrc
Binary file not shown.

0 comments on commit c24980b

Please sign in to comment.