< prev index next >

make/common/JavaCompilation.gmk

Print this page




 180 #   DEBUG_SYMBOLS:=Set to false to disable generation of debug symbols.
 181 #   CREATE_API_DIGEST:=Set to true to use a javac plugin to generate a public API
 182 #        hash which can be used for down stream dependencies to only rebuild
 183 #        when the API changes. Implicitly used in sjavac.
 184 #   KEEP_ALL_TRANSLATIONS:=Set to true to skip translation filtering
 185 SetupJavaCompilation = $(NamedParamsMacroTemplate)
 186 define SetupJavaCompilationBody
 187 
 188   # Verify arguments
 189   ifeq ($$($1_BIN),)
 190     $$(error Must specify BIN (in $1))
 191   endif
 192 
 193   # Extract the info from the java compiler setup.
 194   $1_JVM := $$($$($1_SETUP)_JVM)
 195   $1_JAVAC := $$($$($1_SETUP)_JAVAC)
 196   $1_FLAGS :=
 197   ifneq ($$($1_DEBUG_SYMBOLS), false)
 198     $1_FLAGS := -g
 199   endif

 200   $1_FLAGS += $$($$($1_SETUP)_FLAGS) $$($1_ADD_JAVAC_FLAGS) $(JAVAC_FLAGS)
 201   ifneq ($$($1_CLASSPATH), )
 202     $1_FLAGS += -cp $$(call PathList, $$($1_CLASSPATH))
 203   endif
 204   ifeq ($$($1_JAVAC),)
 205     $$(error The Java compilation $1 refers to a non-existant java compiler setup $$($1_SETUP))
 206   endif
 207   $1_SJAVAC_PORTFILE := $$($$($1_SETUP)_SJAVAC_PORTFILE)
 208   $1_SERVER_JVM := $$($$($1_SETUP)_SERVER_JVM)
 209   $1_DISABLE_SJAVAC := $$($$($1_SETUP)_DISABLE_SJAVAC)
 210 
 211   ifneq ($$($1_MODULE), )
 212     $1_MODULE_SUBDIR := /$$($1_MODULE)
 213   endif
 214 
 215   # Make sure the dirs exist, or that one of the EXTRA_FILES, that may not
 216   # exist yet, is in it.
 217   $$(foreach d, $$($1_SRC), \
 218     $$(if $$(wildcard $$d), , \
 219       $$(if $$(filter $$d%, $$($1_EXTRA_FILES)), , \




 180 #   DEBUG_SYMBOLS:=Set to false to disable generation of debug symbols.
 181 #   CREATE_API_DIGEST:=Set to true to use a javac plugin to generate a public API
 182 #        hash which can be used for down stream dependencies to only rebuild
 183 #        when the API changes. Implicitly used in sjavac.
 184 #   KEEP_ALL_TRANSLATIONS:=Set to true to skip translation filtering
 185 SetupJavaCompilation = $(NamedParamsMacroTemplate)
 186 define SetupJavaCompilationBody
 187 
 188   # Verify arguments
 189   ifeq ($$($1_BIN),)
 190     $$(error Must specify BIN (in $1))
 191   endif
 192 
 193   # Extract the info from the java compiler setup.
 194   $1_JVM := $$($$($1_SETUP)_JVM)
 195   $1_JAVAC := $$($$($1_SETUP)_JAVAC)
 196   $1_FLAGS :=
 197   ifneq ($$($1_DEBUG_SYMBOLS), false)
 198     $1_FLAGS := -g
 199   endif
 200   # remove this option once ASM knows how to deal with condy
 201   $1_FLAGS += $$($$($1_SETUP)_FLAGS) $$($1_ADD_JAVAC_FLAGS) $(JAVAC_FLAGS)
 202   ifneq ($$($1_CLASSPATH), )
 203     $1_FLAGS += -cp $$(call PathList, $$($1_CLASSPATH))
 204   endif
 205   ifeq ($$($1_JAVAC),)
 206     $$(error The Java compilation $1 refers to a non-existant java compiler setup $$($1_SETUP))
 207   endif
 208   $1_SJAVAC_PORTFILE := $$($$($1_SETUP)_SJAVAC_PORTFILE)
 209   $1_SERVER_JVM := $$($$($1_SETUP)_SERVER_JVM)
 210   $1_DISABLE_SJAVAC := $$($$($1_SETUP)_DISABLE_SJAVAC)
 211 
 212   ifneq ($$($1_MODULE), )
 213     $1_MODULE_SUBDIR := /$$($1_MODULE)
 214   endif
 215 
 216   # Make sure the dirs exist, or that one of the EXTRA_FILES, that may not
 217   # exist yet, is in it.
 218   $$(foreach d, $$($1_SRC), \
 219     $$(if $$(wildcard $$d), , \
 220       $$(if $$(filter $$d%, $$($1_EXTRA_FILES)), , \


< prev index next >