defs_op.mk

来自「This is a resource based on j2me embedde」· MK 代码 · 共 450 行 · 第 1/2 页

MK
450
字号
## Copyright  1990-2008 Sun Microsystems, Inc. All Rights Reserved.# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER# # This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License version# 2 only, as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# General Public License version 2 for more details (a copy is# included at /legal/license.txt). # # You should have received a copy of the GNU General Public License# version 2 along with this work; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA# 02110-1301 USA # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa# Clara, CA 95054 or visit www.sun.com if you need additional# information or have any questions. #SUBSYSTEM_MAKE_FILE      = subsystem.gmkSUBSYSTEM_DEFS_FILE      = subsystem_defs.gmkJSR_INIT_PACKAGE         = com.sun.cdc.configJSR_INIT_CLASS           = InitializerJSROP_NUMBERS = 75 82 120 135 172 177 179 180 184 205 211 226 229 234 238 239 256 280#JSROP_NUMBERS = 75 82 120 135 172 177 179 180 184 205 211 229 234 238 239 256 280# Defintion for path separator used in JSRsPATHSEP        ?= $(PS)# Directory which JSRs *.so files are put toJSROP_LIB_DIR   = $(CVM_LIBDIR)# Directory which JSRs *.jar files are put toifeq ($(CVM_CREATE_RTJAR),true)JSROP_JAR_DIR	= $(CVM_RTJARS_DIR)elseJSROP_JAR_DIR	= $(JSROP_LIB_DIR)endif# Directory where JSRs build subdirectories are createdJSROP_BUILD_DIR = $(CVM_BUILD_TOP)# Directory which JSRs object files are put toJSROP_OBJ_DIR   = $(CVM_OBJDIR)# Make a list of all JSR flags and their settings. It will look something like:#  USR_JSR_75=true USE_JSR_82=false USE_JSR_120=true ...JSROP_OP_FLAGS = $(foreach jsr_number,$(JSROP_NUMBERS),\          USE_JSR_$(jsr_number)=$(USE_JSR_$(jsr_number)))# Convert JSROP_OP_FLAGS into a list of JSR numbers that are enabled.# This will give you a list something like:#   75 120 184 ...INCLUDED_JSROP_NUMBERS = $(patsubst USE_JSR_%=true,%,\              $(filter %true, $(JSROP_OP_FLAGS)))# Create a list of a JSR jar files we want to build.JSROP_BUILD_JARS = $(filter-out $(JSROP_JAR_DIR)/jsr205.jar,$(foreach jsr_number,$(INCLUDED_JSROP_NUMBERS),\           $(JSROP_JAR_DIR)/jsr$(jsr_number).jar))# JSROP_AGENT_JARS - list (space sepd) of jars that should be romized with MIDP's class loader.# These jars contain "agent" classes which are used for access via reflection.# Must not have any public API. Invisible for midletsJSROP_AGENT_JARS =# Variable which is passed to MIDP and blocks JSRs building from MIDP; looks like:# USE_JSR_75=false USE_JSR_82=false USE_JSR_120=false ...MIDP_JSROP_USE_FLAGS = $(foreach jsr_number,$(JSROP_NUMBERS),USE_JSR_$(jsr_number)=false)MIDP_JSROP_USE_FLAGS += USE_ABSTRACTIONS=false# Hide all JSROPs from CDC by defaultHIDE_ALL_JSRS ?= true# Create a list of hidden JSR numbers, which should look like:#   75 120 135 ...ifeq ($(HIDE_ALL_JSRS),true)# All included JSRs are hidden from CDCHIDE_JSROP_NUMBERS = $(INCLUDED_JSROP_NUMBERS)else# Make a list of all JSR HIDE_JSR_<#> setting. It will look something like:#   HIDE_JSR_75=true USE_JSR_82= USE_JSR_135=true ...HIDE_JSROP_FLAGS = $(foreach jsr_number,$(JSROP_NUMBERS),\                HIDE_JSR_$(jsr_number)=$(HIDE_JSR_$(jsr_number)))# Extract the JSR numbers from HIDE_JSROP_FLAGS and form a list# of hidden JSR numbers.HIDE_JSROP_NUMBERS = $(patsubst HIDE_JSR_%=true,%,\                $(filter %true, $(HIDE_JSROP_FLAGS)))endif# The list of JSR jar files we want to hide.JSROP_HIDE_JARS = $(subst $(space),$(PS),$(filter-out $(JSROP_JAR_DIR)/jsr205.jar,$(foreach jsr_number,$(HIDE_JSROP_NUMBERS),$(JSROP_JAR_DIR)/jsr$(jsr_number).jar)))# Jump API classpathJSROP_JUMP_API = $(subst $(space),$(PS),$(JUMP_API_CLASSESZIP))# SecOP - CDC/FP Security Optional Packageifeq ($(USE_SECOP),true)SECOP_DIR ?= $(COMPONENTS_DIR)/secopifeq ($(wildcard $(SECOP_DIR)/build/share/$(SUBSYSTEM_MAKE_FILE)),)$(error SECOP_DIR must point to the SecOP source directory: $(SECOP_DIR))endifinclude $(SECOP_DIR)/build/share/$(SUBSYSTEM_MAKE_FILE)endif# If any JSR is built include JSROP abstractions buildingifneq ($(INCLUDED_JSROP_NUMBERS),)export ABSTRACTIONS_DIR ?= $(COMPONENTS_DIR)/abstractionsifeq ($(PROJECT_ABSTRACTIONS_DIR),)JSROP_ABSTR_DIR = ABSTRACTIONS_DIRelseJSROP_ABSTR_DIR = PROJECT_ABSTRACTIONS_DIRendifABSTRACTIONS_MAKE_FILE = $($(JSROP_ABSTR_DIR))/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(ABSTRACTIONS_MAKE_FILE)),)$(error $(JSROP_ABSTR_DIR) must point to a directory containing JSROP abstractions sources)endifinclude $(ABSTRACTIONS_MAKE_FILE)JSROP_JARS=$(ABSTRACTIONS_JAR) $(JSROP_BUILD_JARS)# abstractions required javacall typesCVM_INCLUDE_JAVACALL=trueendif# Include JSR 75ifeq ($(USE_JSR_75), true)export JSR_75_DIR ?= $(COMPONENTS_DIR)/jsr75JSR_75_MAKE_FILE = $(JSR_75_DIR)/build/cdc_share/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_75_MAKE_FILE)),)$(error JSR_75_DIR must point to a directory containing JSR 75 sources)endifinclude $(JSR_75_MAKE_FILE)endif# Include JSR 82ifeq ($(USE_JSR_82), true)export JSR_82_DIR ?= $(COMPONENTS_DIR)/jsr82JSR_82_MAKE_FILE = $(JSR_82_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_82_MAKE_FILE)),)$(error JSR_82_DIR must point to a directory containing JSR 82 sources)endifinclude $(JSR_82_MAKE_FILE)endif# Include JSR 120ifeq ($(USE_JSR_120), true)export JSR_120_DIR ?= $(COMPONENTS_DIR)/jsr120JSR_120_DEFS_FILE = $(JSR_120_DIR)/build/cdc_share/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(JSR_120_DEFS_FILE)),)$(error JSR_120_DIR must point to a directory containing JSR 120 sources)endifinclude $(JSR_120_DEFS_FILE)endif# Include JSR 135ifeq ($(USE_JSR_135), true)export JSR_135_DIR ?= $(COMPONENTS_DIR)/jsr135ifeq ($(PROJECT_JSR_135_DIR),)JSROP_JSR135_DIR = JSR_135_DIRelseJSROP_JSR135_DIR = PROJECT_JSR_135_DIRendifJSR_135_MAKE_FILE = $($(JSROP_JSR135_DIR))/build/cdc_share/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_135_MAKE_FILE)),)$(error $(JSROP_JSR135_DIR) must point to a directory containing JSR 135 sources)endifinclude $(JSR_135_MAKE_FILE)endif# Include JSR 172ifeq ($(USE_JSR_172), true)export JSR_172_DIR ?= $(COMPONENTS_DIR)/jsr172JSR_172_DEFS_FILE = $(JSR_172_DIR)/build/$(SUBSYSTEM_DEFS_FILE)ifeq ($(wildcard $(JSR_172_DEFS_FILE)),)$(error JSR_172_DIR must point to a directory containing JSR 172 sources)endifinclude $(JSR_172_DEFS_FILE)endif# Include JSR 177ifeq ($(USE_JSR_177), true)export JSR_177_DIR ?= $(COMPONENTS_DIR)/jsr177JSR_177_MAKE_FILE = $(JSR_177_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_177_MAKE_FILE)),)$(error JSR_177_DIR must point to a directory containing JSR 177 sources)endifinclude $(JSR_177_MAKE_FILE)endif# Include JSR 179ifeq ($(USE_JSR_179), true)export JSR_179_DIR ?= $(COMPONENTS_DIR)/jsr179JSR_179_MAKE_FILE = $(JSR_179_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_179_MAKE_FILE)),)$(error JSR_179_DIR must point to a directory containing JSR 179 sources)endifinclude $(JSR_179_MAKE_FILE)endif# Include JSR 180ifeq ($(USE_JSR_180), true)export JSR_180_DIR ?= $(COMPONENTS_DIR)/jsr180JSR_180_MAKE_FILE = $(JSR_180_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_180_MAKE_FILE)),)$(error JSR_180_DIR must point to a directory containing JSR 180 sources)endifinclude $(JSR_180_MAKE_FILE)endif# Include JSR 184ifeq ($(USE_JSR_184), true)export JSR_184_DIR ?= $(COMPONENTS_DIR)/jsr184JSR_184_MAKE_FILE = $(JSR_184_DIR)/build/$(SUBSYSTEM_MAKE_FILE)ifeq ($(wildcard $(JSR_184_MAKE_FILE)),)$(error JSR_184_DIR must point to a directory containing JSR 184 sources)endifinclude $(JSR_184_MAKE_FILE)endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?