зеркало из https://github.com/github/ruby.git
Add rubyspec-capiext on mswin
This commit is contained in:
Родитель
94a418d0bb
Коммит
39bbbd767d
|
@ -1377,3 +1377,33 @@ loadpath: verconf.h
|
|||
@$(CPP) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/loadpath.c | \
|
||||
sed -e '1,/^const char ruby_initial_load_paths/d;/;/,$$d' \
|
||||
-e '/^^ /!d;s/ *"\\\\0"$$//;s/" *"//g'
|
||||
|
||||
RUBYSPEC_CAPIEXT_SRCDIR = $(srcdir)/$(RUBYSPEC_CAPIEXT)
|
||||
RUBYSPEC_CAPIEXT_DEPS = $(RUBYSPEC_CAPIEXT_SRCDIR)/rubyspec.h $(RUBY_H_INCLUDES) $(LIBRUBY)
|
||||
RUBYSPEC_CAPIEXT_EXTS =
|
||||
|
||||
!if [echo>rubyspec-capiext.mk RUBYSPEC_CAPIEXT_EXTS = \]
|
||||
!else if [for %I in ($(RUBYSPEC_CAPIEXT_SRCDIR)\*_spec.c) do \
|
||||
@echo. $$(RUBYSPEC_CAPIEXT)/%~nI.so \>>rubyspec-capiext.mk]
|
||||
!else if [echo. $$(empty)>>rubyspec-capiext.mk]
|
||||
!else
|
||||
! include rubyspec-capiext.mk
|
||||
! if [del rubyspec-capiext.mk > nul]
|
||||
! endif
|
||||
!endif
|
||||
|
||||
$(RUBYSPEC_CAPIEXT_EXTS): $(RUBYSPEC_CAPIEXT_DEPS)
|
||||
rubyspec-capiext: $(RUBYSPEC_CAPIEXT_EXTS)
|
||||
@ $(NULLCMD)
|
||||
|
||||
{$(RUBYSPEC_CAPIEXT_SRCDIR)}.c{$(RUBYSPEC_CAPIEXT)}.so:
|
||||
$(ECHO) building $(@F)
|
||||
$(Q)$(MAKEDIRS) $(@D)
|
||||
$(Q)echo> $*.def EXPORTS
|
||||
$(Q)echo>> $*.def Init_$(*F)
|
||||
$(Q)$(LDSHARED) -Fe$(@) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $< $(LIBRUBYARG) -link $(DLDFLAGS) $(LIBS) $(LOCAL_LIBS) -implib:$*.lib -pdb:$*.pdb -def:$*.def
|
||||
$(Q)$(LDSHARED_0)
|
||||
$(Q)$(LDSHARED_1)
|
||||
$(Q)$(LDSHARED_2)
|
||||
|
||||
exts: rubyspec-capiext
|
||||
|
|
Загрузка…
Ссылка в новой задаче