common/makefiles/IdlCompilation.gmk

Print this page




  53     $4_TMPDIR:=tmp___$(subst /,_,$(patsubst $2/%,%,$4))___
  54     ifneq ($$(filter $7,$4),)
  55         $4_OLDIMPLBASE:=-oldImplBase
  56         $4_OLDIMPLBASE_MSG:=with -oldImplBase
  57     endif
  58     $5 : $4
  59         $(MKDIR) -p $3/$$($4_TMPDIR)
  60         $(RM) -rf $3/$$($4_TMPDIR)
  61         $(MKDIR) -p $(dir $5)
  62         $(ECHO) $(LOG_INFO) Compiling IDL $(patsubst $2/%,%,$4) 
  63         $8 -td $3/$$($4_TMPDIR) \
  64                 -i $2/org/omg/CORBA \
  65                 -i $2/org/omg/PortableInterceptor \
  66                 -i $2/org/omg/PortableServer \
  67                 -D CORBA3 -corba 3.0 \
  68                 -fall \
  69                 $$($4_OLDIMPLBASE) \
  70                 $(PREFIXES) \
  71                 $4
  72         $(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6)
  73         $(CP) -rp $3/$$($4_TMPDIR)/* $3
  74         ($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5)
  75         $(RM) -rf $3/$$($4_TMPDIR)
  76 endef
  77 
  78 define SetupIdlCompilation
  79 # param 1 is for example BUILD_IDLS
  80 # param 2,3,4,5,6,7,8 are named args.
  81 #    IDLJ,SRC,BIN,INCLUDES,EXCLUDES,OLDIMPLBASES,DELETES
  82 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
  83 $(call LogSetupMacroEntry,SetupIdlCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
  84 $(if $(16),$(error Internal makefile error: Too many arguments to SetupIdlCompilation, please update IdlCompilation.gmk))
  85 
  86 # Remove any relative addressing in the paths.
  87 $1_SRC := $$(abspath $$($1_SRC))
  88 $1_BIN := $$(abspath $$($1_BIN))
  89 # Find all existing java files and existing class files.
  90 $$(eval $$(call MakeDir,$$($1_BIN)))
  91 $1_SRCS     := $$(shell find $$($1_SRC) -name "*.idl")
  92 $1_BINS     := $$(shell find $$($1_BIN) -name "*.java")
  93 # Prepend the source/bin path to the filter expressions.


  53     $4_TMPDIR:=tmp___$(subst /,_,$(patsubst $2/%,%,$4))___
  54     ifneq ($$(filter $7,$4),)
  55         $4_OLDIMPLBASE:=-oldImplBase
  56         $4_OLDIMPLBASE_MSG:=with -oldImplBase
  57     endif
  58     $5 : $4
  59         $(MKDIR) -p $3/$$($4_TMPDIR)
  60         $(RM) -rf $3/$$($4_TMPDIR)
  61         $(MKDIR) -p $(dir $5)
  62         $(ECHO) $(LOG_INFO) Compiling IDL $(patsubst $2/%,%,$4) 
  63         $8 -td $3/$$($4_TMPDIR) \
  64                 -i $2/org/omg/CORBA \
  65                 -i $2/org/omg/PortableInterceptor \
  66                 -i $2/org/omg/PortableServer \
  67                 -D CORBA3 -corba 3.0 \
  68                 -fall \
  69                 $$($4_OLDIMPLBASE) \
  70                 $(PREFIXES) \
  71                 $4
  72         $(RM) -f $$(addprefix $3/$$($4_TMPDIR)/,$6)
  73         $(CP) -r $3/$$($4_TMPDIR)/* $3
  74         ($(CD) $3/$$($4_TMPDIR) && $(FIND) . -type f | $(SED) 's!\./!$3/!g' | $(NAWK) '{ print $$$$1 ": $4" }' > $5)
  75         $(RM) -rf $3/$$($4_TMPDIR)
  76 endef
  77 
  78 define SetupIdlCompilation
  79 # param 1 is for example BUILD_IDLS
  80 # param 2,3,4,5,6,7,8 are named args.
  81 #    IDLJ,SRC,BIN,INCLUDES,EXCLUDES,OLDIMPLBASES,DELETES
  82 $(foreach i,2 3 4 5 6 7 8 9 10 11 12 13 14 15, $(if $($i),$1_$(strip $($i)))$(NEWLINE))
  83 $(call LogSetupMacroEntry,SetupIdlCompilation($1),$2,$3,$4,$5,$6,$7,$8,$9,$(10),$(11),$(12),$(13),$(14),$(15))
  84 $(if $(16),$(error Internal makefile error: Too many arguments to SetupIdlCompilation, please update IdlCompilation.gmk))
  85 
  86 # Remove any relative addressing in the paths.
  87 $1_SRC := $$(abspath $$($1_SRC))
  88 $1_BIN := $$(abspath $$($1_BIN))
  89 # Find all existing java files and existing class files.
  90 $$(eval $$(call MakeDir,$$($1_BIN)))
  91 $1_SRCS     := $$(shell find $$($1_SRC) -name "*.idl")
  92 $1_BINS     := $$(shell find $$($1_BIN) -name "*.java")
  93 # Prepend the source/bin path to the filter expressions.