Changeset 29106 in vbox for trunk/src/libs
- Timestamp:
- May 5, 2010 8:09:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/java/Makefile.kmk
r29105 r29106 90 90 # 91 91 BLDPROGS += genjifaces 92 if 1 93 genjifaces_TEMPLATE = XPCOMEXE 92 TEMPLATE_XPCOMEXEBLD = XPCOM Build executable 93 TEMPLATE_XPCOMEXEBLD_EXTENDS = XPCOMBLDPROG 94 TEMPLATE_XPCOMEXEBLD_EXTENDS_BY = appending 95 TEMPLATE_XPCOMEXEBLD_CXXFLAGS = $(TEMPLATE_XPCOM_CXXFLAGS) 96 TEMPLATE_XPCOMEXEBLD_INCS = \ 97 $(TEMPLATE_XPCOM_INCS) \ 98 $(VBOX_PATH_XPCOM_SRC) \ 99 $(VBOX_PATH_XPCOM_SRC)/xpcom/build \ 100 $(VBOX_PATH_XPCOM_SRC)/xpcom/ds 101 TEMPLATE_XPCOMEXEBLD_DEFS = VBOX_WITH_XPCOM 102 TEMPLATE_XPCOMEXEBLD_LIBS = $(VBoxXPCOM_LIBS) $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 103 TEMPLATE_XPCOMEXEBLD_INCS.darwin = $(TEMPLATE_XPCOM_INCS.darwin) 104 TEMPLATE_XPCOMEXEBLD_LDFLAGS.darwin = \ 105 -framework CoreServices \ 106 -framework CoreFoundation \ 107 -framework Foundation \ 108 -framework AppKit \ 109 -framework Carbon 110 111 ifeq ($(KBUILD_TARGET),darwin) 112 define preprocess_exebld 113 $(shell echo install_name_tool -change /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib $(PATH_BIN)/VBoxRT$(VBOX_SUFF_DLL) $(1)) 114 endef 94 115 else 95 genjifaces_TEMPLATE = XPCOMBLDPROG 116 define preprocess_exebld 117 endef 96 118 endif 97 genjifaces_DEFS = \ 98 EXPORT_XPTI_API \ 99 EXPORT_XPT_API \ 100 VBOX_WITH_XPCOM 101 genjifaces_DEFPATH := $(abspath $(PATH_SUB_CURRENT)/..) 102 genjifaces_INCS = \ 103 java/src 104 genjifaces_SOURCES = \ 105 java/tools/genifaces/GenerateJavaInterfaces.cpp \ 106 java/src/nsFileStreams.cpp 107 if 1 108 genjifaces_LIBS = \ 109 $(PATH_LIB)/VBoxCOM$(VBOX_SUFF_LIB) \ 110 $(PATH_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) \ 111 $(PATH_BIN)/VBoxRT$(VBOX_SUFF_DLL) 119 120 genjifaces_TEMPLATE = XPCOMEXEBLD 121 genjifaces_INCS = \ 122 src 123 genjifaces_DEFS = \ 124 EXPORT_XPTI_API \ 125 EXPORT_XPT_API 126 127 genjifaces_SOURCES = \ 128 ../xpcom/build/nsStringAPI.cpp \ 129 ../xpcom/build/nsXPComInit.cpp \ 130 tools/genifaces/GenerateJavaInterfaces.cpp \ 131 src/nsFileStreams.cpp 112 132 genjifaces_INST = $(INST_BIN) 113 else # ugly hack in progress... 114 genjifaces_INCS += \ 115 $(TEMPLATE_XPCOM_INCS) \ 116 $(VBox-xpcom-nspr_INCS) \ 117 genjifaces_INCS.$(KBUILD_HOST) += \ 118 $(TEMPLATE_XPCOM_INCS.$(KBUILD_HOST)) \ 119 $(VBox-xpcom-nspr_INCS.$(KBUILD_HOST)) 120 genjifaces_DEFS += \ 121 _IMPL_NS_COM \ 122 $(VBox-xpcom-nspr_DEFS) 123 genjifaces_DEFS.$(KBUILD_HOST) += \ 124 $(VBox-xpcom-nspr_DEFS.$(KBUILD_HOST)) 125 genjifaces_DEFS.$(KBUILD_HOST).$(KBUILD_HOST_ARCH) += \ 126 $(VBox-xpcom-nspr_DEFS.$(KBUILD_HOST).$(KBUILD_HOST_ARCH)) 127 genjifaces_SOURCES += \ 128 $(VBox-xpcom-string_SOURCES) \ 129 $(VBox-xpcom-base_SOURCES) \ 130 $(VBox-xpcom-ds_SOURCES) \ 131 $(VBox-xpcom-threads_SOURCES) \ 132 xpcom/io/nsNativeCharsetUtils.cpp \ 133 xpcom/io/nsUnicharInputStream.cpp \ 134 \ 135 $(VBox-xpcom-nspr_SOURCES) \ 136 \ 137 $(VBoxXPCOMGlue_COMMON_SOURCES) \ 138 xpcom/glue/standalone/nsXPCOMGlue.cpp \ 139 xpcom/glue/standalone/nsGREDirServiceProvider.cpp 140 genjifaces_LDFLAGS.darwin = \ 141 -framework CoreServices \ 142 -framework CoreFoundation \ 143 -framework Foundation \ 144 -framework AppKit \ 145 -framework Carbon 146 endif 147 genjifaces_DEPS = $(PATH_TARGET)/VBox-xpcom-idl-timestamp 148 133 GENJIFACES_BIN := $(PATH_BIN)/genjifaces$(HOSTSUFF_EXE) 149 134 150 135 # … … 202 187 perl $(VBOX_JXPCOM_SRC)/tools/gen-nsError.pl < $< > $@ 203 188 204 $(VBOX_JXPCOM_GEN)/jxpcomgen.list: $ $(genjifaces_1_INSTARGET) $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt $(VBOX_JXPCOM_GEN)189 $(VBOX_JXPCOM_GEN)/jxpcomgen.list: $(GENJIFACES_BIN) $(PATH_TARGET)/VBox-xpcom-xpt-files/VBoxXPCOMBase.xpt $(VBOX_JXPCOM_GEN) 205 190 $(QUIET)echo Generating Java interface files 206 191 $(QUIET)$(MKDIR) -p $(VBOX_JXPCOM_GEN)/java 207 $(genjifaces_1_INSTARGET) -d $(VBOX_JXPCOM_GEN)/java 192 $(call preprocess_exebld,$(GENJIFACES_BIN)) 193 $(GENJIFACES_BIN) -d $(VBOX_JXPCOM_GEN)/java 208 194 $(QUIET)echo $$(ls $(VBOX_JXPCOM_GEN)/java/*.java) > $@ 209 195 … … 232 218 233 219 include $(KBUILD_PATH)/subfooter.kmk 234
Note:
See TracChangeset
for help on using the changeset viewer.