Permalink
Browse files

First cut of setup.pir. Build dynpmcs. Todo: Runtime libraries and ma…

…ke tests pass.
  • Loading branch information...
1 parent 4262f4c commit f90d9eae41504a74d748988fc23703a3b95799f5 @khairulsyamil committed Aug 22, 2010
Showing with 38 additions and 0 deletions.
  1. +38 −0 setup.pir
View
@@ -0,0 +1,38 @@
+
+.sub main :main
+ .param pmc args
+
+ # Get self
+ .local string me
+ me = shift args
+
+ load_bytecode 'distutils.pbc'
+
+ .local pmc config, pmcs
+
+ # Setup config.
+ config = new ['Hash']
+ config['name'] = 'parrot-instruments'
+ config['abstract'] = 'Instrument framework for Parrot VM'
+
+ # Setup pmcs
+ $P0 = split "\n", <<'PMCS'
+src/dynpmc/instrument.pmc
+src/dynpmc/instrumentop.pmc
+src/dynpmc/instrumentstubbase.pmc
+src/dynpmc/instrumentinvokable.pmc
+src/dynpmc/instrumentruncore.pmc
+src/dynpmc/instrumentgc.pmc
+src/dynpmc/instrumentclass.pmc
+src/dynpmc/instrumentobject.pmc
+PMCS
+ $S0 = pop $P0
+
+ pmcs = new ['Hash']
+ pmcs['instrument_group'] = $P0
+
+ config['dynpmc'] = pmcs
+ config['dynpmc_cflags'] = "-g"
+
+ setup(args :flat, config :flat :named)
+.end

0 comments on commit f90d9ea

Please sign in to comment.