Permalink
Browse files

[cage][GH #890] Do not install test dynpmcs: foo,foo2,foo_group,rotes…

…t,pccmethod_test

Do not install those headers nor shared libs
  • Loading branch information...
1 parent fd9dbbc commit 41bfe48858859468e3b8a4cc6cd45115faff8ddd Reini Urban committed Dec 31, 2012
Showing with 7 additions and 6 deletions.
  1. +3 −2 lib/Parrot/Pmc2c/PMC.pm
  2. +4 −4 src/dynpmc/Rules.in
View
@@ -34,7 +34,7 @@ use Parrot::Pmc2c::UtilFunctions qw(
gen_multi_name
);
use Parrot::Pmc2c::PMC::RO ();
-use Parrot::BuildUtil 'add_to_generated';
+use Parrot::BuildUtil;
sub create {
my ( $this, $pmc_classname ) = @_;
@@ -487,7 +487,8 @@ sub generate {
Parrot::Pmc2c::Emitter->new( $h_file );
$self->generate_h_file;
$h_emitter->write_to_file;
- add_to_generated($h_file, "[devel]", "include");
+ add_to_generated($h_file, "[devel]", "include")
+ unless $self->is_dynamic and $self->name =~ /^(foo|foo2|rotest|pccmethod_test)$/;
}
=over 4
View
@@ -53,7 +53,7 @@ $(DYNEXT_DIR)/foo_group$(LOAD_EXT): $(DYNPMC_FOO_OBJS) src/dynpmc/foo_group$(O)
src/dynpmc/foo_group$(O) $(DYNPMC_FOO_OBJS) $(LINKARGS)
#IF(win32 and has_mt): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2
#IF(cygwin or hpux): $(CHMOD) 0775 $@
- $(ADDGENERATED) "$@" "[library]"
+ $(ADDGENERATED) "$@" "[]"
src/dynpmc/foo_group$(O): \
src/dynpmc/pmc_foo2.h \
@@ -66,7 +66,7 @@ src/dynpmc/foo_group.c: $(DYNPMC_FOO_OBJS)
$(MV) foo_group.c src/dynpmc/foo_group.c
$(ADDGENERATED) src/dynpmc/foo_group.c "[]"
$(MV) foo_group.h src/dynpmc/foo_group.h
- $(ADDGENERATED) src/dynpmc/foo_group.h "[devel]" include
+ $(ADDGENERATED) src/dynpmc/foo_group.h "[]" include
src/dynpmc/pmc_foo.h : src/dynpmc/foo.c
@@ -154,7 +154,7 @@ $(DYNEXT_DIR)/pccmethod_test$(LOAD_EXT): src/dynpmc/pccmethod_test$(O)
src/dynpmc/pccmethod_test$(O) $(LINKARGS)
#IF(win32 and has_mt): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2
#IF(cygwin or hpux): $(CHMOD) 0775 $@
- $(ADDGENERATED) "$@" "[library]"
+ $(ADDGENERATED) "$@" "[]"
src/dynpmc/pmc_pccmethod_test.h : src/dynpmc/pccmethod_test.c
@@ -178,7 +178,7 @@ $(DYNEXT_DIR)/rotest$(LOAD_EXT): src/dynpmc/rotest$(O)
src/dynpmc/rotest$(O) $(LINKARGS)
#IF(win32 and has_mt): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2
#IF(cygwin or hpux): $(CHMOD) 0775 $@
- $(ADDGENERATED) "$@" "[library]"
+ $(ADDGENERATED) "$@" "[]"
src/dynpmc/pmc_rotest.h : src/dynpmc/rotest.c

0 comments on commit 41bfe48

Please sign in to comment.