< prev index next >

make/ModuleWrapper.gmk

Print this page
rev 52916 : 8210459: Add support for generating compile_commands.json
Reviewed-by: andrew


  83 $(eval $(call SetupCopyFiles, COPY_INCLUDE, \
  84     SRC := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE), \
  85     DEST := $(JDK_OUTPUTDIR)/include, \
  86     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)/%, \
  87         $(TARGETS)), \
  88 ))
  89 
  90 $(eval $(call SetupCopyFiles, COPY_CMDS, \
  91     SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
  92     DEST := $(JDK_OUTPUTDIR)/bin, \
  93     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
  94 ))
  95 
  96 $(eval $(call SetupCopyFiles, COPY_CONF, \
  97     SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
  98     DEST := $(JDK_OUTPUTDIR)/conf, \
  99     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)/%, \
 100         $(TARGETS)), \
 101 ))
 102 
 103 all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \



 104     $(COPY_INCLUDE) $(COPY_CMDS) $(COPY_CONF) $(LINK_LIBS_TO_LIB)



  83 $(eval $(call SetupCopyFiles, COPY_INCLUDE, \
  84     SRC := $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE), \
  85     DEST := $(JDK_OUTPUTDIR)/include, \
  86     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_include/$(MODULE)/%, \
  87         $(TARGETS)), \
  88 ))
  89 
  90 $(eval $(call SetupCopyFiles, COPY_CMDS, \
  91     SRC := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
  92     DEST := $(JDK_OUTPUTDIR)/bin, \
  93     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE)/%, $(TARGETS)), \
  94 ))
  95 
  96 $(eval $(call SetupCopyFiles, COPY_CONF, \
  97     SRC := $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE), \
  98     DEST := $(JDK_OUTPUTDIR)/conf, \
  99     FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_conf/$(MODULE)/%, \
 100         $(TARGETS)), \
 101 ))
 102 
 103 ifeq ($(GENERATE_COMPILE_COMMANDS_ONLY), true)
 104   all: $(filter $(MAKESUPPORT_OUTPUTDIR)/compile-commands/%, $(TARGETS))
 105 else
 106   all: $(TARGETS) $(COPY_LIBS_TO_BIN) $(COPY_LIBS_TO_LIB) \
 107       $(COPY_INCLUDE) $(COPY_CMDS) $(COPY_CONF) $(LINK_LIBS_TO_LIB)
 108 endif
< prev index next >