< prev index next >

make/common/JdkNativeCompilation.gmk

Print this page




 105 SetupJdkLibrary = $(NamedParamsMacroTemplate)
 106 define SetupJdkLibraryBody
 107   ifeq ($$($1_OUTPUT_DIR), )
 108     $1_OUTPUT_DIR := $$(call FindLibDirForModule, $$(MODULE))
 109   endif
 110 
 111   ifeq ($$($1_OBJECT_DIR), )
 112     $1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/lib$$($1_NAME)
 113   endif
 114 
 115   ifeq ($$($1_SRC), )
 116     $1_SRC := $$(call FindSrcDirsForLib, $$(MODULE), $$($1_NAME))
 117   else
 118     $1_SRC := $$(foreach dir, $$($1_SRC), $$(call ProcessDir, $$(dir)))
 119   endif
 120   ifneq ($$($1_EXTRA_SRC), )
 121     $1_SRC += $$(foreach dir, $$($1_EXTRA_SRC), $$(call ProcessDir, $$(dir)))
 122   endif
 123 
 124   ifneq ($$($1_EXCLUDE_SRC_PATTERNS), )
 125     $1_SRC_WITHOUT_WORKSPACE_ROOT := $$(patsubst $$(WORKSPACE_ROOT)/%, %, $$($1_SRC))
 126     $1_EXCLUDE_SRC := $$(addprefix %, $$(call containing, $$($1_EXCLUDE_SRC_PATTERNS), \
 127         $$($1_SRC_WITHOUT_WORKSPACE_ROOT)))
 128     $1_SRC := $$(filter-out $$($1_EXCLUDE_SRC), $$($1_SRC))
 129   endif
 130 
 131   ifeq ($$($1_VERSIONINFO_RESOURCE), )
 132     $1_VERSIONINFO_RESOURCE := $$(GLOBAL_VERSION_INFO_RESOURCE)
 133   else ifeq ($$($1_VERSIONINFO_RESOURCE), DISABLE)
 134     $1_VERSIONINFO_RESOURCE :=
 135   endif
 136 
 137   ifeq ($$($1_RC_FLAGS), )
 138     $1_RC_FLAGS :=  $(RC_FLAGS) \
 139         -D "JDK_FNAME=$$($1_NAME).dll" \
 140         -D "JDK_INTERNAL_NAME=$$($1_NAME)" \
 141         -D "JDK_FTYPE=0x2L"
 142   else ifeq ($$($1_RC_FLAGS), DISABLE)
 143     $1_RC_FLAGS :=
 144   endif
 145 
 146   ifneq ($$($1_HEADERS_FROM_SRC), false)
 147     $1_SRC_HEADER_FLAGS := $$(addprefix -I, $$(wildcard $$($1_SRC)))




 105 SetupJdkLibrary = $(NamedParamsMacroTemplate)
 106 define SetupJdkLibraryBody
 107   ifeq ($$($1_OUTPUT_DIR), )
 108     $1_OUTPUT_DIR := $$(call FindLibDirForModule, $$(MODULE))
 109   endif
 110 
 111   ifeq ($$($1_OBJECT_DIR), )
 112     $1_OBJECT_DIR := $$(SUPPORT_OUTPUTDIR)/native/$$(MODULE)/lib$$($1_NAME)
 113   endif
 114 
 115   ifeq ($$($1_SRC), )
 116     $1_SRC := $$(call FindSrcDirsForLib, $$(MODULE), $$($1_NAME))
 117   else
 118     $1_SRC := $$(foreach dir, $$($1_SRC), $$(call ProcessDir, $$(dir)))
 119   endif
 120   ifneq ($$($1_EXTRA_SRC), )
 121     $1_SRC += $$(foreach dir, $$($1_EXTRA_SRC), $$(call ProcessDir, $$(dir)))
 122   endif
 123 
 124   ifneq ($$($1_EXCLUDE_SRC_PATTERNS), )
 125     $1_EXCLUDE_SRC := $$(call containing, $$($1_EXCLUDE_SRC_PATTERNS), $$($1_SRC))


 126     $1_SRC := $$(filter-out $$($1_EXCLUDE_SRC), $$($1_SRC))
 127   endif
 128 
 129   ifeq ($$($1_VERSIONINFO_RESOURCE), )
 130     $1_VERSIONINFO_RESOURCE := $$(GLOBAL_VERSION_INFO_RESOURCE)
 131   else ifeq ($$($1_VERSIONINFO_RESOURCE), DISABLE)
 132     $1_VERSIONINFO_RESOURCE :=
 133   endif
 134 
 135   ifeq ($$($1_RC_FLAGS), )
 136     $1_RC_FLAGS :=  $(RC_FLAGS) \
 137         -D "JDK_FNAME=$$($1_NAME).dll" \
 138         -D "JDK_INTERNAL_NAME=$$($1_NAME)" \
 139         -D "JDK_FTYPE=0x2L"
 140   else ifeq ($$($1_RC_FLAGS), DISABLE)
 141     $1_RC_FLAGS :=
 142   endif
 143 
 144   ifneq ($$($1_HEADERS_FROM_SRC), false)
 145     $1_SRC_HEADER_FLAGS := $$(addprefix -I, $$(wildcard $$($1_SRC)))


< prev index next >