defs_op.mk
来自「This is a resource based on j2me embedde」· MK 代码 · 共 450 行 · 第 1/2 页
MK
450 行
# Include JSR 205ifeq ($(USE_JSR_205), true)export JSR_205_DIR ?= $(COMPONENTS_DIR)/jsr205JSR_205_DEFS_FILE = $(JSR_205_DIR)/build/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(JSR_205_DEFS_FILE)),)$(error JSR_205_DIR must point to a directory containing JSR 205 sources)endifinclude $(JSR_205_DEFS_FILE)endif# Include JSR 211ifeq ($(USE_JSR_211), true)export JSR_211_DIR ?= $(COMPONENTS_DIR)/jsr211JSR_211_MAKE_FILE = $(JSR_211_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_211_MAKE_FILE)),)$(error JSR_211_DIR must point to a directory containing JSR 211 sources)endifinclude $(JSR_211_MAKE_FILE)endif# Include JSR 226ifeq ($(USE_JSR_226), true)export JSR_226_DIR ?= $(COMPONENTS_DIR)/jsr226export JSR_226_PLATFORM_RELEASE ?= cdc_midpJSR_226_MAKE_FILE = $(JSR_226_DIR)/perseus2/platform.releases/$(JSR_226_PLATFORM_RELEASE)/resources/build/$(SUBSYSTEM_MAKE_FILE) ifeq ($(wildcard $(JSR_226_MAKE_FILE)),)$(error JSR_226_DIR must point to a directory containing JSR 226 sources)endifinclude $(JSR_226_MAKE_FILE)endif# Include JSR 229ifeq ($(USE_JSR_229), true)export JSR_229_DIR ?= $(COMPONENTS_DIR)/jsr229JSR_229_MAKE_FILE = $(JSR_229_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_229_MAKE_FILE)),)$(error JSR_229_DIR must point to a directory containing JSR 229 sources)endifinclude $(JSR_229_MAKE_FILE)endif# Include JSR 234ifeq ($(USE_JSR_234), true)export JSR_234_DIR ?= $(COMPONENTS_DIR)/jsr234JSR_234_MAKE_FILE = $(JSR_234_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_234_MAKE_FILE)),)$(error JSR_234_DIR must point to a directory containing JSR 234 sources)endifinclude $(JSR_234_MAKE_FILE)endif# Include JSR 238ifeq ($(USE_JSR_238), true)export JSR_238_DIR ?= $(COMPONENTS_DIR)/jsr238JSR_238_MAKE_FILE = $(JSR_238_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_238_MAKE_FILE)),)$(error JSR_238_DIR must point to a directory containing JSR 238 sources)endifinclude $(JSR_238_MAKE_FILE)endif# Include JSR 239ifeq ($(USE_JSR_239), true)export JSR_239_DIR ?= $(COMPONENTS_DIR)/jsr239JSR_239_MAKE_FILE = $(JSR_239_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_239_MAKE_FILE)),)$(error JSR_239_DIR must point to a directory containing JSR 239 sources)endifinclude $(JSR_239_MAKE_FILE)endif# Include JSR 256ifeq ($(USE_JSR_256), true)export JSR_256_DIR ?= $(COMPONENTS_DIR)/jsr256JSR_256_DEFS_FILE = $(JSR_256_DIR)/build/cdc_share/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(JSR_256_DEFS_FILE)),)$(error JSR_256_DIR must point to a directory containing JSR 256 sources)endifinclude $(JSR_256_DEFS_FILE)endif# Include JSR 280ifeq ($(USE_JSR_280), true)export JSR_280_DIR ?= $(COMPONENTS_DIR)/jsr280JSR_280_DEFS_FILE = $(JSR_280_DIR)/build/cdc_share/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(JSR_280_DEFS_FILE)),)$(error JSR_280_DIR must point to a directory containing JSR 280 sources)endifinclude $(JSR_280_DEFS_FILE)endififeq ($(USE_XMLPARSER),true)export XMLPARSER_DIR ?= $(COMPONENTS_DIR)/xmlparserXMLPARSER_DEFS_FILE = $(XMLPARSER_DIR)/build/cdc_share/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(XMLPARSER_DEFS_FILE)),)$(error XMLPARSER_DIR must point to a directory containing xmlparser sources)endifinclude $(XMLPARSER_DEFS_FILE)JSROP_JARS += $(XMLPARSER_JAR)endif# Include API Extensionsifeq ($(USE_API_EXTENSIONS), true)API_EXTENSIONS_MAKE_FILE = $(API_EXTENSIONS_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(API_EXTENSIONS_MAKE_FILE)),)$(error API_EXTENSIONS_DIR must point to a directory containing API Extensions sources)endifinclude $(API_EXTENSIONS_MAKE_FILE)JSROP_JARS += $(API_EXTENSIONS_JAR)endififeq ($(CVM_INCLUDE_JAVACALL), true)JAVACALL_TARGET?=$(TARGET_OS)_$(TARGET_CPU_FAMILY)JAVACALL_FLAGS = $(JSROP_OP_FLAGS)ifeq ($(USE_JAVACALL_EVENTS), true)JAVACALL_FLAGS += USE_COMMON=trueifeq ($(USE_JUMP), true)JUMP_ANT_OPTIONS += -Djavacall.events.used=trueJUMP_SRCDIRS += \ $(JUMP_SRCDIR)/share/impl/eventqueue/nativeJUMP_OBJECTS += \ jump_eventqueue_impl.oJUMP_DEPENDENCIES += $(JAVACALL_LIBRARY)endifendif# Check javacall makefile and include itexport JAVACALL_DIR ?= $(COMPONENTS_DIR)/javacallifeq ($(PROJECT_JAVACALL_DIR),)JSROP_JC_DIR = JAVACALL_DIRelseJSROP_JC_DIR = PROJECT_JAVACALL_DIRendifJAVACALL_MAKE_FILE ?= $($(JSROP_JC_DIR))/configuration/phoneMEAdvanced/$(JAVACALL_TARGET)/module.gmkifeq ($(wildcard $(JAVACALL_MAKE_FILE)),)$(warning $(JAVACALL_MAKE_FILE) was not found)$(error $(JSROP_JC_DIR) must point to a directory containing javacall implementation sources)endifinclude $(JAVACALL_MAKE_FILE)endif# The list of all used JSR jar filesJSROP_JARS_LIST = $(subst $(space),$(PS),$(JSROP_JARS) $(JSROP_EXTRA_JARS))#Variable containing all JSROP components output dirsJSROP_OUTPUT_DIRS = $(foreach jsr_number,$(JSROP_NUMBERS),\ $(JSR_$(jsr_number)_BUILD_DIR)) $(JAVACALL_BUILD_DIR) \ $(ABSTRACTIONS_BUILD_DIR)CVM_INCLUDE_DIRS+= $(JSROP_INCLUDE_DIRS)ifneq ($(JAVACALL_LINKLIBS),)LINKCVM_LIBS += $(call POSIX2HOST, $(JAVACALL_LINKLIBS))endififeq ($(CVM_PRELOAD_LIB), true)CVM_JCC_INPUT += $(JSROP_JARS)CVM_CNI_CLASSES += $(JSROP_CNI_CLASSES)JSROP_EXTRA_SEARCHPATH = $(CVM_JCC_INPUT)elseJSROP_EXTRA_SEARCHPATH = $(CVM_BUILDTIME_CLASSESZIP) $(LIB_CLASSESJAR) \ $(JCE_JARFILE_BUILD)endififeq ($(CVM_STATICLINK_LIBS), true)CVM_OBJECTS += $(JSROP_NATIVE_OBJS)elseCLASSLIB_DEPS += $(JSROP_NATIVE_LIBS)endififeq ($(CVM_DUAL_STACK), true)# JSR_CDCRESTRICTED_CLASSLIST is a list of JSROP classes # that are hidden from CDC applications.JSR_CDCRESTRICTED_CLASSLIST = $(CVM_LIBDIR)/JSRRestrictedClasses.txt# JSR_CDCRESTRICTED_CLASSLIST is a list of JSROP classes# that are accessible from midlets. JSR_CDCRESTRICTED_CLASSLIST and# JSR_CDCRESTRICTED_CLASSLIST don't always contain the same classes# depending on which JSRs are hidden from CDC.JSR_MIDPPERMITTED_CLASSLIST = $(CVM_BUILD_TOP)/.jsrmidppermittedclasses# CVM_MIDPCLASSLIST_FILES are the files that contain MIDP permitted# classes.CVM_MIDPCLASSLIST_FILES += $(JSR_MIDPPERMITTED_CLASSLIST)endififneq ($(CVM_PRELOAD_LIB),true)# Not romized, so add JSROP_JARS to the bootclasspathifneq ($(CVM_CREATE_RTJAR), true)CVM_JARFILES += $(patsubst $(JSROP_JAR_DIR)/%,"%"$(comma),$(JSROP_JARS))elseCVM_RTJARS_LIST += $(JSROP_JARS)endifendif# Include JDBC, which can be downloaded using the following URL:# http://java.sun.com/products/jdbc/download.html#cdcfpifeq ($(USE_JDBC), true)ifeq ($(J2ME_CLASSLIB),cdc)$(error USE_JDBC=true requires at least J2ME_CLASSLIB=foundation)endifexport JDBC_DIR ?= $(COMPONENTS_DIR)/jdbcJDBC_DEFS_FILE = $(JDBC_DIR)/build/share/defs_jdbc_pkg.mkifeq ($(wildcard $(JDBC_DEFS_FILE)),)$(error JDBC_DIR must point to a directory containing JDBC sources: $(JDBC_DIR))endifinclude $(JDBC_DEFS_FILE)# fixup JDBC_PACKAGE_SRCPATH. $(JDBC_DIR)/build/share/defs_jdbc_pkg.mk uses it.JDBC_PACKAGE_SRCPATH = $(JDBC_DIR)/src/share/jdbc/classesendif# Include RMI, which can be downloaded using the following URL:# http://www.sun.com/software/communitysource/j2me/rmiop/download.xmlifeq ($(USE_RMI), true)ifeq ($(J2ME_CLASSLIB),cdc)$(error USE_RMI=true requires at least J2ME_CLASSLIB=foundation)endifexport RMI_DIR ?= $(COMPONENTS_DIR)/rmiRMI_DEFS_FILE = $(RMI_DIR)/build/share/defs_rmi_pkg.mkifeq ($(wildcard $(RMI_DEFS_FILE)),)$(error RMI_DIR must point to a directory containing RMI sources: $(RMI_DIR))endifinclude $(RMI_DEFS_FILE)# fixup RMI_SRCDIR. $(RMI_DIR)/build/share/defs_rmi_pkg.mk uses it.RMI_SRCDIR = $(RMI_DIR)/src/share/rmi/classesendif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?